Hot answers tagged

2 votes

Geocoordinates to pixel value in GDAL?

Such a program "gdallocationinfo" exists already and it is one of the standard GDAL utilities. The usage is documented in https://gdal.org/programs/gdallocationinfo.html and the source code ...
user avatar
  • 51.5k
2 votes
Accepted

Updating/Setting Field on GML file not working

The first line of the docs states: OGR has limited support for GML reading and writing. Update of existing files is not supported. And even if it was supported, you're opening the file in read mode ...
user avatar
  • 51.7k
2 votes
Accepted

How can I activate GeoTIFF compression in QGIS 3.x gdal_translate?

Try 'OPTIONS':'COMPRESS=JPEG|JPEG_QUALITY=60' I executed the tool manually in QGIS, pressed Ctrl+Alt+H to see the command syntax:
user avatar
  • 51.2k
1 vote
Accepted

Transforming using ntv2 nadgrids is behaving different between GDAL 2.3.1 and GDAL 3.4.2

I got this issue figured out with help from the GDAL folks after posting a bug to the GDAL list here. The issue was that my original coordinates (4547442.8444401 5290333.4162611) were not located ...
user avatar
  • 397
1 vote

How to loop for create a multi-page TIFF (Layer Stack)

I like os walk in combination with collections defaultdict list for problems like this. You can store each date as a key, and the two files as values: import os from collections import defaultdict ...
user avatar
  • 51.2k

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