Questions tagged [geotiff]

GeoTIFF is a public domain metadata standard which allows georeferencing information to be embedded within a TIFF file.

GeoTIFF is a public domain metadata standard which allows georeferencing information to be embedded within a TIFF file. The potential additional information includes map projection, coordinate systems, ellipsoids, datums, and everything else necessary to establish the exact spatial reference for the file. The GeoTIFF format is fully compliant with TIFF 6.0, so software incapable of reading and interpreting the specialized metadata will still be able to open a GeoTIFF format file

more information - http://en.wikipedia.org/wiki/GeoTIFF

505 questions
2
votes
1 answer

How can I change or delete GeoTIFF-Tags?

I couldn't find a way, so far, to change GeoTiff-TAGs in my TIFF-file. My OS is Linux Lubuntu 18.04 and I'm using Python 3.x. Just EXIF-TAGs were possible to change via various approaches. For both reading and writing the EXIF-TAGs, I could use…
Andreas L.
  • 3,239
  • 5
  • 26
  • 65
2
votes
1 answer

r raster read .vrt in a zip file

I have a large zip file with a bunch of geotiff files in it and a .vrt file with the needed info for each. Rather than unzip all the files, I'd like to work directly with the zip file. This command, with the .vrt and some of the geotiff files works,…
JerryN
  • 2,356
  • 1
  • 15
  • 49
2
votes
2 answers

Find pixel coordinates from lat/long point in .geotiff using python and gdal

I have (lat,long) coordinate describing the position of a point in a .geotiff image. I wish to find the equivalent pixel coordinates of the lat,long ones inside the image. I succeded using gdaltransform from the command line with the following…
drheinrich940
  • 143
  • 1
  • 13
2
votes
1 answer

How to convert png files to geotiff

I have set of png files and EPSG:3006 coordinates of the edges of each file. How can I convert those png files to geotiff files using Python so the tiff files would contain the geo metadata. I guess it can be done with Rasterio lib, but I'm not sure…
Arshak
  • 716
  • 2
  • 7
  • 15
2
votes
0 answers

Adding metadata about layer names in a (Geo)Tiff file

Given a raster timeseries (satellite images within the same spatial extent each taken on a different date), how can I add the date as name for each layer/band in a (Geo)Tiff? Is it probably underspecified? Using R as an…
2
votes
1 answer

Using a Leaflet js plugin in react

I want to use a leaflet plugin called leaflet-geotiff (https://github.com/stuartmatthews/leaflet-geotiff) but I'm using leaflet react. Is it possible for me to convert this plugin to a leaflet-react version? Thank you guys.
Ryan
  • 47
  • 2
  • 8
2
votes
0 answers

Does anyone know why I'm getting a completely black geotiff as a result of this shapefile cut out of another geotiff in rasterio?

I am using rasterio to cut out the shape of a lake outlined in my shapefile from a geotiff. When using a shapefile of a singular lake with a geotiff, this works perfectly, but not when cutting out a geotiff of a single lake with a different…
2
votes
1 answer

GeoTIFF software generation

I have some data about the height of a set of points (for example, from the Google Elevation API). There is a task to save this data in GeoTIFF format, then to use in osgEarth (GDAL). How can this be done? It does not matter in what language. A…
garbart
  • 465
  • 4
  • 19
2
votes
0 answers

Obtain the column value from geotiff raster file

I am using libtiff.net, and my geotiff file has exactly this format after being converted to ASCII Gridded XYZ ( via gdal_translate -of XYZ function). So far I am following the…
Graviton
  • 81,782
  • 146
  • 424
  • 602
2
votes
1 answer

Reference Lat/Lon VRT files in Data.VRT for GDALTranslaste

As a follow up to this question I have three rasters: lat.tif with latitude values lon.tif with longitude values data.tif with data values (corresponding to the lat/lon values) From there I have created lat.vrt,lon.vrt, and data.vrt files. How…
Ashley A.
  • 69
  • 9
2
votes
0 answers

Thread safe rasterio writes from dask array store

I'm trying to find the best/fastest way to save a dask array to a geotiff. I've been doing research on how to make rasterio/GDAL thread-safe but I'm not coming up with anything that is easily accessible from python. If I use da.store(...,…
djhoese
  • 3,567
  • 1
  • 27
  • 45
2
votes
1 answer

RasterLayer 64-bits into a RasterLayer 8-bits with R

I am working with R and use the following libraries: raster, sp, rgeos, rgdal I created a RasterLayer from a SpatialPointsDataFrame. This raster can easily be exported using raster::writeRaster(ras8b, filename="filepath",…
Li Ku
  • 21
  • 2
2
votes
4 answers

GeoTIFF libtiff.net get elevation data in c#

I am trying to use libtiff.net to read elevation data from a GeoTIFF file. So far I have mostly just been able to read metadata from the file using the example at libtiff.net's webpage. But howto read elevation data I do not understand... I tried…
Erik Thysell
  • 1,160
  • 1
  • 14
  • 31
2
votes
1 answer

Error When I Merge .tif into RGB band by python's PIL

from PIL import Image band2 = Image.open('band2.tif') band3 = Image.open('band3.tif') band4 = Image.open('band4.tif') img = Image.merge("RGB",(band4,band3,band2)) the band2.tif,band3.tif,band4.tif are downloaded in…
XinGang Li
  • 33
  • 5
2
votes
2 answers

GeoTiffReader prevents deleteOnExit

If I pass GeoTiffReader a File instance which has been marked as deleteOnExit() that file will not be deleted on exit. File geotiffFile = Paths.get("geotools-test.tiff").toFile(); geotiffFile.deleteOnExit(); GeoTiffReader reader = new…
spt5007
  • 178
  • 1
  • 7