0

I try to convert a feature table Geodatabase to MapInfo with FME / Python But each test, my application crash. There is no geometry in my feature table in file geodatabase. Why my application crashes with attribute table ?

    writerTab=FMEWriter("MITAB")
writerTab.open(RepMapInfo)

schemaTab=FMEFeature()
while reader.readSchema(schemaTab):
    #print writerTab.getSchemaFeatures()
    log.logFeature(schemaTab)
    writerTab.addSchema(schemaTab)

while reader.read(schemaTab):
    log.logFeature(schemaTab)
    writerTab.write(schemaTab)

The code is very simple. Help me :)

0

In Workbench there is a parameter called "Ignore Failed Readers" that would do the job:

enter image description here

The syntax in the mapping file is:

[READER_NAME]_CONTINUE_ON_READER_FAILURE Yes

...I'm not sure how that would translate to Python - though I'm not sure why Python is required in this scenario.

|improve this answer|||||
0

use one 'fake' feature for the process then delete it after the conversion process.

|improve this answer|||||
  • A sample ? please. – user3120 Jun 10 '11 at 15:36
  • you need to take geometry from your geodatabase (this can be stored as point,line polygon) then take the source to one geometry (ie point) in MapInfo - if your taking tables only you still need geometry (but can be deleted afterwards). – Mapperz Jun 10 '11 at 16:35
  • And is there a solution with Python ? – user3120 Jun 12 '11 at 23:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy