Question

Read esri Shapefile from FTP


Badge +1

Hi FME users! I have to read some ShapeFile from FTP.

I use a FTPCaller to get all the files that I need, and then user a FeatureReader to read ShapeFile directly from FTP. I can get the geometry, but not the attributes...

Do you know why if I read from FTP, no attributes are read but only geometry ?

Thank you for your help!

Francis M.


4 replies

Userlevel 4
Badge +30

Hi @francis_m​ 

 

Could you share us the Workspace?

 

Thanks in Advance,

Danilo

 

Badge +20

Mostry your "error" if from the fact that ESRI Shape is a collection of files, not just the .shp

You need to fetch every component of that collection (.shp, .shx, .dbf, .prj, .cpg) that correspond to the shape filename.

Badge +1

Hi @francis_m​ 

 

Could you share us the Workspace?

 

Thanks in Advance,

Danilo

 

Sorry, I can't share, but I've been able to accomplish the task by downloading first all the files of the shapefile. But I was hopping FME would read a shapefile, even on a FTP site, as I was using a Shapefile reader. Anyway... I did it by downloading first, then read it... thanks!

Badge +1

Thanks, that's what I was thinking... and did. But, as I used a Shapefile reader, I was thinking that FME would have read all the file for the shapefile format. thanks!

Reply