Questions tagged [shapefile]

A vector data storage format for storing the location, shape, and attributes of geographic features. Often referred to as 'an ESRI shapefile', as ESRI developed it.

Filter by
Sorted by
Tagged with
-3
votes
0answers
24 views

Getting Clip error using ArcMap [closed]

What did I do wrong here in ArcMap?
0
votes
0answers
29 views

Using GeoPandas to generate shapefile from GeoJSON that could be open for ArcGIS

I got from an API a layer of parcels in format GeoJSON, just like the file in this .zip https://www.dropbox.com/s/5eqi8bbqt6ej6lc/json_data.rar?dl=0 I need to convert this to a shapefile that could ...
-1
votes
0answers
25 views

Criteria for successful shapefile exchange QGIS ArcMap [closed]

Is there any checklist of criteria what settings to be made for exporting a shapefile in QGIS to be successfully used in ArcMap? Which is the most promising data format for exchange?
2
votes
2answers
58 views

Way I can find out when a shapefile was created or last updated

I'm working with 100+ layers on QGIS, and I am trying to determine when each layer was last created or updated. All the layers are shapefiles. Is there a way I can find the creation/update date?
0
votes
0answers
30 views

Exported layer shows zero geometries using QGIS

QGIS Desktop application (version X) was used to query a layer and then export result geometries as shapefile. QGIS Desktop application (3.10.12-A Coruña) is used to open the shapefile and view ...
-2
votes
1answer
36 views

Every polygon-shapefile I create is corrupted [closed]

I am creating by hand a mask as a polygon shapefile (ESPG:32607, and all the other layers have the same reference). It works fine until I close my project and want to reload my shapefile. Every mask ...
0
votes
1answer
54 views

Pairwise shortest distance between points in a road network

1. Problem I have the coordinates for over 5000 points (cities) that lie over a road shape file, as partially illustrated below: I'm working on R, and I need to find the shortest distance between all ...
0
votes
0answers
48 views

Convert shapefile to DWG with FME keeping all the attributes from shapefile

I have a shapefile that I want to convert to a DWG file. I want to be able to see all the information (of attribute table) shapefile to the layer properties on AutoCAD. I have tried many things but ...
1
vote
1answer
26 views

How can I do to export shapefile with symbology.svg COLORED to DXF format?

I created a shapefile categorized by characteristics, and I assigned to each element a SYMBOL.svg COLORED with Design Effects. I want to export the shape with the characteristics of the colored ...
0
votes
1answer
25 views

Converting.tif files to shapefiles [closed]

I have received multiple tif. files like roads, forest_dis_scaled, grass_dis_scaled. I am trying to create a useful map for the study area but I am not sure if it is even possible to convert these ...
0
votes
1answer
35 views

Load a shapefile into geopandas from a request.files

I'm trying to receive a simple .shp file, without been zipped, via web request and convert it to a geopandas dataframe. I tried to use io.BytesIO to wrap the file but also didn't worked.. I tried to ...
0
votes
2answers
39 views

How do I add my .shp file as a Vector layer in QGIS?

I'm working in QGIS 3.12 and my university as given us zip files of "data" for each practical we do. I've unzipped it and followed steps of adding a vector layer and navigating to the right ...
1
vote
1answer
35 views

Loop for cropping, cloud masking Sentinel 2 L2A images

I have 6 stacks Sentinel 2 images (10m resolution) that I want to crop to my AOI and cloud masking. After which I want to calculate NDVI in R. The stacks are 3 from different months of 2016 and 3 from ...
0
votes
0answers
12 views

Shapefile or DXF file edit in C#

I have a C# desktop application. In the future I want to be able to open files of type .dxf or .shp, edit them, save in the same format (as if it were CAD and its tools - simple -). Is there an open ...
2
votes
1answer
21 views

Google Earth Engine: Calculate milliseconds since epoch from datetime of uploaded shapefile?

I want to get the milliseconds since epoch of thousands of points, each with different timestamps. Here is what I believe I need to do, but my Google Earth Engine knowledge is limited and I can't find ...
0
votes
0answers
8 views

Transfer road netwrok node id's from shapefile to .osm file using ogr2osm

I have been able to convert a custom road network in shapefile format to .osm data. The original shapefile contains a column "source" and a column "target" to indicate the node id'...
1
vote
1answer
47 views

