AnsweredAssumed Answered

Generate dynamic input with python script

Question asked by Corderotino on Nov 11, 2014
Latest reply on Mar 10, 2015 by GSCUser85

I'm new to this topic as I can use sys.argv [] or GetParameterAsText?

for can I make dynamic input coordinates and the name of the output shapefile

I'm using 10.2.2 ArcGIS, I want to create a python script and have the following script:

 

arcpy.env.workspace = 'C:\Users\Modelo\Puntos.gdb'
arcpy
.env.overwriteOutput = True
sr
= arcpy.SpatialReference('WGS 1984')
arcpy
.env.outputCoordinateSystem = sr
latitude
= 14.024982
longitude
= -89.962368
p
= arcpy.Point(longitude, latitude)
pg
= arcpy.PointGeometry(p)
arcpy
.CopyFeatures_management(pg, 'salida.shp')

 

Outcomes