ArcGIS Pro学习加微信公众号



我的微信公众号

 

ArcGIS Python根据的点坐标,创建点要素
    

 ArcGIS Pro学习加微信公众号


import
arcpy # A list of coordinate pairs # pointList = [[1,2],[3,5],[7,3]] # Create an empty Point object # point = arcpy.Point() # A list to hold the PointGeometry objects # pointGeometryList = [] # For each coordinate pair, populate the Point object and create # a new PointGeometry for pt in pointList: point.X = pt[0] point.Y = pt[1] pointGeometry = arcpy.PointGeometry(point) pointGeometryList.append(pointGeometry) # Create a copy of the PointGeometry objects, by using pointGeometryList # as input to the CopyFeatures tool. # arcpy.CopyFeatures_management(pointGeometryList, "c:/geometry/a.gdb/points")

 


我的微信公众号

 

ArcGIS Python根据的点坐标,创建点要素
    

 ArcGIS Pro学习加微信公众号

相关文章:

  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-30
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案