Questions tagged [geotiff-tiff]

Use this tag when referring to georeferenced or ungeoreferenced TIFF (Tagged Image File Format) files.

518 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
0 answers
4k views

Exporting GeoTIFF raster to GeoPandas dataframe

I'm just starting in the field of GIS (mostly worked with just python before) and got stuck on a problem. I'm looking for a way to polygonize an already masked GeoTIFF raster with population data in a ...
user avatar
  • 201
6 votes
2 answers
363 views

MODIS Fire Product tile conversion to GeoTIFF problem

I downloaded a tile (selected tile in the picture) from https://ladsweb.modaps.eosdis.nasa.gov/search/order/3/MOD14--6/2019-08-09/DB/Tile:H25V6 I used gdalinfo on the file. It's output is Driver: ...
user avatar
  • 287
6 votes
0 answers
1k views

Convert TIFF raster layer to PNG

I have been given some images in TIFF format, and I need to convert them to the PNG format. I have been given that the TIFF file contains 4 bands: R, G, B, and NIR (which I do not need for the PNG). ...
user avatar
6 votes
0 answers
313 views

Is it possible to get the compression level of a GeoTiff?

When creating a GeoTiff and using Deflate or LZW as compression it is possible to select the level of compression from 1 to 9. Is it possible afterwards to see which level was used? I have a lot of ...
user avatar
  • 372
5 votes
0 answers
679 views

gdal_translate slightly changes output pixel values

I have used this batch script for /r %%g in (*.jp2) do gdal_translate -co COMPRESS=LZW -co NUM_THREADS=ALL_CPUS %%g %%~dpng.tif to recursively convert all my .jp2 files in .tif files. However, the ...
user avatar
5 votes
0 answers
3k views

How to import NetCDF file to PostgreSQL

I looked at the other similar questions posed and none of them seem to be answered. Basically I have a NetCDF file with multiple subdatasets and from what I've read, I should be converting it to a ...
user avatar
4 votes
0 answers
1k views

Cloud-Optimized GeoTIFF overlay on Leaflet?

I want to load external Cloud-Optimized GeoTIFF files onto a Leaflet map as overlays, and manipulate the colors based on user input. I've found examples online that appear to to this exact thing, but ...
user avatar
  • 585
4 votes
0 answers
1k views

QGIS poor Geotiff quality after importing?

I keep getting poor image quality after exporting (high DPI) from the map composer in QGIS. The original Geotiff is 254 DPI and has great image quality (smooth lines). After opening in QGIS and ...
user avatar
  • 41
4 votes
0 answers
1k views

Saving a TIFF file with band names

Does anyone know if it's possible to add a TIFFTAG when saving a TIFF file (I'm using the C/libtiff interface) that will give a name to each band? Some kind of per-band TIFFTAG_IMAGEDESCRIPTION is ...
user avatar
  • 328
4 votes
0 answers
3k views

Compression in GeoTIFF files with GDAL

I have an output from 3rd party program in TIFF format where gdalinfo gives the following information: Driver: GTiff/GeoTIFF Files: J:\ascend\Lufthavne - ImgRAW\S°nderborg\ortho\...
user avatar
3 votes
1 answer
89 views

QGIS Raster Hillshade Classic Drawing Texture