Convert xy Cartesian field in CSV file to shapefile with latitude and longitude field

I am trying to convert the CSV file that I have for a shapefile. The CSV file contains a Cartesian xy coordinate field that I wanted to convert to xy longitude and latitude field in the shapefile. I ...
1
vote
1answer
35 views

Set geometry in geodataframe to another column fails : TypeError: Input must be valid geometry objects:

I have CSV file which I read with geopandas. I use "read_file",define the crs , but seems like it doesn't know to choose the correct geometry column. I have tried to use "set_geometry&...
1
vote
0answers
20 views

Shapefile empty after export of Add XY Data using ArcMap

I am using ArcMap. I have a sheet with 3111 records. Using "add xy data" its attribute table is fine but when I exported it as .shp file it only displays header. How do I solve this problem?
0
votes
0answers
39 views

Field length in geopandas shapefile output

I am converting an excel sheet to .shp via pandas i.e. I have a dataframe with 150+ columns and ~900 records (increasing by about 50 every day), that I convert to geodataframe and export to shp: ...
1
vote
0answers
14 views

How do I append a shapefile to PostGIS table with multiple geometry fields using ogr2ogr?

I am having an issue when trying to append shapefile data to an existing table in my PostGIS database using ogr2ogr. The existing table has multiple geometry fields. When I append the shapefile the ...
1
vote
2answers
33 views

Detecting if a point is inside a polygon with Python 3 and OGR

I am working in Python 3.7 using ogr to check if a point is inside a polygon. Here I put the code. The result in geom is not compatible with the tuple list data type used by the point_inside function. ...
1
vote
0answers
18 views

Clip nc file with shapefile

I know the question has been asked before, but I get an error trying to clip my nc file with a shapefile with the method used in this post. My error is DimensionError: x dimension not found. '...
0
votes
0answers
17 views

Why are the new vertex editing protocols not working properly in QGIS 3.16?

I am using QGIS 3.16 to create new shapefiles from existing raster maps (p 225 in the 3.16 User Guide). My new polygons work OK when incorporated into other projects, but I cannot edit them to correct ...
0
votes
0answers
48 views

New layer not showing up on map

I am using QGIS3 I have GeoSON layer that is not showing up on my canvas. When I zoom to the layer it zooms to a point that is very far from the rest of my map features. I would like the 'browfeild' ...
1
vote
1answer
28 views

QGIS Union: Could not add feature with geometry type GeometryCollection to layer of type MultiPolygon

I overlay several Shapefile layers with Vector > Geoprocessing Tools > Union in QGIS. The first five layers do work. However, when I'm trying to add another layer I receive the following error ...
1
vote
1answer
30 views

Convert shapefile to SVG while keeping attributes

Is there a way to export shapefile to SVG while keeping attributes? I tried the mapshaper and QGIS' Mapprinter plugin but with no result, I get the geometry only but I need attributes. I want when I ...
0
votes
0answers
17 views

Program to generate 3D polygon slope

What I am trying to do is create, or find an open source program that can generate a 3D shapefile based off of a line that has a predetermined slope and distance. For example. I draw a line at the ...
1
vote
0answers
30 views

How to merge lines from shapefile using PyShp and Shapely and save them in a new shapefile?

I have files with line segments that cover road network of towns. The issue is that each street with specific name consists of smaller segments that I need to merge into one line covering the whole ...
0
votes
1answer
27 views

Line still appearing but not existing in the metadata of a shapefile

For a project, I had to merge the cells of a grid to upscale it. It was possible to merge all I wanted but there is kind of a displaying problem: there is this line which appears visualy but that is ...
0
votes
1answer
21 views

How to export a table as a geometry in Google Earth Engine Code Editor

