Untuk menampilkan informasi suatu feature class atau file shp dengan menggunakan Python dapat dilakukan di ArcGIS dengan menulis script program.
Dengan menggunakan IDLE (Python GUI) sebagai berikut:
import arcpy
from arcpy import env
# Set environment settings
env.workspace = "D:/MASTERPROGRAM/Python/esri video/data/PythonDesktop10_0/Data/Shapefiles/Streets.shp"
# Set local variables
inFeatures = "Schools"
#fc = inFeatures = "Streets"
desc = arcpy.Describe(inFeatures)
print "Shapetype", desc.shapeType
Dengan menggunakan IDLE (Python GUI) sebagai berikut:
import arcpy
from arcpy import env
# Set environment settings
env.workspace = "D:/MASTERPROGRAM/Python/esri video/data/PythonDesktop10_0/Data/Shapefiles/Streets.shp"
# Set local variables
inFeatures = "Schools"
#fc = inFeatures = "Streets"
desc = arcpy.Describe(inFeatures)
print "Shapetype", desc.shapeType