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
3
votes
1 answer

Python-gdal write a GeoTiff with binary color and NaN

I am generating a simple two-class (binary) geotiff from a numpy array with 3 values: 1, 2, and NaN. I wanted to display the geotiff with distinct colors so I used the color table. However, color table only supports the Byte or UInt16 datatype,…
J.Wang
  • 31
  • 4
3
votes
1 answer

ST_PixelAsPolygons rasterio

Is there a way to perform a similar function such as ST_PixelAsPolygons using rasterio? I am aware of rasterio.features.shapes but that would output the shape of similar pixels instead of the geometry of all pixels. How could I get the polygons and…
Olga
  • 33
  • 4
3
votes
1 answer

Reading RGB values of a pixel with LibTiff - C#

I want to read RGB values of a pixel in C#, I tried using following code found here. int[] raster = new int[height*width]; var b = tiffreader.ReadRGBAImage(width, height, raster); for (int i = 0; i < width;…
Manikanta
  • 223
  • 3
  • 18
3
votes
1 answer

PySpark and Raster (GeoTiff) data

I'm trying to use Spark (PySpark) to in order to run analysis on data stored in multi-band GeoTiffs. I'm still somewhat of a Spark newbie. Setup: The geotiffs themselves are small enough to run in pure python - specifically I am using gdal to read…
brook
  • 247
  • 2
  • 15
3
votes
1 answer

Write GeoTIFF metadata from one file to other

My task is to take one GeoTIFF, make some image segmentation on in, and save it to new GeoTIFF(with existing coordinates). If I understand correctly, the coordinates are preserved in GeoTIFF metadata. So I grab metadata from the original file: File…
3
votes
3 answers

Import and write GeoTIFF in Octave

I am using MATLAB in my office and Octave when I am at home. Although they are very similar, I was trying to do something I would expected to be very easy and obvious, but found it really annoying. I can't find out how to import TIFF images in…
umbe1987
  • 2,894
  • 6
  • 35
  • 63
2
votes
0 answers

Tiff image pixel values reading using java

Respected sir/madam, As i am new to tiff image handling with java,i want to compare two tiff images based on their pixel values.I started reading tiff image header such as image width,rows per strip etc. using…
2
votes
0 answers

How to clip GeoTiff according to shapefile using javascript?

Situation: I am plotting data provided in a GeoTIFF file on a map using Reactjs and geoTiff.js. An example of the GeoTiff files I am using is at the following link: https://drive.google.com/file/d/1yc2Lo5vQrFPAJRe5VklorrvIXuhB1nE0/view. What I want…
piyush kasturi
  • 153
  • 1
  • 8
2
votes
1 answer

memory error while processing large geotiffs on python

I have two raster image geotiffs, one of (275521, 329643) dims (let's call this the yearly image) and the other of (73583, 152367) dims (the monthly image). The cell sizes of both rasters are already the same. Using Python, I would like to do the…
jwrap
  • 23
  • 6
2
votes
0 answers

Generating GeoTiff using Geopandas/GeoPlot

I have generated a plot with GeoPandas/GeoPlot and now need to upload this as a georeferenced image into some software that only takes GeoTiffs. I have spent a significant amount of time trying to find a way of doing this but without any luck. So,…
GalacticPonderer
  • 497
  • 3
  • 16
2
votes
1 answer

How to create TF Dataset from GeoTiff files using custom map() function

I'm trying to create a TensorFlow Dataset from multichannel tiff files. The tfio.experimental.image.decode_tiff(image) from TensorFlow I/O works for 4 channels only so I tried to read it first into numpy using in this case rasterio and then convert…
Lukiz
  • 175
  • 1
  • 9
2
votes
0 answers

How to avoid compression when converting GeoTIFF to MBTiles?

I have been trying to convert a set of GeoTIFF files into MBTiles using gdal_translate (GDAL 3.0.4). My command looks as follows: gdal_translate -of MBTiles -ot Byte -strict -scale 0 255 bogota.tif bogota.mbtiles The GeoTIFF image is successfully…
Filip Östermark
  • 311
  • 2
  • 15
2
votes
0 answers

RGB TIF to GeoTIF and Removing the Background Color

I have created tif image using matplotlib python trigulation function, Now tif need to be change to goetiff with epsg4326 projection with removing the background only the patch need to be there. What difficulty i am facing :- 1- projection change is…
Sameer Rai
  • 21
  • 2
2
votes
2 answers

GeoTIFF Conversion

I've seen several requests like this but I still have one pressing question... GDAL is often suggested as the easiest way to convert GeoTIFF files into a different format. I downloaded several GeoTIFF files from the FAA website. The downloaded…
rgraulus
  • 41
  • 4
2
votes
2 answers

How can I calculate the sd? Error in as.double(x): cannot coerce type 'S4' to vector of type 'double'

Do somebody know what is wrong with my code? I edited the post, because i didn´t give you the data. I want to calculate the sd. The calculation of the mean worked. Here is the link to the cropped…