QualifyTableName method |
|
|
Release 9.1
Last modified August 19, 2005 |
Print all topics in : "Properties and Methods" |
Prefixes a name string with the database.username, if required. This method is used in scripting only.
| Part | Description |
| object | The instantiated geoprocessor object |
| InputTableName | Specifies which table will be prefixed |
| Workspace | Specifies the workspace in which the table can be found |
from win32com.client import Dispatch
gp = Dispatch("esriGeoprocessing.GpDispatch.1")
# Create the list of input featureclasses.
gp.Workspace = "Database Connections\\Calgary.sde\\transportation"
fcs = gp.Listfeatureclasses()
fc = fcs.Next()
while fc:
outfc = gp.ValidateTableName(fc, "Database Connections\\Calgary.sde\\clip")
# Qualify the clip fc name as it is owned by Grace.
clipfc = gp.QualifyTableName("Grace", "study_area", "Connections\\Calgary.sde")
try:
gp.Clip(fc, clipfc, outfc)
except:
print gp.GetMessages(2)
print "Successfully clipped " + fc