1

Here, the Python for create a list of feature types but....

import sys
from pyfme import *
try:
 log=FMELogfile("shapeToTAB.log")
 log.log("Opening reader",FME_INFORM)
 reader=FMEReader("GEODATABASE_FILE")
 reader.open("C:\depot\export\TE-PMB.gdb")
 GeomList = []
 schemaFeature=FMEFeature()
 log.log("Copying schema features")
 while reader.readSchema(schemaFeature):
 GeomList.append(schemaFeature.getFeatureType())
 log.logFeature(schemaFeature)
 reader.close()
 print GeomList
except FMEException, err:
 print "FMEException: %s" % err
 sys.exit(1)

I would like return a list of feature type of my geodatabase. Is it possible ?

nmtoken
13.6k5 gold badges39 silver badges91 bronze badges
asked Jun 7, 2011 at 20:08
2
  • I formatted the code and tried to keep the original indentation while doing so, but it makes no sense to me: you had better double-check it to make sure it is correctly rendered. Commented Jun 7, 2011 at 20:48
  • Hi, I edited the code. Commented Jun 7, 2011 at 20:55

1 Answer 1

1

Use the PythonTableViewer to see your Features Types and Tables

http://www.fmepedia.com/index.php/PythonTableViewer

Helpful with a little modification

http://www.fmepedia.com/index.php/Extracting_Geodatabase_coded_domain_definition_tables

answered Jun 7, 2011 at 21:24

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.