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.
5,583
questions
0
votes
0
answers
19
views
Census data missing some .shp files
I am following this documentation from PostGIS.
For some of the files downloaded during the load process, I see errors like this
Unable to open tl_2022_04003_featnames.shp or tl_2022_04003_featnames....
0
votes
0
answers
11
views
Issues with Clipping Shape of Sentinel-2 NDVI Image in Google Earth Engine Python API
I'm working on an agricultural analytics application where I need to generate NDVI images from Sentinel-2 data for user-defined polygon areas. The backend is implemented in Python using Flask and the ...
-2
votes
0
answers
14
views
Key/value for the Ga-Marishane village, Limpopo, South Africa [closed]
I need help with selecting the key and value for a particular village. How can I do this?
0
votes
0
answers
28
views
Limiting the shown area for a shapefile
I am new to QGIS so im not that experienced with the program. I want to create a GeoPackage with various WMS and shapefile information sources for a small area, but all my source files have displayed ...
0
votes
0
answers
23
views
Get area of AOI from Sentinel-2 with Python [duplicate]
I'm using an array [n,m,4] (4 bands) download from Sentinel2 but the data doesn't have the parameters like transform, spatial_resolution, etc. Can I convert the array and parameters to GeoTIFF or GDAL ...
2
votes
0
answers
52
views
Why are there so many slivers in my polygon shapefile?
I georeferenced a map and then traced a vector polygon shapefile over it, but when I dissolve it I am left with an enormous amount of slivers. All the vertices are snapped as far as I'm aware. What ...
4
votes
2
answers
241
views
Converting at once 5000 GeoJSON into ESRI Shapefiles with QGIS
I am aware that I can individually load my GeoJSON layer and save it as a ESRI Shapefile. I am wondering if anyone is aware of a tool that can bulk load and convert my 5,000 different GeoJSON layers ...
0
votes
0
answers
11
views
Multidimensional Poverty Index Subnational Geographies
I am looking to merge data from Oxford's Multidimensional Poverty Index (MPI) at a subnational level with GADM boundaries, but I'm finding only about 60% match rates.
Does anyone know either the ...
3
votes
2
answers
38
views
Let ogr/GDAL automatically choose Driver based on file extension
I inherited some code for a QGIS Python plugin which uses the ogr module. For each usage of ESRI Shapefiles is hardcoded due to the loading of the respective driver (ogr.GetDriverByName("ESRI ...
0
votes
0
answers
38
views
"OK" button is grayed out in QGIS field calculator, despite troubleshooting
I am trying to add a new field to a shapefile layer (created in R) using the Field Calculator in the attribute table in QGIS. However, the "OK" button is grayed out and nothing I do will ...
0
votes
1
answer
18
views
QGIS - Avoid duplicates on Value-Relation widget
In QGIS, I'm working with two layers that are related to each other through the value-relation widget.
Layer 1: TEST
fields: "id"; "LIB"; "odc_ID"; "Code"
...
0
votes
1
answer
38
views
Multiple step function tasking with PyQGIS [duplicate]
Running a function in QGIS (example - "native:geometrysmooth") on a single shapefile, I can copy the 'Python Command' once setup and replicate this to run in the Python Console for a single ...
0
votes
0
answers
12
views
KML to SHP - Script error 000840: The value is not a feature layer when I add FeatureClasstoShapefile tool to script
I want to do is to convert KML files to shapefiles and I haven't seem to be able to find a straight forward script anywhere. Eventually, I would like to turn this into a script tool to use personally, ...
-2
votes
1
answer
61
views
Why do only points appear when I load shapefiles into QGIS?
I was sent files in these formats : .cpg, .dbf, .prj, .sbn, .sbx, .shp, and .shx.
I tried importing the zipped file containing all of them using Layer > Add Layer > Add Vector Layer and ...
0
votes
1
answer
31
views
Heatmap using lines in shapefile in QGIS
I used openrouteservice to produce routes from many points to one point. I would like to add some sort of heatmap scheme to this - supposedly blue for least popular routes and red for routes with most ...
4
votes
1
answer
101
views
ogr2ogr: Unable to import shapefile with '-lco RFC7946=YES' parameter to the PostGIS db
I'm trying to convert multipolygon to in the right-hand format so that Leaflet can use it on the front end.
ogr2ogr -nln [target_table] -nlt PROMOTE_TO_MULTI -lco GEOMETRY_NAME=geom -lco FID=gid -lco ...
0
votes
2
answers
88
views
How to union two polygon shapefiles by one or more attribute fields in QGIS
I would like to union two polygons that have the exact same fields in their attribute tables in QGIS. However when I use the Union tool, it makes an attribute table that has exactly twice the amount ...
0
votes
0
answers
107
views
Python script to convert CAD DWG to shapefile
I'm trying to write a python script which will convert a CAD .dwg file to a shapefile (or GeoJSON - whichever is more viable)
I don't want to have to use pyautocad as that requires AutoCAD to be ...
0
votes
0
answers
33
views
Edited shapes become invisible
I´m working editing shapes in a geodatabase with Osgeo. The last editions become invisible until I make a new edition.
The problem is that the last editions become invisible until I make a new ...
0
votes
1
answer
46
views
Can't load DBF attribute table correctly - QGIS
I'm trying to load in QGIS a shapefile with an edited DBF file. The objects are loaded correctly, but not the attribute table, which mixes the data from different cells.
It is a very large DBF with ...
2
votes
2
answers
171
views
INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified
I have a shapefile. I want to load the shapefile in to QGIS but I am not able to load it.
The shapefile is a layer in GeoServer
(2.23.2) and loaded into QGIS (3.28.15) vis WFS 2.0.0 connection.
QGIS ...
0
votes
0
answers
29
views
Shapefile layer is offset when reprojected to WGS 84
I have some shapefiles in UTM EPSG:37721, however, to cut the variables I need the polygon in WGS84. When I redesign my square shapefile in WGS, it appears crooked in QGIS. Is this right? Because if I ...
1
vote
1
answer
68
views
Export shapefile data as SVG circles
I am using QGIS and those two datasets:
https://www.naturalearthdata.com/downloads/50m-cultural-vectors/50m-admin-0-countries-2/
https://www.naturalearthdata.com/downloads/50m-cultural-vectors/50m-...
2
votes
1
answer
121
views
How to identify holes of missing geometry enclosed within a polygon in QGIS?
I want to locate or highlight all the holes (invalid interior rings that do not connect at all vertices and edges) and redundant geometry in a polygon shapefile in QGIS so that I can go back and ...
0
votes
1
answer
47
views
Create heatmap polygons shapefile from a points shapefile for a variable in attribute table in R
The objective is to create heatmap polygons from a points shapefile named "df_sf" for an attribute "V1" in the shapefile and then export these polygons as another shapefile in R.
...
1
vote
1
answer
41
views
Calculate percentages of intersected layers
I have two shape layers in QGIS. Layer A shows the geometry of districts in Berlin. Layer B shows water protection areas in Berlin. The different areas/ geometries of layer B can cross multiple ...
0
votes
1
answer
50
views
Aligning data from NetCDF with shapefile in QGIS
I am currently working on a project in QGIS where I'm extracting temperature data from a NetCDF file to subnational regions. I've encountered an issue that I hope someone here can help me understand.
...
0
votes
0
answers
33
views
ArcGIS Pro can't count overlapping polygons because of self-intersection
I'm trying to use the Count Overlapping Features tool in arcgis pro, but it keeps failing due to 'invalid topology'. Some research points out this has to do with invalid geometries, so I do check ...
0
votes
0
answers
17
views
How to batch export .tif and .shp from TNTmips RVC folders?
We have approximately 600 RVC folders per year, for a 30 year period (repeated visit of plots), that contain both georeferenced aerial images and vector mapping of wet areas via heads up digitizing. ...
-1
votes
2
answers
123
views
Locate or find holes tool in QGIS for polygon shapefiles [closed]
I want to locate or highlight all the holes (invalid interior rings that do not connect at all vertices and edges) and redundant geometry in a polygon shapefile in QGIS so that I can go back and ...
1
vote
0
answers
69
views
Maintaining data history in QGIS
I am working on mapping and characterizing watercourses. I use the shapefile in QGIS (version 3.28.8 - Firenze) to represent the water body and to insert data obtained in the field. However, I have a ...
0
votes
1
answer
31
views
CRS projection problem when I reproject my shapefile and raster
I have two layer, shapefile and raster. I need to re project shape-file into EPSG:32633 - WGS 84 / UTM zone 33N . I did it using this python code:
import geopandas as gpd
# Path to the original ...
1
vote
0
answers
46
views
Overlay shapefile boundaries on geom_tile heat map in R
I have a square matrix which corresponds to a square area of a map.
The values represent the mean value of any centroids in the relevant grid square.
I am visualising this using geom_tile in ggplot.
...
0
votes
2
answers
140
views
Create a program that merges attributes from a CSV file with a shapefile
I need to create a program that merges attributes from a CSV file with a shapefile, resulting in a new shapefile named after the CSV file.
How can I do this?
import geopandas as gpd
import os
import ...
1
vote
0
answers
33
views
Accented characters in CSV file appear as '?' when importing to QGIS 3.34.2 [duplicate]
I am trying to import a CSV set of data to join to a shapefile in QGIS but the accented characters and ñ character are displayed as missing in the attribute table and performing a join is impossible.
0
votes
0
answers
24
views
Getting a holed shapefile
I have two shapefiles the red one is the urban areas, the green is the agricultural land and the dark green represents forest. I want to remove the surface of the red shapefile from the green ...
1
vote
1
answer
80
views
Point shapefile has duplicate labels in QGIS
I have a point shapefile with a attribute table which has many rows. In the 'Location_Names' column there are occasional duplicates since some people live in the same location. Consequently, there are ...
0
votes
0
answers
60
views
Creating species distribution map
I have to create a map for my GIS project that shows marine mammal species distribution within the UK and Ireland. The marine mammal data set is from the iucn red list and comes in the form of ...
2
votes
0
answers
34
views
Merging smaller polygons into bigger surrounding polygons in QGIS [closed]
I am using QGIS 3.34.2 (Prizren). I am using a village-level shapefile which I downloaded from SHRUG. I have to use only the villages in West Bengal for an analysis. Furthermore, I need to combine the ...
1
vote
0
answers
84
views
QGIS flagging shapefiles as 'invalid data source'
I've downloaded some shapefiles (zipped) to my C drive for use in QGIS - however it can't seem to find them when I add a vector layer from the web browser, they simply don't appear. When I try to open ...
1
vote
0
answers
135
views
Cannot plot with Cartopy: Incomplete shapefile definition error BUT .shp .shx and .dbf are all present
I used to plot maps with Cartopy, which actually used to work fine until now.
Recently, when adding the maps features to a plot (es. coastlines etc) I get this error:
"ValueError: Incomplete ...
0
votes
0
answers
74
views
Seeking London building shapefile
I need a London building shapefile. I attempted to use Microsoft footprint, but encountered difficulties. I also tried downloading from Overpass without success.
How can I find a reliable way to ...
2
votes
1
answer
56
views
Combining two shapefiles containing roads of the same area
I have two layers both containing roads of the same area. One si from OSM, and the other is from another source. Both networks are quite dense and for the most part, they contain the same roads, ...
0
votes
0
answers
17
views
Copying data from server to my project to prevent broken links and altering original data?
I recently started at a new company and am working on updating their trail maps. The GIS database that I have inherited is quite the mess. I am using ArcGIS Pro and I keep running into broken data ...
0
votes
0
answers
40
views
QGIS adding world shore line buffer zone but dashes appear. How can I remove them?
I am trying to add buffer one to the world shoreline. However, when I zoom out, some unintended straight lines show up. When I zoom in, those lines disappear. This line does not exist.
How can I ...
0
votes
1
answer
56
views
Unable to add 7mb shapefile nor GeoJSONn into QGIS as a layer; Works in ArcGIS Pro though
The data in question, you can download as .geojson or shapefile: https://data.mississauga.ca/datasets/mississauga::mississauga-official-plan-2010-schedule-10-land-use-designations/explore
In the file ...
0
votes
0
answers
15
views
I have muiltiple polygons in a shapefile, and want to extract each polygon from a rasterfile and save as separate files
I have 80 polygons in a shapefile, and one complete raster file, I want to extract each polygon from a raster file and save it as a different raster files.
numPolygons <- length(shapefile)
...
4
votes
1
answer
161
views
Clearing some lines in QGIS leads to features with no data
I'm trying to cut and delete some lines in a shapefile with QGIS. The output of this edit is the input to the Basemap.readshapefile function in matplotlib.
My edited shapefile does not work well. It ...
0
votes
0
answers
25
views
Some metadata doesn't show up in manually created .shp.xml in QGIS?
I'm creating shapefiles in Python using geopandas from processed climatological information. This a simplified version of the code I'm using to generate the shapefiles:
import geopandas as gpd
from ...
0
votes
0
answers
43
views
Using QGIS to edit shapefile without creating 3D shape types
I have edited a shapefile with QGIS where I have cut some polygons to get open lines. The original file works in my application, whereas the edited one does not. I'd like to understand what's going on ...