Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
1 vote
0 answers
468 views

How to correct slight imprecisions in QGIS georeferenced .tiff raster images?

Is there a QGIS plugin or tool to slightly drag or stretch a georeferenced raster, to better fit the base map ? Typically an issue with GPS or drone images, they are georeferenced, but often come with ...
S.E.'s user avatar
  • 150
0 votes
3 answers
570 views

Storing multiple GeoTiffs in HDF5 file in Python

I want to store multiple GeoTiff files in one HDF5 file to use it for further analysis since the function I am supposed to use can just deal with HDF5 (so basically like a raster stack in R but stored ...
Niklas1009's user avatar
2 votes
1 answer
352 views

Draw a polygon on a geotiff then save as image in Python

Been looking everywhere for a Python, not pyQGIS method to do the following. I have a GeoTIFF image of a chart with latitude and longitudes. I would like to draw a polygon to this chart from a list of ...
redbaron1981's user avatar
0 votes
0 answers
150 views

Read specific characters in .hdf files and then convert them to .tif files

I have two MODIS images over a decade which are distinguished by "h11" and "h12" in the filename. How can I specify to list files with "h11" in one variable and then with ...
Yogi's user avatar
  • 45
0 votes
1 answer
1k views

GDAL python : How to convert GEOTIFF to TIFF

I would like to convert a GEOTIFF to a normal TIFF with python. I'm trying to use gdal but cannot if more than one page.. How can I do it please ? Thanks for help
Léo Dunand's user avatar
0 votes
1 answer
2k views

How to fix "ERROR 1: Cannot get geotransform" in GDAL

I am trying to read values from a geoTiff and am using gdallocationinfo for that purpose. However, when I try to do that, e.g with gdallocationinfo out.tif -wgs85 8.5 47.3, the following error occurs: ...
underwhelmingToaster's user avatar
0 votes
1 answer
847 views

Stack geotiff images while retaining individual bands

I have two images with 3 and 5 bands respectively. How do I retain each image's individual bands after merging? from osgeo import gdal img_list = ['img1.tif', 'img2.tif'] vrt = gdal.BuildVRT("...
Umar Yusuf's user avatar
0 votes
2 answers
473 views

How i can convert ncdf (of Sentinel_5_L2) files to geotiff?

I am trying to do a geotiff file with a netcdf file. I have this file (Sentinel_5_L2). But my code is not run. Anyone know as create the geotiff file? File https://wetransfer.com/downloads/...
Bryan Alemán's user avatar
0 votes
0 answers
276 views

SIGSEGV when trying to open tiff with gdal

All I am trying to do it run the basic command: from osgeo import gdal if __name__ == '__main__': gdal.Open(<filepath>) This gives the following undescriptive output: TIFFReadDirectory: ...
nikojpapa's user avatar
  • 670
3 votes
1 answer
1k views

LibTiff C# - Getting coordinates

I am using the LibTiff.NET library to load GeoTiff data in C# (inside Unity). **NOTE - I looked at GDAL also, but faced similar issues as outlined below, and would much prefer to use LibTiff if ...
FacePuncher7's user avatar
2 votes
1 answer
2k views

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 ...
jwrap's user avatar
  • 23
0 votes
1 answer
1k views

Problem with Openlayers and Cloud-optimized GeoTIFF

I'm using the latest Openlayers with a COG (cloud-optimized-geotiff). It works fine when I set the map view to the bounds of the GeoTIFF while creating the layer, but if I try setting the view to ...
Anton Coetzee's user avatar
0 votes
1 answer
1k views

Problem in making connection between Geoserver and S3 AWS

I am getting below error while connecting Geoserver to S3 AWS. Could not list layers for this store, an error occurred retrieving them: null Same error
vijay garg's user avatar
1 vote
0 answers
168 views

GeoServer ImageMosaic shx file not created

I've got a small directory of geotiffs that I'm tring to create an ImageMosaic from in GeoServer 2.19.2 running on Ubuntu 20.04. The tiffs are on a windows share that the tomcat account has rwx ...
lcrumb's user avatar
  • 51
1 vote
1 answer
204 views

unwanted artifacts in COG GeoTIFF

The new GeoTIFF support in OL 6.7 is a very impressive. I'm getting artifacts in near-white areas in OL that are not in EOX COG-Explorer which uses the same geotiff.js lib.The first image below is ...
Richard Greenwood's user avatar
3 votes
0 answers
228 views

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 ...
GalacticPonderer's user avatar
0 votes
1 answer
1k views

How to convert Zarr data to GeoTiff?

I want to load the HRRR forecast data into Google Earth Engine, so I think I need to convert it to GeoTiff. e.g. import xarray as xr import s3fs fs = s3fs.S3FileSystem(anon=True) urls = ["s3://...
Adair's user avatar
  • 1,885
1 vote
2 answers
864 views

How do I handle NA values in R for raster layer with datatype INT2U?

I have raster layers from geotiff files with datatype INT2U, aka unsigned short. The original data, floating point, were encoded by multiplying by 100 and then rounding to both reduce file size and to ...
Nate Lockwood's user avatar
1 vote
1 answer
3k views

Given a geotiff file, how does one find the single pixel closest to a given latitude/longitude?

I have a geotiff file that I'm opening with gdal in Python, and I need to find the single pixel closest to a specified latitude/longitude. I was previously working with an unrelated file type for ...
Grant Petty's user avatar
  • 1,301
0 votes
1 answer
2k views

gdal_translate NetCDF to GeoTiff file conversion not working

I am new to geospatial analytics and using NetCDF and GeoTIFF files. I am trying to convert the NetCDF file into GeoTIFF file. I came across this reference: netcdf-to-geotiff-file-conversion. I have ...
sharp's user avatar
  • 2,158
0 votes
1 answer
1k views

Reading in a Database file (DBF) using Python and then plotting the shapefile

My goal is to read in a DBF from CropScape using Python and plot the DBF to create a figure as in the example. I need help reading in and plotting the DBF. DATA: I download the CropScape Cropland DBF ...
Natasha's user avatar
  • 111
1 vote
0 answers
140 views

How can I display a 16bit .TIR image in browser?

I'm creating a browser-based Thermal Image Analysis tool (similar to FLIR Tools). As input, I have a 16bit TIF file with a .TIR extension. Using geotiff.js, I'm able to open the TIF file and view it ...
smakqyra's user avatar
-1 votes
1 answer
1k views

How to convert a .TIF into a GeoTiFF

I am using a function to download Google map images given a pair of latitude and longitude of the area. I can manage to change the format of the downloading images into jpeg or png or tiff but I would ...
Skarl001's user avatar
  • 122
0 votes
1 answer
1k views

Plotting a GeoTIFF raster in R

I am trying to plot a gridded population count GeoTIFF raster downloaded from here. library(raster) #----------------------------# # Set your working directory # #----------------------------# setwd(...
Ash's user avatar
  • 85
1 vote
0 answers
179 views

Cannot read GeoTIFF files using Magick++ API

Using Magick++ C++ API for ImageMagick library, I am trying to convert a GeoTIFF file to JPG File, as such: Magick::Image input; try { input.read("inputfile.tif"); input.write("...
JSelic's user avatar
  • 11
1 vote
1 answer
2k views

GDAL - TypeError Wrong number or type of arguments for overloaded function 'CoordinateTransformation_TransformPoint'

I am trying to run some GDAL operations inside my Anaconda environment. However once I upgraded my gdal and other packages the program crashed. Environment: Anaconda Package Version ...
disguisedtoast's user avatar
3 votes
1 answer
939 views

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 ...
Lukiz's user avatar
  • 185
0 votes
0 answers
494 views

Converting SMAP h5 file to GeoTiff

I am trying to convert .h5 SMAP file to geotiff, but I keep getting File "<ipython-input-17-d6b129648904>", line 1 gdal_translate -a_srs "EPSG:3662" -a_ullr -20037508.3428 ...
eLg's user avatar
  • 539
0 votes
1 answer
859 views

geotiff can't plotty with leaflet

var map = L.map('mapid').setView([12.613507, 101.929989], 6); L.tileLayer( 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk....
4uu's user avatar
  • 1
0 votes
1 answer
1k views

Open large geotif file

I have very large geotif file. But I can not open it in colabs. RAM is not enough. So all the time I run it began crash. can come one help me with this? import numpy as np from rasterio.plot import ...
supun nayake's user avatar
3 votes
2 answers
5k views

Python: how to convert geotiff to geopandas?

I have a geotiff file. import xarray as xr urbanData = xr.open_rasterio('myGeotiff.tif') plt.imshow(urbanData) Here the link to the file. I can convert the file as a dataframe with coordinates as ...
emax's user avatar
  • 7,315
0 votes
1 answer
204 views

Create bubble.json file for render geo tiff file on autodesk forge

I'm want to manage a big geo tiff files on autodesk forge viewer. I'm following this approach Viewing Large OCR/Terrain Images in Forge Viewer, of creating tiles to avoid load a big file. my questions ...
Josito's user avatar
  • 384
-1 votes
1 answer
269 views

Checking to see if TIF and PNG are the exact same

I am having issues finding the best Pythonic way to check if a file of type TIF (or TIFF) is exactly the same as a PNG. I currently have a program that converts GeoTIFF files into PNG format keeping ...
Pentrophy's user avatar
1 vote
3 answers
843 views

-3.39999999999999996e+38 NODATA value and raster R

NODATA values of some geotiffs (-3.39999999999999996e+38) is recognized as -Inf in R. I use raster package to read the files and generate a raster stack. After raster calculations using calc , NODATA ...
Leonidas's user avatar
  • 121
1 vote
1 answer
2k views

GDAL warp Too many points failed to transform. It works with similar image and source

I am trying to convert a netCDF file from GOES Full disk to geotiff but have an error on last step. Apparently the process of generating the tif from NC works and fulldisk.tif is generated but not ...
neavilag's user avatar
  • 609
-1 votes
1 answer
493 views

Transform GeoTiff into JPEG under condition of number of bands

I'm super new to FME. I have lots of GEOTIFFs which I want to convert to JPEG, which works fine (as seen in the picture below (without the Tester)). But now some of my tiffs have 3 colour and some ...
uelf1's user avatar
  • 7
0 votes
1 answer
980 views

Values change when convert geotiff to netcdf

I have a geotiff which has values from 0 to 200, and a nodata value of 255. I converted it to a netcdf with gdal in python: ds = gdal.Translate(outputfile, inputfile, format='NetCDF') [As suggested ...
Beardsley's user avatar
  • 171
0 votes
0 answers
322 views

Save ggplot map produces bad results after being saved to geoTIFF

I'd like to create a good representation of my ggplot in geoTIFF, but the results is not so good. I try to: #Packages library(rgdal) library(raster) library(tiff) library(ggplot2) library(ggspatial) ...
Leprechault's user avatar
  • 1,883
0 votes
1 answer
114 views

Opening .tiff gives me a plot.window() error

I created a raster and saved it as a .tif file. However, when I tried to open the .tiff, I get the following error: > plot("20200105.tif") Error in plot.window(...) : need finite 'ylim' ...
Priya Patel's user avatar
0 votes
1 answer
101 views

.tiff file doesn't match original RasterLayer in R

I create a RasterLayer that had the following attributes. > xx class : RasterLayer dimensions : 450, 3245, 1460250 (nrow, ncol, ncell) resolution : 0.1109399, 0.4 (x, y) extent : -180, ...
Priya Patel's user avatar
0 votes
1 answer
2k views

Geotiff Rotation Python/GDAL/QGIS

I am trying to rotate geotifs by different amounts in python, GDAl and/or QGIS and keep the georeference information the same. Is there a way to do this?
jondave's user avatar
  • 11
0 votes
2 answers
3k views

To convert Tif files into RGB(png/jpg) using python

I am using the code snap given below and its working without error but the converted file is not having .png extension as I am giving png in "OutputFormat". I am running it in Colab and I am ...
Parimal Bhoyar's user avatar
0 votes
0 answers
64 views

the `?` operator can only be used in a function that returns `Result` (but the function returns a `Result`) [duplicate]

I have function that returns a Result and I am using the ? operation on it. What is the catch? Function: pub fn open(filename: &str) -> Result<Box<TIFF>> { let tiff_reader = ...
dclipca's user avatar
  • 1,937
0 votes
1 answer
871 views

Delete Rasters that contain pixel values of Zero

I have a working code that will iterate through a folder, identify and delete if a .tif only contains pixel values of all zero, hence a black image. The problem is that I have 12,000 images in the ...
Binx's user avatar
  • 424
1 vote
1 answer
2k views

How to plot geotiff files with xarray?

I have downloaded some data from Google Earth Engine. The data looks like the following: import xarray as xr da = xr.open_rasterio('myFile.tiff') da I can show the image but I would like to avoid to ...
emax's user avatar
  • 7,315
0 votes
2 answers
917 views

How to get GeoTiff world-positioning metadata using libtiff.net

I am trying to get the bounding-box of a GeoTiff file from the ALOS dataset (JAXA): Tiff terrainTiff = Tiff.Open(@"Assets/Project/Heightmaps/" + "N046E007" + "/ALPSMLC30_"...
dclipca's user avatar
  • 1,937
4 votes
0 answers
1k views

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 ...
Filip Östermark's user avatar
1 vote
1 answer
2k views

[Javascript; Google Earth Engines} Error: Exported bands must have compatible data types; found inconsistent types: Float32 and UInt16

I'm trying to just export a simple AOI of a Landsat-8 image, but I'm getting the error in the title. Why? The bands are all floats so I don't see the issue? var polygon = /* color: #ffc82d */ /* ...
hmnoidk's user avatar
  • 565
1 vote
1 answer
1k views

Splitting an already labelled image for object detection

I have a large geotiff file of elevation data that I would like to use for object detection. I've labelled the objects (originally as a .shp) and converted the labels into a single geojson. From ...
Ellio's user avatar
  • 133
0 votes
1 answer
369 views

What do values from 100 to 200 mean in MOD10A1 NDSI snow cover layer?

I am working with MODIS snow cover products (MOD10A1) and am unable to understand some of the values that are returned. I am trying to get % snow cover from the NDSI (normalised difference snow index) ...
AWB's user avatar
  • 13

1 2 3
4
5
11