What arcpy module can I use to write a python script to mine for fields of my map service properties and export them to a .tx file? I assume we need to tap into GIS Servers within the ArcCatalog interface?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
Quick and dirty code... substitute the "print" for some code to write to a textfile if thats what you want. You'll notice its hardcoded to one specific layer in a map service. You can enhance to loop through all layers, or even loop through all services on a server THEN all layers, THEN get fields.
Also for reference, heres what you can get out of "f": f["alias"] f["length"] f["type"] f["name"] f["domain"] (per a 10.1 server, may change for 10.0) |
|||
|
|

