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 :)
2 Answers 2
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.
use one 'fake' feature for the process then delete it after the conversion process.
-
A sample ? please.user3120– user31202011年06月10日 15:36:38 +00:00Commented Jun 10, 2011 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).2011年06月10日 16:35:14 +00:00Commented Jun 10, 2011 at 16:35
-
And is there a solution with Python ?user3120– user31202011年06月12日 23:12:52 +00:00Commented Jun 12, 2011 at 23:12