Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 :)

share|improve this question

2 Answers 2

up vote 0 down vote accepted

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.

share|improve this answer

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

share|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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.