I have imported my shapefile into GEE which is in my assets folder as a table. I extracted the shape from the table using this code: table = table.geometry(); Map.centerObject(table); Map.addLayer(...
0
votes
1answer
28 views

Navigating an Object of class 'SpatialPolygonsDataFrame' to filter on Polygon Area

I have an Object of class 'SpatialPolygonsDataFrame' with the structure shown below. What's the secret to getting to the @area slot? Ultimately, I'm trying to filter this file so that I'm only left ...
0
votes
1answer
34 views

How to set image as background for a shapefile polygon using QGIS

I would like to change the background of a polygon to an image using QGIS. Under Symbology, there is an option for Raster Fill but the .jpg image is so zoomed in you cannot see it. Is there a way to ...
4
votes
2answers
74 views

Eliminating border in project

My QGIS project consists of two adjacent Canadian NTS map sheets. Each sheet consists of multiple shape files. Each set of shape files has a border. How do I eliminate the border?
0
votes
0answers
24 views

How to check integrity of Python-processed shapefile

In my QGIS project of American railroads, using USGS Base Topo Layer and shapefiles giving railroad details as of 2015, I have used the Python-3 pyshp library to edit the dbf database, adding some ...
1
vote
1answer
26 views

Massachusetts Woodland Shapefile / GDB Not Rendering Correctly QGIS

I am working on a personal project that utilizes USGS Land Cover Woodland data sets and I seem to have an issue in QGIS where part of the state of Massachusetts is missing / not rendering correctly. ...
0
votes
1answer
19 views

org.geotools.jdbc.JDBCDataStore change column name from the_geom to shape?

org.geotools.jdbc.JDBCDataStore stores the geometry for a shape file in a table column called the_geom. Is it possible to change the name of this column to something other than the_geom, perhaps shape ...
2
votes
1answer
55 views

Converting a single shapefile with multiple features into independent GeoJSON files using ogr2ogr

Let's say there's a single shapefile that contains multiple features. Most of which are polygons. How can one convert those features into separate independent GeoJSON files? Can this be done with ...
2
votes
0answers
62 views

Georeferencing with shapefile instead of raster image in QGIS

I have a geographic file (be it shapefile or otherwise) which is stretched and dislocated into the wrong projection space. So I'm wondering how to approximate its correct location by selecting points ...
2
votes
0answers
32 views

Problems when importing shapefile with the Blender GIS add on from QGIS: contour lines appear flat

So I'm trying to import a shapefile of contour lines of groundwater isohypses that I have loaded into QGIS and saved separately. I'm actually following the steps of a online tutorial of our department ...
1
vote
0answers
22 views

Spatial regression: general nesting spatial model using splm package in R

I have a shapefile of panel data (multiple years of observations for each polygon). I am estimating fixed effects spatial regression models with this data. I used one year of this data to generate a ...
2
votes
2answers
41 views

Simulation in grid/array over map in Python

I'm new to GIS. I'm a physicist and I have a simulation which I usually run in numpy arrays (usually ending up with a heatmap or contour plot like below). However, I now want to run the simulation ...
4
votes
1answer
50 views

XML bounding boxes to shapefile QGIS

I used labelImg to create some bounding boxes around items of interest on a TIF image. I am wondering if I can convert those XML bounding boxes into shapefiles? I've looked at a few other posts for ...
1
vote
1answer
24 views

Create square grid on raster file

I have tried to create a fishnet(10 by 10) using the below code. But the output is as shown below. What is that I'm missing in the below code? import geopandas as gpd from shapely.geometry import ...
1
vote
1answer
39 views

Shapefile partly hidden in QGIS but fully visible in Geosecma

I'm working in QGIS Hannover and have added some vector shapefiles to my project. Some of the data in the files won't show up in the viewport, leaving "holes" in the map. The same file ...
0
votes
1answer
36 views

ogr2ogr SHP to MSSQL import leaves geometry column empty

I am trying to import a Shapefile with polygon features into MSSQL database with this command: ogr2ogr -f "MSSQLSpatial" "MSSQL:server=***;uid=***;pwd=***;database=***" "D:\...
0
votes
1answer
19 views

Render the point shapefile and raster layer together as single image

I have a point layer as one shapefile and MrSid file as raster layer. How to overlap these two layers and clip the merged layer and render it as an output image file?
2
votes
1answer
47 views

Shapefile string data max length and character [duplicate]

Does anyone know why in ESRI help website (1, 2), it states that the field length if not specified will default to 255. However when I manually create a shapefile the max character is only 254. Why is ...
0
votes
1answer
38 views

Landscape change metrics for vector data

I am new to GIS. I am currently working on a problem which involves two vector datasets about habitat and land use ("now" and "future"). I need to generate metrics like "...
6
votes
3answers
318 views

Plotting polygons as separate plots using Python

I have a shapefile with several polygons in a geodataframe. I want to plot each individual polygon in their own plot. I tried for pol in z3: plt.figure() plt.plot(pol) plt.show() But this just ...

1
2 3 4 5
95