Using WK ID's when using CreateSpatialReference tool

المشرف العام

Administrator
طاقم الإدارة
I recently found out how to create specific spatial reference objects and add them to my arcgis python standalone script. sp=arcpy.CreateSpatialReference_management("GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],VERTCS['NAVD_1988',VDATUM['North_American_Vertical_Datum_1988'],PARAMETER['Vertical_Shift',0.0],PARAMETER['Direction',1.0],UNIT['Meter',1.0]];-400 -400 1000000000;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPrecision","#","#","#","#","#","0")

As you can see, this is painfully long and is subject to errors. I would like to know how to go about shortening the input required to make this tool functional. Where can I place well-known ESRI ID's to simplify the inputs.



أكثر...
 
أعلى