GIS
-
Create Layers list of a data frame via Arcpy in ArcGISGIS 2019. 8. 28. 15:12
1. Create Layers list from a specific MXD file Syntax: >>> import arcpy >>> LFC = arcpy.ListFeatureClasses() >>> LFC [u'Export_Output', u'Export_Output_2', u'Export_Output_3', u'Export_Output_4'] 2. Create Layers list from a current MXD file Syntax: >>> import arcpy.mapping as mxd >>> layers = mxd.ListLayers(mxd.MapDocument("CURRENT"),"") >>> print(layers) Reference 1. https://community.esri.com..
-
Batch Convert Projections of Vector Features via ArcGIS Model BuilderGIS 2019. 8. 28. 13:08
Successful Example Failed Example At first, I tried to write a python script within the Arcpy, But, I failed. That is because the project_management which can convert projections have many parameters. Although I followed the help pages from ArcGIS, I faced an error message below. >>> arcpy.Project_management("37608030","D:/37608030_UTMK.shp",arcpy.SpatialReference("PCS_ITRF2000_TM"),arcpy.env.ge..