Hot answers tagged

3 votes

Which resampling method to use when georeferencing with QGIS/GDAL

Every resampling method has different characteristics and is used for different purposes. Nearest neighbour method is used for discrete data because don't assign new values on calculated pixels. ...
Kostas Pl.'s user avatar
2 votes

WFS in PostGIS OGR FDW results in "ERROR 1: No schema information loaded."

The error messages comes from GDAL/OGR's NAS driver and means that it could not find a (GFS) schema that describes the data. In my case I did not want the data to be loaded using NAS but as standard ...
bugmenot123's user avatar
  • 10.3k
2 votes

Geometry extraction from osm.pbf file using relation id with ogr2ogr

The relation is outside the cropped area from Geofabrik extract e.g right map at https://download.geofabrik.de/europe/norway.html That's why you do not get it. Two alternatives approaches using jq, ...
ThomasG77's user avatar
  • 29.8k
1 vote

How to rasterize a single feature with the feature ID with `gdal.RasterizeLayer`?

You can filter the layer to create an in memory layer with the feature you want then use it instead to burn your feature geometry to raster. See below code to grasp the idea from osgeo import ogr, ...
ThomasG77's user avatar
  • 29.8k
1 vote

gdalinfo retrieve WMS layer abstract

You can find the GDAL raster data model from https://gdal.org/user/raster_data_model.html. For GDAL WMS is a datasource with one or more subdatasets. The SUBDATASETS domain holds a list of child ...
user30184's user avatar
  • 60.1k

Only top scored, non community-wiki answers of a minimum length are eligible