使用python在arcmap中创建新的shapefile [英] create new shapefile in arcmap using python

查看:168
本文介绍了使用python在arcmap中创建新的shapefile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在没有经度和纬度的情况下在弧形图中添加形状文件,但是没有用.那么如何使用简单的python脚本在arcmap中添加新的空形状文件?

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 ?

推荐答案

如果只需要一个新的shapefile,则可以使用

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

arcpy.CreateFeatureclass_management(r'C:\output', "points.shp", "POINT")

这篇关于使用python在arcmap中创建新的shapefile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