Questions tagged [ogr]
The OGR Simple Features Library is a C++ open source library (and command line tools) providing access to vector file formats.
1,121 questions
3 votes
2 answers
266 views
GeoPandas does not detect unclosed polygons as invalid, unlike OGR
With GDAL 3.12.0dev-c93ac7701e7c5b3b5537598f2dea1e8a382cc81a, released 2025/08/08 I can extract some invalid unclosed rings in a shapefile, but I cannot get GeoPandas to extract them. In order to play ...
1 vote
0 answers
31 views
Create an ODBC connection to a Netezza Database using QGIS 3.22
I'm trying to connect QGIS 3.22 to Netezza using ODBC. Methodology: Confirm appropriate Netezza Drivers are installed Create both file and system DSN for 64 bit ODBC connection. Connection test works ...
1 vote
0 answers
58 views
GDAL can't read vector objects opacity and boundary width in GeoPDF format
I use GDAL v.3.9.2 and poppler v.24.04 to read GeoPDF files. But when I try to read GeoPDF with vector objects, style strings for the most vector objects are not correct. This style string I get using ...
3 votes
1 answer
82 views
Ability to get a GeoJSON gdal.vectorTranslate string/object as a variable
The question is in a NodeJS context execution environment I'm trying to get a GeoJSON output from gdal.vectorTranslate as a string/object to reuse it directly within my code without intermediate file ...
1 vote
0 answers
95 views
gpkg files does not load in QGIS
After update the version of QGIS to QGIS 3.40.7 I cannot load gpkg-files. Other file formats like shape, SQLite, WMS, ... works fine. The update process was interupted due to a technical failure, so I ...
2 votes
1 answer
139 views
What is a layershadow in osgeo ogr?
I am following this post and they use the code: ogr.Layer.Clip(inLayer, inClipLayer, outLayer) I have attempted to recreate the code as they have it, however I have a TypeError returned to me ...
2 votes
1 answer
127 views
Is it possible to merge multiple overlaying GPKGs in the way, that only the uppermost is included?
I want to merge multiple overlaying GPKGs in the way, that only the uppermost is included. It is possible to achieve this by iteratively applying the algorithms Difference and Merge with the Model ...
1 vote
2 answers
149 views
Does ogr LIKE have undocumented differences depending on FROM?
This LIKE works as expected: $ ogrinfo :memory: -q -al -dialect SQLite -sql \ "SELECT \"8145\" AS name WHERE name LIKE \"%8%\"" Layer name: SELECT OGRFeature(SELECT):0 ...
1 vote
1 answer
78 views
Reprojecting points from EPSG:31259 to EPSG:4326 adds displacement to points
Trying to reproject points from EPSG:31259 to EPSG:4326 adds displacement to them. As someone can see in the picture the sample points designated with [+] symbol are in EPSG:31259 projection while ...
0 votes
0 answers
105 views
QGIS DXF file import
I have just installed QGIS and I am trying to import AutoCAD files into the software. I have converted the files into DXF format, however when I try to import the file (Project > Import/ Export >...
0 votes
0 answers
218 views
OGR error: Attempt to write non-polygon (MULTISURFACE) geometry to POLYGON type shapefile
I am trying to export a single selected feature (one polygon) from a layer as an ESRI shapefile. I right click on the layer, go to Export then Save selected features as... Choose ESRI Shapefile, make ...
1 vote
0 answers
61 views
How to create a proper symbolic outline for polygons?
I have a .map file that contains two layers: The anchorage layer, the polygon along the border of which I draw symbols. LAYER NAME "ACHARE_6" GROUP "Berthing" METADATA ...
-1 votes
2 answers
81 views
ogr2ogr -f CSV: input same as output
Here I asked ogr2ogr to -simplify my data. But no, it just pretty much hands me back what I gave it. $ ogr2ogr i.csv h.csv -simplify .001 $ wc --chars --total=never h.csv i.csv 9357 h.csv 9361 i.csv ...
2 votes
2 answers
170 views
Adding one missing contour line with GDAL/OGR
Due to tetraphobia in Taiwan we are not allowed to have streets whose names end in "4". My mission is to reconstruct where 14th Street would have gone. I shall use GDAL/OGR, pretending the ...
2 votes
2 answers
136 views
How to set SpatiaLite *global settings* in GDAL/OGR?
In https://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html#global there are the SpatiaLite Global settings per connection. In particular SetDecimalPrecision(). How might I use that with ogr2ogr -...