517 questions
0
votes
0
answers
427
views
When loading COG GeoTiff: Uncaught TypeError: tile.getImage is not a function
I am trying to add a COG GeoTiff Layer to an openlayers 7.4.0 Map (geotiff 2.0.7) and it seems to fail during rendering. The HTTP range requests seem to be successful and I also don't get any other ...
1
vote
0
answers
132
views
How to generate GeoTIFF with corresponding coordinate array.[Python]
I have two arrays:
(A) One array contains observation values for each pixel (e.g., satellite band data).
(B) The other array contains corresponding coordinates(lat/lon) for each pixel.
I want to ...
0
votes
0
answers
75
views
why is my geotif bands of landsat8 is read as all zeros in python rasterio?
band3 = rasterio.open("/..../band3.TIF")
band6 = rasterio.open("/...../band6.TIF")
red = band3.read().astype('float')
swir = band6.read().astype('float')
When i try to print out ...
0
votes
1
answer
398
views
Single-Band GeoTIFF not rendering correctly
We received some single-band GeoTIFFs from a customer and when trying to render them in OpenLayers (Version 7.4.0) we cannot get them to display properly. I created an example where the behavior can ...
0
votes
1
answer
89
views
How can I overlay a RGB data image onto a mono data image using imagemagick?
I have some satellite imagery data from Himawari 8 - one image is a mono image which is 500 metres per pixel image resolution and the other image is a visible RGB image which is 1km per pixel ...
0
votes
1
answer
397
views
Why does the gdal_translate function result in negative values, while input was only positive?
I want to convert all subdatasets from an .nc4 file (Example file) to GeoTIFF files to work with in R (for visualisation). I try to do this with the following zsh script:
gdal_translate -unscale -sds -...
0
votes
0
answers
84
views
Projection issue when reading in QGIS a GeoTiff exported from Python
I am trying to export an RGB geotiff file with Python to be later read and processed in QGIS. The RGB data comes from Landsat and was reprojected to the WSG84 Spatial Reference System.
I am working ...
1
vote
0
answers
105
views
openalyers singleband pseudocolor
how to visualize geotiff with only value in band as pseudocolor for example from white to black (min: 0, max=1200)?
const source = new MultiGeoTIFF({
sources: [
{
url:'image.tif',
},
...
-1
votes
2
answers
272
views
Index a directory of geotif files [closed]
I have a directory of many GeoTIFF files that are tiles of global map. Is there a python module that can index such a directory and then provide access to the data using coordinates in the respective ...
0
votes
1
answer
545
views
Georeference one image using GCPs from another image
I have two GeoTIFFs, one of which is misaligned spatially. I used opencv to do some quick feature matching between the two to automatically identify GCPs existing in both images. How would I go about ...
0
votes
1
answer
66
views
Suggestion to implement a simple RESTFul microservice to retraive pixel value from GeoTiff
I am a student in Science in Computer Science (Master degree) and I am making a "simple" microservice based on GeoTiFF images and Spring Boot (Java).
What I would like to do is:
download ...
0
votes
0
answers
111
views
Show polygon on geotiff image in OpenLayers 7
I'm trying to plot a polygon on a geotiff image layer.
The code below work for just the polygon (on the OSMLayer) or the image (on the OSMLayer), but it doesn't work if i want to display it on the ...
0
votes
0
answers
321
views
Show geotiff image in OpenLayers with Vue.js (composition API)
Thanks for reading my question!
I'm trying to show a geotiff image from an url, like in this example:
OpenLayers Workshop
But I want it to work in Vue.js 3 with composition API.
In my code example, ...
0
votes
1
answer
229
views
How do I ignore/force scale and offset when reading a COG with R terra
I am loading a large number of HLS.S30 and HLS.L30 COGs from LPCLOUD as SpatRasters using the terra package. I noticed that the pixel values in some of them ended up being integers (between 0 and 1000)...
0
votes
1
answer
1k
views
python : AttributeError: 'Polygon' object has no attribute 'value'
I am trying to extract the values associated to each pixel in a tiff image using the gdal library.
# Create a polygon from the pixel coordinates
polygon = Polygon([(x_min, y_min), (x_min, ...
-1
votes
1
answer
172
views
problems with geoTiff file generation
I am trying to make GeoTiff files and they should come out like this when viewed in qgis:
Unfortunately when the ones I have made come out like this when viewed in qgis:
without color. ...
0
votes
1
answer
268
views
How can I convert Sentinel-3 LST data in NetCDF format to Geotiff format with coordinates using R?
I have Sentinel-3 SLSTR LST data stored in different NetCDF files. I know how to extract the Land Surface Temperature, LST, from the Sentinal-3 through the SNAP, but, I would like to use R to work ...
0
votes
1
answer
34
views
Manipulating values within a nested list created from an elevation array of a Geotiff LiDAR Surface
I have built an array of a geotiff surface taken from a LiDAR elevation map in .tif format using numpy array. See below
geotiff_array = np.array(geotiff_surface)
Since the .tif file I am importing to ...
1
vote
0
answers
159
views
Position of rendered GeoTiffs are inconsistent
I'm using React With OpenLayers to render a GeoTiff overlay on top of a map (mapbox satellite).
The problem I'm facing is that sometimes these geoTiff files are a little bit off of their original ...
0
votes
1
answer
2k
views
How to Resample GeoTIFF on Python?
I am trying to resample a GeoTIFF file from pixels representing 30m² to pixels representing 1000m² on Python.
I have a geotiff that has the data according to those coordinates. The spatial resolution ...
1
vote
1
answer
1k
views
Rendering a GeoTiff file as an overlay on a map file
I'm using OpenLayers to render a GeoTiff file and now I want to display an ariel/satellite map as a baseLayer to it. The problem is that I can only render one layer for some reason,
here' my code
...
0
votes
1
answer
228
views
How can one change the meta data in a tiff file using VB or C# to be able to rescale a 3d Terrian data?
The problem is that I have terrain data on sphere about its South Pole in (long,lat,height) format. I would like to translate that data to another sphere (different radius) about its equator and re-...
0
votes
1
answer
1k
views
Rollup/Vite build error when including GeoTiff.js and Web Worker in build
I am using a Web Worker to do calculation on a GeoTiff file. I call the function getRidgePoints from CalculateRidge.ts, and this function creates a worker, posts the message to the worker, and then ...
0
votes
1
answer
138
views
The GeoTIFF file appears to have missing values, but they are visible in a plot
With the following code, I am downloading the current GeoTIFF from Dipartimento Protezione Civile in Italy, which is a radar composite.
When I display the data with a plot, I can see some values.
...
0
votes
1
answer
307
views
Unable to define GeoTIFF color map correctly when plotting with imshow
I am trying to plot a GeoTIFF that was initially created in QGIS. When saving the file, I export the GeoTIFF with the raw data to prevent errors while making the appropriate color map for matching the ...
1
vote
1
answer
866
views
Why rasterizing a shapefile in python using make_geocube gives an empty geotiff file?
When I try to rasterize a shapefile (ice chart) for attribute CA, it does not work. It gives me a GeoTIFF file with a size of 1 KB. When I open it on QGIS, nothing shows up because it is empty.
Here ...
0
votes
1
answer
60
views
How get lan and lon for each pixels from geotiff file using R
I have folder with geotiffs
folder=D:/mytiffs
the format in like this
distr1_2022-09-13_B02.tif
distr1_2022-09-13_B03.tif
distr1_2022-09-13_B04.tif
distr1_2022-09-13_B05.tif
distr1_2022-09-13_B06.tif
...
0
votes
1
answer
1k
views
Converting HDF files to GeoTiff files using Python's GDAL
I want, convert the file named "MAM35S0.A2008010.0000.002.2008010173218.hdf"(MODIS Aqua product) to GTiff format.
The datasheet is "HDF4_EOS:EOS_SWATH:"MAM35S0.A2008010.0000.002....
0
votes
1
answer
367
views
Is there an implementation of GeoTIFF in OpenLayer 3?
As the title says, I need to add some (COG) GeoTIFF layer to a website using openlayers 3.
Since we're not ready to upgrade to a current version of openlayers, I've been wondering whether there was a ...
0
votes
1
answer
139
views
SRTM height reference is unclear
After having some trouble understanding the height reference in SRTM data cropped by elevation Python package, I checked the SRTM guide which states the following:
The unit of elevation is meters as ...
0
votes
1
answer
114
views
From numpy to geotif having a georeferenced box
I created a numpy array by calculating the density of dwellings within an area through the following code:
def myplot(x, y, z, s, bins=10000):
heatmap, xedges, yedges = np.histogram2d(x, y, bins=...
0
votes
1
answer
1k
views
Issues resampling raster to the resolution of another raster
I am trying to take a population raster and resample+reproject it to match the shape and resolution of a precipitation raster.
Data Links:
Population Data: https://figshare.com/ndownloader/files/...
0
votes
1
answer
2k
views
How to convert GeoTIFF to png?
How to convert GeoTIFF to png, the following code does it wrong because after converting I get a blank background (something like a layer in GIMP). And I try to open in tkinter to I get an error. I ...
1
vote
1
answer
237
views
How to read a GeoTIFF file and return in a specific datatype in R language?
I am trying to read a large GeoTIFF file (18000×18000×40) of unsigned byte data format in R by raster package. I hope to read it as raw datatype (unsigned byte) in R, which then will be process by ...
0
votes
0
answers
305
views
Geotools interpolation
I have some spatial data with a value. lat, lon and z value. And a polygon where this data is from. Now i'm trying to create a geotiff so i can serve this through geoserver. I want a smooth graph, so ...
0
votes
1
answer
264
views
How to use a more accurate DEM in mapbox?
I want to create a 3D map that is more accurate than the standard one mapbox provides.
I found a DEM of Europe called EU-DEM with a vertical accuracy of +/- 7m.
Mapbox only accepts 8-bit GeoTIFFs ...
1
vote
0
answers
538
views
Very dull raster colors on folium map
I have a 4 band image (R,G,B,NIR) and I would like to print it on a folium map, but the result is not the same as what you see on QGIS, the image is very opaque and the colors very dull and I thought ...
0
votes
1
answer
198
views
AROSICS error ... RuntimeError: One of the input images does not have sufficient gray value information (non-no-data values)
I am trying to use AROSICS package (https://danschef.git-pages.gfz-potsdam.de/arosics/doc/usage/input_data_requirements.html) to align an RBG image taken from a drone and a canopy height model ...
1
vote
1
answer
238
views
Openlayers GIS - Georeferenced DEM(GeoTIFF) not positioned correctly in Map (OpenStreetMap)
With Openlayers, I'm visualizing GIS rasters(DEM, Orthomosaic) in GeoTIFF format(using WebGLTileLayer) on top of OSM(as WebGLTile layer) in OL Map.
The issue I'm having is, the GIS rasters which have ...
0
votes
0
answers
249
views
Reprojection from North Polar Stereo to Lat/Lon using Rioxarray causes dataset to become corrupted
I am attempting to reproject a CMC Snow Depth Map (in GeoTIFF format) from North Polar Stereo to Lat/Lon. The PROJ string of the file is: '+proj=stere +lat_0=90 +lat_ts=60 +lon_0=10 +x_0=0 +y_0=0 +R=...
0
votes
1
answer
580
views
Changing the Projection of the geoTiff to WGS84 in javascript/node.js
I am working in a react.js project where I am having a geoTiff file of projection "EPSG: 24378" and I want to show it in the leaflet map. I am using "georaster" and "georaster-...
1
vote
0
answers
153
views
Cannot create a RasterLayer object from this file - Chelsa climate tif file
I downloaded Chelsa bio files on my local directory.
And when I tried to create raster for my R project, I keep getting error with following message.
Error in .rasterObjectFromFile(x, band = band, ...
1
vote
0
answers
136
views
Export interpolation results from R as GeoTIFF for import to OpenLayers
As a part of the research project on ecology, our team need to interpolate results of analysis of snow probes for pollutants. For that task we utilize Inverse distance weighting from R software.
For ...
0
votes
0
answers
464
views
Wrong min value for a geo tif file
I am working on pre-processing a few geo-tif files. I want to obtain the minimum value for my raster image. My OS is Linux and Rasterio version 1.3.3. When I run my script in a conda environment, I ...
1
vote
1
answer
1k
views
Error message "AttributeError: 'DatasetReader' object has no attribute 'open'" when trying to convert numpy array to GeoTiff
I was wondering if someone could help me with an error message I am getting. First allow me to brief my workflow
imported raster image via rasterio.open
converted raster to array via raster.read(band ...
0
votes
0
answers
1k
views
Displaying TIFF data on React-Leaflet Map
I have basic javascript code that uses a simple Leaflet map; I have TIFF files that I parse through, and then I can display these on the map though Layer Control, in a simple index.html file. I can't ...
3
votes
1
answer
2k
views
Render a GeoTIFF file in Leaflet
I am creating a webmap using leaflet and I need to display tif raster images. I consulted all the types of methods to display these data; however, I do not understand so much, so I am having some ...
4
votes
0
answers
228
views
Getting Error while clip raster using shape file
# Read Shapefile
with fiona.open("/content/drive/My Drive/shapefile/shape_files/lidar_shape.shp", "r") as shapefile:
shapes = [feature["geometry"] for feature in ...
1
vote
2
answers
1k
views
Using Geotiff on Leafletjs - Get Value on Map Click
I can't get any value when I click on my map.
I just want to get the value of the pixel when map in onClick.
I tried using d3 and I make it to work, but using GeoRasterLayer load much faster on zoom ...
0
votes
1
answer
569
views
converting geotiff to datarame and preserving lat/lon in columns
I downloaded a geotiff from here: https://www.nass.usda.gov/Research_and_Science/Crop_Progress_Gridded_Layers/index.php
(file also available: https://drive.google.com/file/d/1XcfEw-...