All Questions
5,940 questions
1
vote
0
answers
113
views
Exporting GeoPackage to shapefile
I have a GeoPackage layer with point features containing some important attributes. When I try to export this layer into a shapefile format the point features are exported but all of the attributes ...
0
votes
1
answer
76
views
QGIS IDW interpolation does not show the list of attributes
I am trying to use a point layer as the input layer for IDW to generate an interpolated map.
The Table Attribute of the corresponding shapefile looks:
In which I used "field_4" and "...
1
vote
0
answers
56
views
to_crs method does not seem to change the projection correctly in GeoPandas
I am trying to project a .shp file from ESRI:102020 to ESRI:4326 (WGS 84).
This is my code:
import geopandas as gpd
mpa = gpd.read_file(fn)
mpa1 = mpa.to_crs("epsg:4326")
When plotting the ...
5
votes
1
answer
97
views
Difference of attributes between two shapefiles based on similar field in QGIS
My issue is best shown using tables (the issue is only with shapefiles in QGIS):
pre-culvert.shp:
element_no
depth
1
10
4
3
post-culvert.shp:
element_no
depth
30
44
4
6
Looking for the ...
0
votes
1
answer
59
views
Fields that fill in automatically
I want to create a point layer with an ID field that fills in automatically as I digitize a geometry. It's possible? How can I do?
0
votes
0
answers
10
views
Unable to load FDO Provider library 'ShpProvider.dll'; (Null)
One of our interns is having trouble loading shapefiles in AutoCAD2023 Civil 3D. When trying to add a shapefile to a layout he receives the following error: Unable to load the FDO Provider Library '...
0
votes
0
answers
57
views
use ogr2ogr shp to s57 error
I have used ogr2ogr -f "S57" 12345.000 12345.shp -skipfailures --Debug ON, but it fails. The console show:
GDAL: Proxy driver FileGDB not registered due to ogr_FileGDB.dll not
being found ...
1
vote
1
answer
131
views
Putting points on map using ArcGIS Pro
I am trying to create a map that shows a shaded region and a bunch of labeled dots of landmarks in the area. For example, I want to have a map of New York City with Manhattan shaded and then a dot ...
0
votes
1
answer
36
views
Cannot load a geodataframe (from a shapefile) into PostgreSQL (as table) via SQLAlchemy
I would like to publish a shapefile from a directory to GeoServer by using the Python library geoserver-rest.
I understand that in order to do so, I need also to load the shapefile as geodataframe (...
0
votes
0
answers
46
views
Create shapefile using fiona geopandas succeed but no feature created
From my script I want to create a shapefile from object detection, when the file is small or medium size (under 150.000 features) its workable, but when it more than that value, the feature is null in ...
1
vote
1
answer
75
views
Creating polygon layer (road border) from line layer (road) and polygon layer (buildings) using QGIS [closed]
Picture 1 showing a line layer representing road and a polygon layer representing buildings.
How can I create another polygon layer for the road with the edge touching the buildings e.g. thick orange ...
0
votes
0
answers
66
views
Plotting spatial data in Python
I am very new to mapping in Python and I'm trying to plot data through Jupyter Notebook -
import pandas as pd
import numpy as np
import xarray as xr
import sys
import os
import matplotlib.pyplot as ...
2
votes
1
answer
55
views
Splitting SHP file based on property starting with an underscore
I found a rather annoying "feature", when trying to split a SHP file based on values of a property, which has a name starting with and underscore (like _property). The problem occurred when ...
0
votes
0
answers
59
views
Error saving KML as shapefile using QGIS
I have imported a .kml as vector, worked on that and saved after some addition in the data. The error message received is:
Export to vector file failed.
Error: Creation of layer failed (OGR error: ...
3
votes
1
answer
114
views
Trouble with QGIS .shp files and .dbf files
I am currently trying to add a series of files called "LotNumber", it has a .dbf and .shp file that has already been made on ArcMap. When I try to add a vector layer in QGIS and add either ...
0
votes
1
answer
64
views
Merging shapefile with data file with coordinates
I have a shapefile 'shp' with boundaries, and I have a data .csv file with coordinates and some values. I want to join the df to shp, so that each coordinate/observation would be in the correct zone/...
0
votes
0
answers
122
views
Downloading OSM data for whole of Netherlands via Geofabrik
I need shapefile data for roads and railways in the Netherlands. I can use https://download.geofabrik.de/europe/netherlands.html to download several files. However I can only data for each province (...
0
votes
0
answers
85
views
Convert CSV file to shapefile
I've been trying to save my CSV file as a shapefile, but every time I attempt to do so, I encounter an error that says Storing metadata for the specified URI is not supported. I've double-checked the ...
0
votes
0
answers
51
views
Loss of Polygons on QGIS 3.28
I have recently saved a QGIS project with about 1200 polygons representing historic field boundaries. The attribute table contains such information as size, owner code, tenure,parcel number and ...
0
votes
1
answer
35
views
How do I name points on a shapefile layer?
I have a shapefile layer with a bunch of points placed on a map. I would like to name each point "R01" "R02" and so on. I know how to give each point a numerical value that I can ...
1
vote
1
answer
51
views
Storing SimpleFeatureStore to shapefile when the attribute names are longer than 10 characters
When I, with the code below, try to export a SimpleFeatureSource to a SHAPEfile attribute names with more the 10 characters will be truncated, due to the shapefile format
(e.g FEATURE_TEXT -> ...
-1
votes
1
answer
49
views
Ensuring geometries read from shapefile contain only Coodinate objects instead of CoordinateXYZM using Java GeoTools
I recently upgraded GeoTools library from version 22.1 to 31.1.
Since upgrading, I'm getting lots of exceptions "Invalid ordinate index: 3" during my program execution.
After some ...
0
votes
0
answers
66
views
Converting shapefiles to GeoJSON with specific structure in QGIS
I work in agriculture and at the moment I'm the only GIS techy in our organisation. Unfortunately, I don't have a lot of programming experience.
For a certain applicator we have to convert shapefiles ...
1
vote
0
answers
35
views
Rotating charts in QGIS
I have a point layer with stacked bar charts. I need the charts to always be on the same place, relative to the point (i.e. right to the point). I defined the placement of the charts by the points ...
0
votes
0
answers
53
views
"ERROR: 22001: value too long for type character varying(6)" for polygon shapefile
I am facing an error
ERROR: 22001: value too long for type character varying(6)
while uploading a shapefile to online govt. portal. When I asked the person only mentioned that there is problem with ...
1
vote
1
answer
67
views
ogr2ogr gives an overflow error
I'm trying to use ogr2ogr to import shapefile data in my PostgreSQL database.
The MAC command line I use for this is export PGPASSWORD=xxx* ogr2ogr -skipfailures -nln xx_table -f PostgreSQL PG:"...
0
votes
0
answers
34
views
How can I add an empty Attribute column to an existing (ESRI) shapefile (.shp) [ or a Table] and populate it with values from a Raster (Image) layer?
I have a GIS layer of Agricultural Field Boundaries (cadastral boundaries) with dozen attributes including Owner's Name, Seasonwise Crop list, etc. I want to add and store a new attribute called ...
2
votes
1
answer
145
views
"Could not load source layer for INPUT: memory: not found" error in Processing Script using PyQGIS
I have a workflow where a raster should be polygonized and afterwards simplified. The simplified vector should be saved as a shapefile. I am using the template script from QGIS to create a processing ...
1
vote
2
answers
41
views
Where can I find the metadata of Sub-regions OSM shapefiles via geofabrik?
Currently I am using data for some regions (provinces) of the Netherlands via this link: https://download.geofabrik.de/europe/netherlands.html
However, when I download the shape files (.shp.zip) I ...
0
votes
0
answers
185
views
Converting CSV to MultiPolygon shapefile in QGIS
I have a MultiPolygon shapefile and the attribute table looks like this.
The district names and state names are jumbled with special characters. I know I can use the replace function in the Field ...
0
votes
0
answers
17
views
Clip NetCDF data by point shapefile in Python [duplicate]
I have .nc files containing global chl-a data. I want to clip these files using a point shapefile and get the chl-a values specifically for those points. However, every similar code that I have come ...
0
votes
0
answers
46
views
Different size between raster and shape
I have a problem trying to manage spatial data. I download the Birds of the World distribution shapefiles provided by BirdLife International and I have the cropland dominance from NASA data (available ...
0
votes
1
answer
351
views
How to bind two sf objects based on matching values in one column in r
I have two sf objects. The first has one object with 3 variables and the second 2 objects with 3 variables. The data looks like this:
Table 1
| River | length | geometry |
| ------ | ------ | --...
0
votes
1
answer
67
views
How to remove grid lines of lithology data downloaded from Bhukhosh?
I have downloaded the Lithologic Data for a certain district from Bhukhosh, Geological Survey of India (GSI). The data obtained comes in .shp format. However there are certain grid lines present in ...
0
votes
0
answers
46
views
How can I move each polygon in a multipolygon file to a random new location within bbox?
I am trying to reassign the coordinates for every polygon in a multipolygon file, so that each would be placed in a random new location in a defined bounding box, while preserving its attributes. The ...
2
votes
1
answer
94
views
Error in dissolving shapefile with ogr2ogr
I am trying to dissolve a shapefile having polygon geometries. I want to dissolve the shapefile which will create a single multi-polygon geometry.
ogr2ogr -dialect sqlite -sql SELECT ST_Union(geometry)...
2
votes
2
answers
254
views
Extract shapefiles from this Esri map using QGIS
I'm trying to get this spatial data as shapefiles:
https://thecrownestate.maps.arcgis.com/apps/webappviewer/index.html?id=b7f375021ea845fcabd46f83f1d48f0b
However I can't find out how to download it.
...
1
vote
0
answers
40
views
Import shapefile using ogr2ogr with a subselect to fill a constraint fails to "cannot open datasource"
I try to import various shapefiles into a postgis database. The shapefiles have some foreign keys referencing other existing (and already successfully imported) tables.
ogr2ogr -f "$($json....
0
votes
0
answers
108
views
How do I stop vertex jumping when editing line features in QGIS with shapefiles?
I've been using QGIS 3.34 (previously 3.28) for editing shapefiles containing line features. However, I've encountered a persistent issue: occasionally, while editing a feature, a vertex from a ...
0
votes
1
answer
58
views
How can one display an array (from a shapefile) as a gradient without the images pixel cells 'dimming' when zoomed out?
I have a shapefile that contains a value 'carbon'. This field contains values from -130 to 130.
Symbology settings:
Graduated
Value: Carbon
Color ramp: spectral
Classes: Equal Count
When I am zoomed ...
0
votes
0
answers
53
views
Apply styles to shapefiles in GeoNode
I'm currently working in a geo project where so far, an user can upload their own Esri shapefiles from my own site, we save some metadata to our own DB and by hardcoding we use GeoNode 4.2 (with ...
0
votes
0
answers
37
views
Overlay TIFF raster and "Shape" file a free library in C#?
Is there any free C# library to get the elevation data for the vertices of a 2D line feature Shape file form a raster tiff file?
The "Elevation" column in the attribute table of "...
0
votes
0
answers
55
views
GRASS GIS from server taking hours to import a shapefile
I have a large shapefile (1GB) with 12k features. It takes 8 minutes to load in R studio (v.4.3.3) using terra package (v.1.7-71), function vect(), on a Windows machine with 32GB of RAM and an Intel(R)...
1
vote
0
answers
130
views
.SHP to .DXF while preserving the labels
I have a shapefile layer containing points that hold their name as an attribute and I displayed those names as labels using QGIS . Now when I try to export these points as .dxf file the label is not ...
1
vote
1
answer
51
views
Define primary key when converting shapefile
I am currently trying to convert a shapefile into a .sql file with the shp2sql command, but when it generates the .sql file, it generates a gid column twice, one that's inherent to the shapefile I am ...
0
votes
0
answers
15
views
How to generate the mean of each SOA polygon
I have air pollution data for each different year in shapefile format. I imported each year into QGIS and the shapefiles are in points format and then I added an Esri layer for the air pollution ...
1
vote
1
answer
102
views
Counting outgoing links connected to a node [closed]
I've a large linear shape and I need to find all nodes with class >=3 connected to at least two outgoing links.
It's actually a sewage graph, I'm trying to identify sewer dividers.
I have read ...
0
votes
0
answers
57
views
Shapefile and GeoTIFF do not match
I am trying to match a shapefile with polygons with a GeoTIFF, but I have a slight offset. The shapefile was created manually.
How can I fix this?
I am preparing a dataset for a neural network that ...
3
votes
2
answers
191
views
A suggestion on how to create a cemetery shapefile to include multiple entries in an attribute table?
I want to do a small volunteer project of a war cemetery in my hometown and to make it available to public.
However, I never did this so maybe you can have some suggestions to me. The hard part I ...
2
votes
2
answers
2k
views
Converting shapefiles into GeoJSON
Does anyone know where I can convert multiple ArcGIS files (.cpg .dbf .prf .sbn .sbx .shp .shx) into GeoJSON/TopoJSON for free?
MyGeodata Converter works perfectly but I don't want to subscribe for a ...