Skip to main content
removed thanks, corrected typos
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

Here, the pythonPython for create a list of feature typetypes 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 ? Thanks

Here, the python for create a list of feature type 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 ? Thanks

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 ?

deleted 3 characters in body
Source Link
user3120
user3120

Here, the python for create a list of feature type but....

import sys
from pyfme import *
try:
    log=FMELogfile("shapeToTAB.log")
    
    log.log("Opening reader",FME_INFORM)
    reader=FMEReader("GEODATABASE_FILE")
    reader.open("C:\givdepot\export\TE\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 ? Thanks

Here, the python for create a list of feature type but....

import sys
from pyfme import *
try:
    log=FMELogfile("shapeToTAB.log")
    
    log.log("Opening reader",FME_INFORM)
    reader=FMEReader("GEODATABASE_FILE")
    reader.open("C:\givdepot\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 ? Thanks

Here, the python for create a list of feature type 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 ? Thanks

Tweeted twitter.com/#!/StackGIS/status/78298842247856128
added 24 characters in body; added 4 characters in body
Source Link
user3120
user3120

Here, the python for create a list of feature type but....

import sys
from pyfme import *
try:
    log=FMELogfile("shapeToTAB.log")
    
    log.log("Opening reader",FME_INFORM)
    reader=FMEReader("GEODATABASE_FILE")
    reader.open("C:\givdepot\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 ? Thanks

Here, the python for create a list of feature type but....

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

except FMEException, err:
    print "FMEException: %s" % err
    sys.exit(1)

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

Here, the python for create a list of feature type but....

import sys
from pyfme import *
try:
    log=FMELogfile("shapeToTAB.log")
    
    log.log("Opening reader",FME_INFORM)
    reader=FMEReader("GEODATABASE_FILE")
    reader.open("C:\givdepot\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 ? Thanks

deleted 33 characters in body; added 234 characters in body
Source Link
user3120
user3120
Loading
added 69 characters in body; deleted 4 characters in body
Source Link
whuber
  • 70.2k
  • 16
  • 187
  • 282
Loading
Source Link
user3120
user3120
Loading