I found this drawing of a valley and really like the texture of it. I suppose this is a sort of hachure map drawn with dots. I was wondering if it was possible to recreate something similiar in QGIS (...
user avatar
  • 53
3 votes
0 answers
43 views

FEPSG of GeoTIFF given by GDAL is different than on QGIS

I have a GeoTIFF file and I wanted to know its CRS. When I open it on QGIS I get:. I wanted to see if I could get the same result on Python (EPSG = 5936, the code for Alaska_Polar_Stereographic), I ...
user avatar
  • 137
3 votes
0 answers
39 views

Retaining Bounding Box after Fishnet Clip

I have a large image that contains around 7000 trees. I created a bounding box around each one of them and then saved it as a .xml file. I would now like to create different fishnet sizes and clip ...
user avatar
  • 944
3 votes
0 answers
551 views

GDAL WriteRaster as single band GeoTiff using C# saves as all black image

I am new to the community. I am fairly new to GDAL, and I'm using the C# library. I have a single band raster for which I ran multiple analyses on, and for each, I saved them using GDAL WriteRaster - ...
user avatar
  • 31
3 votes
0 answers
141 views

Extract time series for features from large masked xarrays

I have done this before with GDAL and Python, but was hoping to be able to use xarray to scale things up. Let's say I have three datasets: 1. A large multiband geotiff where each band is a different ...
user avatar
  • 2,987
3 votes
0 answers
168 views

R raster / rasterize creating GeoTIFF with Null Value "grid lines"

I am attempting the seemingly simple task of converting a .csv with lat, lon and population values into a .tif (raster). Here's my R code: geoName <- read.csv("/pathToData/geoName.csv") ...
user avatar
3 votes
0 answers
137 views

A GeoTIFF heightmap from SRTM embeds vertical planes along lat/lon grids in its 3D representation

I've downloaded an SRTM GeoTIFF from Open Topography and converted it into the grayscale image before I imported it into Blender to improve the quality. It is apparent that vertical planes are cutting ...
user avatar
  • 39
3 votes
0 answers
633 views

QGIS 3.4.2 not loading .tif files correctly

I have a surface which has been exported from Civil3D and added to both QGIS 2.18 and 3.4.2 When added they both look very different and the imported image and values in 3.4.2 is not very helpful in ...
user avatar
3 votes
0 answers
892 views

Importing Georaster into BlenderGIS causes blender to not respond

I am trying to load a geotiff of the UK into blender, when I try with smaller files it seems to work. I am thinking that maybe blender cannot handle the size of this geotiff, is there anyway to stop ...
user avatar
  • 43
3 votes
0 answers
606 views

convert tiff to UInt16 PNG turns black

Im using to gdal_translate to create tiled DEM, tif(float32) -> PNG (UInt16). All the images trun out black. When I change UInt to byte - everything work as expected. What am I doing wrong? import ...
user avatar
  • 31
3 votes
0 answers
3k views

export an aerial image to .SID file and a .Tiff file

I am using arcmap 10.4.1 ( also have PRO 2.0 is this is an valid option) I have an aerial image that was broken down to small grids and need to export each grid to a .sid file and a .tiff file. I ...
user avatar
  • 2,061
3 votes
1 answer
217 views

Add RGB values from CPT file to Int16 GeoTIFF using Python and Gdal

I want to add color, using RGB values stored in a CPT file, to a black and white Int16 GeoTIFF file using Python. I tried to use SetColorEntry(), but when I add the ColorTable to the RasterBand, I ...
user avatar
3 votes
0 answers
815 views

How to compute Tree Cover Loss by year in QGIS?

I want to compute the value of tree cover loss per year from 2001 to 2014, based on the "Global Forest Change 2000 to 2014" data by Hansen et al. I downloaded the geotif "lossyear" from http://...
user avatar
  • 31
3 votes
0 answers
544 views

Anaconda UnsatisfiableError installing QGIS

If I run conda install -c conda-forge qgis=2.18.2 from my Ubuntu bash environment, I obtain the following error: UnsatisfiableError: The following specifications were found to be in conflict: - ...
user avatar
  • 131
3 votes
0 answers
859 views

Remove black borders when converting GeoTiff to MBTile with gdal_translate

I am using gdal_translate to convert a fairly large geoTiff to MBTiles. As the geoTiff is reprojected, it is not square anymore in Google Mercator and the parts that are not covered appear black when ...
user avatar
  • 183
3 votes
0 answers
289 views

GDAL VRT - gap artifact in output

I have created a VRT using gdalbuildvrt from three single-band GeoTiffs (1-m resolution) as follows: gdalbuildvrt chm_2157.vrt P_712806_CHM.tif P_712808_CHM.tif P_712810_CHM.tif -a_srs 'epsg:2157' -...
user avatar
  • 4,752
3 votes
0 answers
719 views

Upload .tif to GeoServer via Node.js

How do I upload a .tif file to my running GeoServer via Node.js? I'd like to upload a GeoTIFF to provide it as a WMS by the GeoServer. The GeoServer is responding with a 405, which I think is right (...
user avatar
  • 53
3 votes
0 answers
298 views

Applying unified color scale to tiles with gdal2tiles?

Background: I have a series of about 40 small GeoTIFFs that need to be merged together to make one large image. Each GeoTIFF has 2000 bands. I've tried using both gdal_merge and gdal_retile to pull ...
user avatar
  • 131
3 votes
0 answers
175 views

gdal_translate bilevel tiff output

I have a geotiff image that rings in at about 290MB. However, once I smooth it using a gaussian filter I'm unable to get it back to that size, it ends up being 1720MB. The size isn't really the ...
user avatar
  • 41
3 votes
0 answers
184 views

Transform GeoTiff to WMT

I'm not a GIS specialist at all so this question may seem dumb to you. I have a GeoTiff base of images (hundreds) I'd like to transform to a WMTS repository to put behind a web server. Web pages are ...
user avatar
3 votes
1 answer
865 views

gdal_merge tries to create image with negative dimensions

I am trying to use gdal_merge.py to create a mosaic from a set of geotiffs, however the command fails with the error message: "ERROR 1: Attempt to create -3510x1817 dataset is illegal,sizes must be ...
user avatar
3 votes
0 answers
2k views

Merge several images and Export a GeoTiff File

I have approx 500 geo-referenced images that I was hoping to merge into 1 geo-referenced file, and export it as a single geotiff file. To be used in AutoCAD Civil 3D I know I am pushing my luck and ...
user avatar
3 votes
1 answer
149 views

Nodata value making holes in merged GeoTIFFs in QGIS?

I am trying to remove black borders around the edge of a GeoTIFF. The Black border around the GeoTIFF has an RGB value of (0,0,0). I have tried assigning 0 as a "No Data" value to the tiff, but QGIS ...
user avatar
2 votes
0 answers
53 views

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/...
user avatar
2 votes
0 answers
23 views

How can we know that a random satellite image is atmospherically corrected or not using python?

If a satellite image in .tiff format was given. what are the values that can be obtained from a satellite image using python to see whether it has atmospheric errors or not? I am expecting what values ...
user avatar
2 votes
1 answer
40 views

Generate jpeg-YCbCr tiles in GeoTIFF file with JFIF format instead pure JPEG format

Currently, my app creates GeoTIFF tiled files using following options: PROFILE=GeoTIFF TILED=YES BLOCKXSIZE=xxx BLOCKYSIZE=xxx COMPRESS=JPEG PHOTOMETRIC=YCBCR JPEG_QUALITY=xx However, some apps that ...
user avatar
  • 121
2 votes
0 answers
51 views

Set Coordinate Reference System for a TIFF file

I have a number of TIFF files which has been georeferenced using the QGIS georeferencer tool. When I add them to my project they display in the correct location. However, before the georeferencing ...
user avatar
  • 21
2 votes
2 answers
100 views

GDAL: Set an entire band to nodata (make empty)?

I have grayscale DEM that I've needed to convert to RGBA in order to play well with how blender addresses alpha channels. I'm using this script to create 2 more bands and then stick my alpha band at ...
user avatar
2 votes
0 answers
46 views

Get elevation from a GeoTIFF file given latitude and longitude

I have written the following code that return the elevation given longitude and latitude from a GeoTIFF file: private static double getValue( String filePath, double longitude, double latitude) ...
user avatar
  • 21
2 votes
1 answer
38 views

Why ExportToTIFF() gets TIFFs without pyramids?

What I want to do is to add layers (which are TIFF files) one by one to the current MXD file, and export the MXD in TIFF format. It lacks pyramids however now with the way I code. Here is my code, ...
user avatar
2 votes
0 answers
475 views

Reclassify raster MemoryError: Unable to allocate 97.5 GiB for an array with shape (6546455295, 2) and data type int64

I have tried to reclassify my global land use dataset downloaded from here. And I tried to reclassify this tiff file using the following code. driver = gdal.GetDriverByName('GTiff') file = gdal.Open('...
user avatar
  • 528
2 votes
0 answers
360 views

How to set band names of multi-band GeoTIFF asset upon upload to Google Earth Engine

I have created a multi-bands GeoTIFF using xarray in Python following this answer. When I display this raster or open it in QGIS, all the bands are named following the variable they represent: ...
user avatar
  • 117
2 votes
0 answers
74 views

Create cloud optimized GeoTIFF without re-encoding?

I have a lot of jpeg-in-geotiff imagery that I would like to convert to Cloud Optimized GeoTIFF. Is there any way to do that without re-encoding the pixel values? I'm trying to avoid paying the price ...
user avatar
  • 27.5k
2 votes
0 answers
130 views

Split Raster Missing Data

I have a code that will read a .tif and split the image into a specific number of rows and columns (code 1). I modified it to be able to be able to easily set the wanted image size (by pixels) (code 2)...
user avatar
  • 944
2 votes
0 answers
1k views

SRTM HGT to GeoTIFF conversion using GDAL

I have (for example) SRTM-1 file n48e083.hgt with resolution 3601x3601. What is right way to convert it to GeoTIFF? gdal_translate -srcwin 0 0 3600 3600 -a_ullr 83 49 84 48 n48e083.hgt n48e083.tif or ...
user avatar
2 votes
0 answers
112 views

Longitude of GeoTIFF from grib2 not in negative for west lons using GDAL translate

I am trying to generate a GeoTIFF from a grib2 section of the GFS weather model. After downloading the area needed I select the band that I want to make the GeoTIFF with this command gdal_translate -...
user avatar
  • 159
2 votes
0 answers
61 views

Visualizing GeoTIFF containing multiple GeoTIFF data sources (APPEND_SUBDATASET) in QGIS

I have a GeoTIFF that I have created in the following manner: gdal_translate first_grid supergrid.tif gdal_translate second_grid supergrid.tif -co APPEND_SUBDATASET=YES Dragging this into QGIS ...
user avatar
  • 21
2 votes
0 answers
94 views

Subdividing a GeoTIFF into 1x1 tiles of longitude and latitude?

I have a big GeoTIFF file of the whole Slovakia territory in 25m resolution. It has around 17700 x 8000 pixels. I need to subdivide it into smaller files and every file must have 1° longitude and 1°...
user avatar
  • 21
2 votes
0 answers
82 views

Compress raster GeoTIFF in QGIS

I have a dozen raster (3 bands) files in GeoTIFF format (32bit), which I have downloaded from SentinelHub (sentinel2 satellite imagery). I try to compress them before I publish them as an Imager ...
user avatar
  • 2,524
2 votes
0 answers
36 views

Meaning of statement in GRASS r.horizon manual

I have a question about this statement in the r.horizon manual: "If your projection is based on distance (easting and northing), these too must be in meters. The buffer parameters must be in the ...
user avatar

1
2 3 4 5
11