Skip to main content

New answers tagged

0 votes

gdalwarp cutline without using a shapefile

Using WKT for gdalwarp cutline was my long-awaited feature, which @EvenRouault has implemented in version 3.9.0. https://github.com/OSGeo/gdal/issues/7658 gdalwarp -r near -of VRT --config ...
christoph's user avatar
  • 5,777
1 vote

Error importing shapefile into PostgreSQL using PostGIS

Does your file already have a field called gid? The shapefile loader is trying to create a unique primary key in the database called gid, so if a field called that already exists in the data it will ...
HeikkiVesanto's user avatar
1 vote

ogr2ogr gives an overflow error

You should run the command with: -lco PRECISION=NO Which it looks like you are doing. You can try: -lco OVERWRITE=YES -overwrite Table is probably already be there, as you have run the command with -...
HeikkiVesanto's user avatar
1 vote

Where can I find the metadata of Sub-regions OSM shapefiles via geofabrik?

Read the documentation https://download.geofabrik.de/technical.html. Follow the link from the "Shape files" section https://download.geofabrik.de/osm-data-in-gis-formats-free.pdf The ...
user30184's user avatar
  • 66.4k
3 votes
Accepted

"Could not load source layer for INPUT: memory: not found" error in Processing Script using PyQGIS

The error occurs because the intermediate results stored in memory are not being handled properly. QGIS sometimes has trouble managing layers in memory between processing steps. To fix this, you can ...
Nil's user avatar
  • 1,572
0 votes

Where can I find the metadata of Sub-regions OSM shapefiles via geofabrik?

You may have lost some files. I tried it and the files exist.
HarleyX's user avatar
0 votes

Adding CRS to shapefile in GeoPandas

I had the same problem you can solve it by creating a shp1.prj file defining the CRS of geographic coordinate WGS84 as follow: GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID[&...
Mohamad Awad's user avatar
1 vote

How to bind two sf objects based on matching values in one column in r

Given these two sample objects: > t1 Simple feature collection with 1 feature and 2 fields Geometry type: LINESTRING Dimension: XY Bounding box: xmin: 1 ymin: 6 xmax: 5 ymax: 10 CRS: ...
Spacedman's user avatar
  • 64.4k
1 vote

How to remove grid lines of lithology data downloaded from Bhukhosh?

A solution as mentioned in the comments is to dissolved the geometries using the dissolve tool. This of cause creates a new dataset that brings it's own challenges such as being massively multi-part ...
Hornbydd's user avatar
  • 43.7k
0 votes

City shapefile for free

You can find this information for free, in the page of ArcGIS Hub. Here is the link: https://hub.arcgis.com/datasets/schools-BE::world-cities/about
MONICA MARIA GONZALEZ PIMIENTA's user avatar
0 votes

Error in dissolving shapefile with ogr2ogr

These things needs to be changed to the first command in your question: At least on windows, you need to put double quotes around the SQL query, otherwise gdal doesn't interprete it as one parameter ...
Pieter's user avatar
  • 2,759
3 votes

Extract shapefiles from this Esri map using QGIS

Looks like there is a way to find the open data sources to download if you want the data locally. Looking at the link you shared, if you ask for more details on a given feature, it will provide you ...
Kasper's user avatar
  • 3,352
3 votes

Extract shapefiles from this Esri map using QGIS

In QGIS Use https://services2.arcgis.com/PZklK9Q45mfMFuZs/arcgis/rest/services/ In QGIS Browser use ArcGIS REST services and add the url as a new connection Load the WindCable_EngWalNI_TheCrownEstate (...
Mapperz's user avatar
  • 49.9k
3 votes
Accepted

How can one display an array (from a shapefile) as a gradient without the images pixel cells 'dimming' when zoomed out?

Remove the polygon outlines: Open Layer properties and click Symbology Click Symbol Click Simple Fill Change Stroke Style to No Line Result
user2856's user avatar
  • 66.6k
0 votes

Cannot plot with Cartopy: Incomplete shapefile definition error BUT .shp .shx and .dbf are all present

I had the same "incomplete shapefile definition" error. My first instinct was to check the presence of all the files as well. I also deleted them to force a re-download as advised in this ...
Etienne's user avatar

Top 50 recent answers are included