Skip to main content

New answers tagged

3 votes

Generate TFW files without rewriting the GeoTIFF

The listgeo command from the geotiff-bin package (on Linux at least, not sure how you get this for Windows or Mac) does this: $ listgeo -tfw ./accflow.tif TIFFReadDirectory: Warning, Unknown field ...
Spacedman's user avatar
  • 64.4k
3 votes
Accepted

GDAL nearblack command missing certain areas

That is/was a known issue with nearblack. See the discussion in https://github.com/OSGeo/gdal/issues/6264 and the image in the comment https://github.com/OSGeo/gdal/issues/6264#issuecomment-1569883495....
user30184's user avatar
  • 66.3k
3 votes

How does Float32 in GeoPackage raster work

The answer is that an extension is used, which can be found in the gpkg_extensions table: Then in the spec that it links to, you can find: integers have PNG encoding floats have TIFF encoding, with ...
Fee's user avatar
  • 1,204
2 votes

Transforming ortho (.tiff) file from one epsg to other epsg

Re-projected image is typically rotated and somehow stretched exactly because the coordinate systems are different. Is is a common misbelief that the origin that gdalinfo reports for the original ...
user30184's user avatar
  • 66.3k
1 vote

Serving Terrain RGB tiles from XYZ / GeoTIFF files

There is a tutorial about converting GeoTIFF DEM into rgb tiles in https://github.com/syncpoint/terrain-rgb/blob/master/README.md A detailed tutorial about how to convert geo-tiff files containing ...
user30184's user avatar
  • 66.3k
0 votes

Using a raster when it is 'the output is a list of SpatRaster objects'

There is a package function "process_raster_result" in rasterdiv that handles naming and formatting, into a single SpatRaster, of the nested list output.
Jeffrey Evans's user avatar
2 votes
Accepted

Using a raster when it is 'the output is a list of SpatRaster objects'

It looks like the returned value is a list because you can specify multiple window and alpha values and get results from all combinations, so its a nested list structure even if there's only one value ...
Spacedman's user avatar
  • 64.4k
0 votes

Saving a TIFF file with band names

It is possible to add band descriptions with GDAL and Python. from osgeo import gdal file = gdal.Open('test.tif') band1 = file.GetRasterBand(1) band2 = file.GetRasterBand(2) band3 = file.GetRasterBand(...
user30184's user avatar
  • 66.3k
0 votes

QGIS 2.18 r.patch fails "Input raster map contains cells with NULL-value (no-data)"

You have to fill no data cell with values for that with zeros with another tool before r.patch, go to processing > Toolbox or press Ctrl + Alt + T if it is not in the screen then go to processing ...
Uditha Herath's user avatar
1 vote
Accepted

Eliminate any pixel of a GeoTIFF that does not intersect with the geometry/feature in OpenLayers?

If you really want to clip a GeoTIFF to a vector I think the only way to do it is make the GeoTIFF layer the source for a Raster source in an Image layer and use that in the same way as in the ...
Mike's user avatar
  • 12.5k
0 votes

Python GDAL: Convert JPEG to GeoTIFF, given location information

GDAL supports having a world file alongside the image, which is very easy to create. Sample code: from pathlib import Path image_path = Path("c:/temp/image.jpg") bbox = (0, 0, 100, 100) ...
Pieter's user avatar
  • 2,749

Top 50 recent answers are included