Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Spatial Reference arcpy

# The following string is the WKT for the 
# Geographic Coordinate system "WGS 1984" (factory code=4326)
wkt = "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],
              PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],
              VERTCS['WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],
              PARAMETER['Vertical_Shift',0.0],PARAMETER['Direction',1.0],UNIT['Meter',1.0]];
              -400 -400 1000000000;-100000 10000;-100000 10000;8.98315284119522E-09;
              0.001;0.001;IsHighPrecision"

sr = arcpy.SpatialReference(text=wkt)
Source by pro.arcgis.com #
 
PREVIOUS NEXT
Tagged: #Spatial #Reference #arcpy
ADD COMMENT
Topic
Name
8+7 =