I am trying to add a shape file in arc map without having the longitude and latitude but did not work . so how can i add new empty shape file in arcmap by using a simple python script ?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Assuming if you are reading a text file with point coordinates. First step to creat feature class:arcpy.CreateFeatureclass_management(outputpath,fc,"Polygon").And create a insert cursor:cursor = arcpy.da.InsertCursor(fc,["shape@"]). Then obtain the points from text file and add them to an array to creat a polygon:
If you just want a new shapefile, you can use arcpy.CreateFeatureClass_management. For example, if you want a new point data shapefile, you'd use something like