span8
span4
span8
span4
Hi,
I'm trying to get the links from this URL using the CSV reader but it does not work:https://data.geo.admin.ch/ch.swisstopo-vd.amtliche-vermessung/meta.txtUsing an HTTP Caller did not work either.If I paste the link in a browser it works fine.Any idea what I am doing wrong?Thank you for your help!
I can confirm that even FME 2018 doesn't seem to manage reading from this URL,neither the CSV reader,Text File reader or the HTTPCaller.It may be worth signalling to 亚搏在线Safe support as a possible bug.
As a workaround,try the following in a PythonCreator:
import fmeobjectsimport urllib2 class FeatureCreator(object): def __init__(self): pass def input(self,feature): data = urllib2.urlopen('https://data.geo.admin.ch/ch.swisstopo-vd.amtliche-vermessung/meta.txt') for line in data: url,date = line.split(' ') newFeature = fmeobjects.FMEFeature() newFeature.setAttribute('url',url) newFeature.setAttribute('date',date) self.pyoutput(newFeature) def close(self): pass
Remenber to expose the attributes 'url' and 'date'.
I'm not able to process this either.Viewing in a browser works fine,from there you can save it as a local file and process that,which works too,but that's probably not a feasible long-time 亚搏在线workflow.
The HTTPCaller gives this error:HTTPCaller(HTTPFactory): HTTP/FTP transfer error: 'Unrecognized or bad HTTP Content or Transfer-Encoding'
Which makes me wonder if it's something on the server side that's throwing off FME.
PDFSTYLER - URL's exporting corrupt.Pics and Workbench attached.1 Answer
Extract specific text after key words2 Answers
Access JSON URL in attribute1 Answer
xml via url3 Answers
© 2019 亚搏在线Safe Software Inc |Legal