


Click Edit to define the shapefile's coordinate system.Click the Feature Type drop-down arrow and click the type of geometry the shapefile will contain.Click in the Name text box and type a name for the new shapefile.Click the File menu, point to New, then click Shapefile.Select a folder or folder connection in the Catalog tree.After the new attributes have been added as part of the shapefile, you can delete the default column if you decide you don't want to use it.


Add the appropriate attributes to your shapefile. For shapefiles, an integer column named Id is added as an attribute. Because it must contain at least one attribute column, ArcCatalog adds a default column to the shapefile when it is created. After creating the item, define its attributes by right-clicking it in ArcCatalog and clicking Properties. The process of defining the new shapefile's attributes is separate from creating the shapefile itself. If you choose to define the shapefile coordinate system later, it will be classified as Unknown until then. You can also define the coordinate system of the shapefile. These properties can't be modified after the shapefile has been created. When you create a new shapefile, you must define the types of features it will contain, whether those features will represent routes (m-values), and whether those features will be three-dimensional (z-values). You can create new shapefiles in ArcCatalog or by using the Create Feature Class tool. Gdf.to_file('file.shp', driver='ESRI Shapefile')Īny advice? My data comes from a csv file that contains one column with longitude coordinates and another with latitude coordinates. Gdf = gpd.GeoDataFrame(df, crs='EPSG:4326', geometry=geometry) import arcpyĪ = r'F:\\GY539_Programming\\project_data' When I run the code below, sometimes I get an empty shapefile, and sometimes it runs but returns nothing at all. I'm having issues writing a GeoPandas DataFrame to a shapefile using the GeoDataFrame.to_file() function.
