Select to view content in your preferred language

Real Cool Stuff on Python

2726
12
10-29-2009 10:39 AM
TedCronin
MVP Alum
So, far, the py window is pretty cool.  I type a little bit more here than with arcgisscripting, but really now, I think I will use this window over the command line window anyday even with the extra space ;).  Long Live the Python Window.  Now it doesn't beat Wing, but still pretty cool.

Should have tested this more in holistic.
0 Kudos
12 Replies
BartHound
Emerging Contributor
So, this looks like it would fall under the Real Cool Stuff on Python.  Thank You GP Team.
0 Kudos
TedCronin
MVP Alum
Spatial Reference --This is much cooler.

Much better, much more readable.

prjfile = r"C:\Program Files (x86)\ArcGIS\Desktop10.0\Coordinate Systems\NAD 1983 StatePlane California VI FIPS 0406 (US Feet).prj"
spatialRef = arcpy.SpatialReference (prjfile)


VS.


sr = "PROJCS['NAD_1983_StatePlane_California_VI_FIPS_0406_Feet',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Lambert_Conformal_Conic'],PARAMETER['False_Easting',6561666.666666666],PARAMETER['False_Northing',1640416.666666667],PARAMETER['Central_Meridian',-116.25],PARAMETER['Standard_Parallel_1',32.78333333333333],PARAMETER['Standard_Parallel_2',33.88333333333333],PARAMETER['Latitude_Of_Origin',32.16666666666666],UNIT['Foot_US',0.3048006096012192]];IsHighPrecision"


MUCH clearer syntax.

Thank you GP Team
0 Kudos
TedCronin
MVP Alum
dot notation
0 Kudos