Skip to main content
Solved

Generic (Any Format) Reader


Forum|alt.badge.img

Dear All ,

We try to convert anything to Shape file, We have problem with file geodatabase , we upload the file as zip but it did not work , even if we give it as separate files is not working , how can we upload file geodatabase to generic reader format

Best answer by khalid_omer

Thank you all for the supports , We tested it on 2016 and it is working fine without any modification , with 2015 the only solution that works with us is to expose the input format for the generic reader and let the users choice between file geodatabase ,shape or guess from the extension and that works great , thanks for all the supports

View original
Did this help you find an answer to your question?

9 replies

geosander
Forum|alt.badge.img+7
  • March 15, 2017
I've tried to do what you described above, using FME 2017 (32-bits). It works fine for me, even when I offer the File Geodatabase as a zip file and with the Input Format parameter set to <Guess format name from extension>.

 

In my case, by default, the reader uses the ArcObjects geodatabase reader. This requires a licensed ArcGIS installation on your machine. Are you sure you have that? Also, since my ArcGIS still is a 32-bits application, be sure that your FME installation also runs in 32-bits mode.

 


Forum|alt.badge.img

 

We are using FME server 2015 , but I guess it should have the same behaviour as 2017

geosander
Forum|alt.badge.img+7
  • March 15, 2017
khalid_omer wrote:

 

We are using FME server 2015 , but I guess it should have the same behaviour as 2017
Not 100% sure if the <Guess format name from extension> option will work on 2015 when the Geodatabase is zipped, but sure, you can try. Otherwise, you need to point to the folder (with .gdb extension) that contains all the geodatabase files and make sure that all the files are in there. Pointing to separate geodatabase files (like you mention above) will never work.

 

So you are certain that the FME Engine machine has access to ArcObjects? Not sure if the Generic reader will use the Geodatabase API instead if ArcObjects was not detected. Also, note that the Geodatabase API cannot open all feature class types.

 


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • March 15, 2017

Hi @khalid_omer,

The generic reader and writer works in conjunction with dummy readers and writers to be able to use format specific parameters.

I would try adding a dummy gdb reader with no feature types to set the specific parameters.

Hope this helps.


Forum|alt.badge.img
itay wrote:

Hi @khalid_omer,

The generic reader and writer works in conjunction with dummy readers and writers to be able to use format specific parameters.

I would try adding a dummy gdb reader with no feature types to set the specific parameters.

Hope this helps.

Hi @itay

 

Can you please elaborate on dummy reader works in conjuncaiton with generic reader , do I need to add geodatabase reader , but how to link it with the main generic reader and how will I pass that from the web

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • March 16, 2017
khalid_omer wrote:
Hi @itay

 

Can you please elaborate on dummy reader works in conjuncaiton with generic reader , do I need to add geodatabase reader , but how to link it with the main generic reader and how will I pass that from the web

 

Hi @khalid_omer,

 

See page 223 of the advanced training material

 

http://docs.safe.com/fme_training/2015/pdf/fme_advanced_training_manual.pdf

 

 

Basically there is no need to link it to the generic reader and for making the parameters available via the web interface its a matter of publishing them.

 

Hope this helps

 

 


david_r
Celebrity
  • March 16, 2017

I suspect what you need is to add a reader as a resource:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/Workbench/reader_adding_as_resource.htm

Your dynamic reader will use the options set in this resource when reading from the same format.


david_r
Celebrity
  • March 16, 2017

You can also consider using the FeatureReader and the <Generic> output port rather than the dynamic reader, it might be simpler.


Forum|alt.badge.img
  • Author
  • Best Answer
  • March 16, 2017

Thank you all for the supports , We tested it on 2016 and it is working fine without any modification , with 2015 the only solution that works with us is to expose the input format for the generic reader and let the users choice between file geodatabase ,shape or guess from the extension and that works great , thanks for all the supports


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings