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
1 answer
58 views

How to Render Webmaps using Zarr Format for Flood Data?

I have very large Geotiff Files (.tiff) for Flood Data - $ gdalinfo flood_probability_2023-09-25_88.19823706960149_24.314907220056885.tif Driver: GTiff/GeoTIFF Files: flood_probability_2023-09-25_88....
Sujas Kumar Aggarwal's user avatar
1 vote
1 answer
62 views

How to reduce xarray.coarsen with majority vote?

I'm currently trying to resample a large geotiff file to a coarser resolution. This file contains classes of tree species (indicated by integer values) at each pixel, so I want to resample each block (...
dtm34's user avatar
  • 13
0 votes
0 answers
42 views

Exraction of single band from tiff file which was exported from SNAP

I am a beginner in Google Earth Engine (GEE) and currently working with Sentinel-1 satellite data. I have used SNAP software to perform various preprocessing steps on the data, including multilooking (...
Jenna's user avatar
  • 1
0 votes
0 answers
78 views

"terra" fails to compute `sum` with thousands of layers in command-line mode (Rscript)

I'm using terra::rast to load approximately 2,000 raster layers (GeoTIFF). Each raster layer is less than 100kb. When running R on interactive mode, it loads normally and I can then use the function ...
silasprincipe's user avatar
0 votes
1 answer
35 views

Handling mixed datatypes in geospatial data in geotiff file format

I am working with Geotiff file which is 2 byte 2 channel image. I am trying to create third derived channel which is ratio of first band and second band. I am trying to save this band in Float32 ...
Pratiksha Dhavane's user avatar
1 vote
0 answers
120 views

Unable to import the compressed ZSTD GeoTiff to PostGIS in Python

I would like to import the compressed ZSTD GeoTiff to PostGIS with the following commands (below) but I get this error: RASTER_fromGDALRaster: Could not open bytea with GDAL. Check that the bytea is ...
Roksolana Petrovska's user avatar
1 vote
0 answers
90 views

Creating a 3D-Mesh out of a .xyz-file - Python

I converted a GeoTIFF file into a .xyz point cloud. Now, I’d like to generate a simple 3D mesh file, such as .obj or .stl. I used CloudCompare to manually create a 3D mesh using the PoissonRecon ...
RiesenTukan's user avatar
0 votes
0 answers
64 views

How to correctly convert geo-coordinates (lat, lon) to GeoTIFF pixel coordinates using GDAL in C++?

I'm working with GDAL in C++ and trying to convert geographic coordinates (latitude, longitude) to pixel coordinates in a GeoTIFF file. Specifically, I am using the GetGeoTransform function to fetch ...
JoeliP's user avatar
  • 33
0 votes
1 answer
51 views

How to query the OVERVIEW COMPRESSION type of a GeoTIFF/COG?

We can query the image compression e.g. via gdalinfo img.tif which gives us (among other information) something like Image Structure Metadata: COMPRESSION=DEFLATE INTERLEAVE=BAND LAYOUT=COG But ...
jens wiesehahn's user avatar
1 vote
2 answers
129 views

Raster not visible in leaflet even though it is visible using plot()

I tried to add a raster file (stored in r_max) to my map. r_max is a RasterLayer with values from about 0 to 5: class : RasterLayer dimensions : 180, 360, 64800 (nrow, ncol, ncell) resolution : ...
user27931701's user avatar
0 votes
0 answers
66 views

Smooth time-series visualization of COG GeoTIFFs in OpenLayers with WebGL without loading delays

I'm implementing a temporal visualization of water depth data using OpenLayers with COG (Cloud Optimized GeoTIFF) files (large). The user should be able to scroll horizontally to navigate through time,...
Sam's user avatar
  • 25
0 votes
1 answer
92 views

OpenLayers: GeoTIFF on top of OSM layer shows large border

I am trying to load a GeoTIFF on top of an OSM layer with the openlayers library (v10.2.1). The code to load the GeoTIFF roughly looks like this: this.modelLayerSource = new GeoTIFF({ ...
wjentner's user avatar
  • 537
0 votes
0 answers
301 views

How to download elevation GeoTIFF from Copernicus GLO30 DEM using Earth Engine API for Python?

I was working on a project in geospatial analysis, where I need to download GeoTIFF files for elevation data. I decided to use the Copernicus GLO30 DEM found in Google Earth Engine, because it is the ...
Arnav Saraf's user avatar
1 vote
0 answers
45 views

Is there a way to use the rstac package with Google Earth Engine?

A bit like accessing the planetary computer or the Earth data from NASA, is there a way to access the Google Earth Engine catalogue with rstac (https://developers.google.com/earth-engine/datasets/...
M. Beausoleil's user avatar
0 votes
1 answer
128 views

How can I fix this geojson with unwanted vertices?

I'm working with a GeoJSON file that represents the area of the United States at 0 feet elevation. However, when I load it into QGIS, a strange diagonal line appears, stretching across the map. This ...
Pannam's user avatar
  • 731
0 votes
0 answers
137 views

Problem with rendereing geotiff file in proper bounds with openlayers

I have the code in openlayers 6. which load the geotiff file - pacific.tif and in some viewers it says it has my projection WGS 84 (my openlayers projection is EPSG:4326). which load the geotiff file -...
user1111527's user avatar
0 votes
0 answers
50 views

Display cities over .tiff file using Python

I created this .tiff file: enter image description here How do I have city labels and county boundaries overlayed on top of it? Like so: enter image description here I'd like county boundaries and ...
Lemming's user avatar
0 votes
0 answers
66 views

Openlayers webglLayers band index restriction (4)

I have a "simple" problem to solve: visualize a timeseries of raster data in a web application (using openlayers, if possible). The original format of the raster data is in .asc files. Lets ...
Sam's user avatar
  • 25
0 votes
0 answers
77 views

Apply image transformations on Geotiff in c#

I have a Geotiff file and I want to overlay it on a map. For display of the map I am using the GMapControl from GNet. To overlay the image I am using a GMapMarker that I defined and I pass there as ...
Carolina Silva's user avatar
0 votes
1 answer
329 views

Converting 1-band DEM GeoTiff to 3-band (RGB) GeoTiff with storing full elevation value in RBG + GeoServer ready

My goal is to host tiles with elevation values in GeoServer. I downloaded the mapzen tiles (link here: https://www.opentopodata.org/datasets/mapzen/) Originally downloaded for use in opentopodata. I ...
WSA's user avatar
  • 41
2 votes
1 answer
92 views

Cannot convert grib2 to geotiff in SpringBoot app

I have to convert grib2 files to geotiff files using geotools library. I received a Maven project which does the conversion and isn't SpringBoot-based. I will put only crucial parts of its pom.xml and ...
ka3ak's user avatar
  • 3,411
2 votes
0 answers
516 views

open3D - How to project an image (texture) onto a 3D mesh

I am new to open3D and working on a process to automatically create mesh's of various terrains and apply generated maps on those terrains. I have been using open3D to view the meshes, but I'm not sure ...
Cody's user avatar
  • 31
0 votes
0 answers
107 views

How to display a GeoTiff (or other geo-coded file) using DevExpress on WPF C#

I added an offline map file that I have already downloaded in the map control. My application is not connected to the internet and the user needs an offline map with (TIFF/BMP/PNG) extension. Using ...
abbas akbarzade's user avatar
0 votes
1 answer
214 views

Is it possible to use a cog RGB GeoTiff with ol-cesium in 3D

I am trying to load a cloud-optimized RGB geotiff, using ol-cesium: new TileLayer({ source: new GeoTIFF({ sources: [ { url: "my_rgb_cog.tiff", ...
Jose Gómez's user avatar
  • 3,244
1 vote
1 answer
266 views

having problem while polygonize raster file (geotiff) with geotools

I have some large geotiff file,size range from 200MB to 10GB. They are produced by drones following a specific route, capturing images at a certain width. Here is an example with mosaic: sample tiff ...
simon's user avatar
  • 11
-2 votes
2 answers
247 views

Changing TIFF image compression type while preserving all tags

Is there a command line tool that will change the type of compression used in a TIFF image without discarding unknown tags? Imagemagick 7.1.1-36 discards GeoTIFF tags when I do the following, despite ...
Rick's user avatar
  • 3,967
0 votes
1 answer
197 views

GeoServer Layer Not Displaying Entire GeoTIFF Image

I'm having an issue with GeoServer not displaying the entire GeoTIFF image. The image is about 5.23 GB and displays correctly in QGIS, but when I create a layer in GeoServer, only a portion of the ...
David Ortiz's user avatar
1 vote
1 answer
77 views

Error during exporting of image from Google Earth Engine to Google Drive through Jupyter Notebook

Trying to export a geoTIFF file from Google Earth Engine to my Google Drive using Python code. I'm running it on Jupyter Notebook. The code works without error. The problem is that the folder "...
Sudeshna Ghosh's user avatar
0 votes
1 answer
61 views

Using StreamingRenderer with GeotiffReader

I've been having trouble getting the geotools StreamingRenderer to display an image from a Geotiff correctly. I'm using a visible earth geotiff from nasa but I see this problem with other EPSGE:4326 ...
Clifford Harms's user avatar
0 votes
1 answer
66 views

Cannot open geotiffs downloaded with rvest

I am trying to download ~200 geotiffs from NOAA into R using package 'rvest'. The website with the data is here (https://noaadata.apps.nsidc.org/NOAA/). NOAA provides instructions on how to bulk ...
sbliss's user avatar
  • 87
0 votes
0 answers
555 views

How to use gdal_translate in Python

I am trying to convert a netCDF file to a Cloud Optimized GeoTiff (COG) format. I have been able to do so successfully in the OSGeo4W Shell using the following command: gdal_translate -of GTiff NETCDF:...
gwydion93's user avatar
  • 1,933
0 votes
1 answer
67 views

Unable to Write Metadata to JP2 Files Using PyExifTool

I convert some tiff files to jp2 and I want to copy their metadata on the new files. Here is an example of the metadata from a metadata viewer: Raster to World Matrix: Units: Meters amx[ 0]=0....
mkr's user avatar
  • 29
0 votes
0 answers
157 views

How to use geotools to load tif files and generate images using WMS like GeoServer

I want to use geotools to write code to implement geoserver loading tif files to implement wms services. After loading geotools, I performed wms output, but my code encountered two problems: the first ...
threecat's user avatar
1 vote
1 answer
403 views

Exporting PostGIS Raster Data to GeoTIFF using gdal_translate - Selecting Subdataset Issue

I am trying to export a PostgreSQL table containing raster data to a GeoTIFF file using gdal_translate. I am looking for assistance on how to specify the subdataset in the gdal_translate command when ...
Alireza sherkatmaesum's user avatar
0 votes
0 answers
196 views

How can I convert GeoTIFF to sqlite database in python

I have a GeoTIFF file that i want to extract its latitude and longitude with altitude and store it in a sqlite database, this sqlite database will be later used in a mobile application, For now this ...
Pannam's user avatar
  • 731
1 vote
0 answers
233 views

Color styling for >100 COG GeoTIFF with min/max values in OpenLayers

I have this color style (from 0-90 values range) for a COG GeoTIFF file having a values range between 12 (minimum value) and 50 (maximum value): const autominmaxrange = { color: [ 'case', ['&...
Gery's user avatar
  • 9,255
1 vote
1 answer
210 views

Unexpected behavior when slicing xarray DataArray over the y dimension

I'm new to xarray and I'm trying to understand how sel() works. I have a DataArray tif_xr that comes from opening a 10 band GeoTIff file with rioxarray. tif_xr = rioxarray.open_rasterio('path/to/my/...
Daniel Moraes's user avatar
0 votes
1 answer
698 views

Issue loading GeoTIFF file in local web page - Error: Request failed

I'm encountering an issue while trying to load a GeoTIFF file in a local web page using Leaflet and GeoTIFF.js. I've followed the steps provided in various tutorials, but I keep getting an error ...
Issa Nasralli's user avatar
0 votes
1 answer
191 views

Discrete color ramp for GeoTIFF in OpenLayers

How can the following continuous color ramp be converted to a discrete one assuming, let's say, 5 more levels with random colors? color: [ 'case', ['>', ['band', 2], 0], [ '...
Gery's user avatar
  • 9,255
0 votes
1 answer
301 views

Transparent background for Openlayers single-band, overviews GeoTIFF

I have the following GeoTIFF layer: new WebGLTileLayer({ title: 'mb', style: slope, source: new GeoTIFF({ normalize: false, sources: [{ url: 'raster/mb_p_sl.tif', overviews: [...
Gery's user avatar
  • 9,255
0 votes
1 answer
142 views

Creating polygon based on depth data extracted from TIFF file

I am trying to extract and create polygons out of depth data from a TIFF file. I have a TIFF file of the depth model of Denmark, and I wish to create polygons that would resemble where sailing would ...
Lukas Eliassen's user avatar
0 votes
0 answers
229 views

Can I use GDAL Translate to define 4 corners without reprojecting the image?

I would like to define four corners for an image without resampling or reprojecting the image. I can define two corners just fine with GDAL Translate, like this: gdal_translate -of GTiff -a_srs EPSG:...
Maxxxxx's user avatar
1 vote
1 answer
483 views

Read pixel values from GeoTIFF in C#

I am trying to read the pixel values from a GeoTiff in C#. The pixels represent elevation data. The GeoTiff is: greyscaled contains float32 values non-tiled. In Python this does exactly what i want: ...
PengWin's user avatar
  • 43
1 vote
1 answer
246 views

How to save (as a PNG) single band thermal image geotiff raster with false color in rasterio

I am a newbie so please forgive my ignorance. I have a GEOTIFF raster with one band (it's a thermal image of Chicago). Here's the metadata: driver: GTiff dtype: uint8 nodata: None width: 7921 height: ...
jeyre's user avatar
  • 13
0 votes
0 answers
233 views

Converting .tiff image from Google Earth Engine to PNG format

I have exported the image from Google Earth Engine and trying to visualize it but It is showing black/Nothing. How to visualize the downloaded .tiff image in valid format [PNG] which can be seen in ...
prabhuiitdhn's user avatar
0 votes
1 answer
505 views

How read GeoTiff NODATA value without GDAL in C#?

In C# I am writing a GeoTiff reader/writer that does not use GDAL. Not using GDAL is a requirement. I am able to read some things like the number of columns with code like: using BitMiracle.LibTiff....
philologon's user avatar
  • 2,113
1 vote
0 answers
439 views

Geotiff image overlay mismatch with Folium map

I try to overlay a Gtiff image (data.tif) on a Map using Folium. The result is almost correct but there is a slight offset in the inner pixels (see Folium map). When I display the Gtiff image in QGIS ...
vincentL's user avatar
0 votes
0 answers
126 views

How to export a list files (.tiff) from HDF format (MODIS product) using gdal.Warp in python?

I have a list of HDF files from MODIS product (see in attached). I want import them in python using GDAL library. Show my steps and explanation in the code below : 1. Import required libraries : ...
tazrart's user avatar
  • 167
0 votes
1 answer
134 views

COG in ImageMosaic with data containing custom dimension

I have to work with data that contains, among others, a custom dimension (i.e., "pressure level"). Specifically, I have a dataset defined on lat, lon, time and plev dimensions. The native ...
thered86's user avatar
0 votes
1 answer
146 views

How to find how many times each pixel is covered in several GeoTIFFs?

I have a few GeoTIFFs which might have overlap, I want to find how many times each pixel is covered in several GeoTIFFs. I thought it is best to create a heat map in Python (using Gdal or Rasterio) ...
Ari's user avatar
  • 11

1
2 3 4 5
11