Questions tagged [raster]

Raster is a data format consisting of regular grids of values, usually stored in an image-like format.

Filter by
Sorted by
Tagged with
1
vote
0answers
15 views

How to covert a GeoTIFF DEM to a standard raster format without losing quality or resolution

I'm working on a project, a spin-off of my graduate dissertation, to digitize LiDAR data of a portion of Tampa Bay (20x20 km^2 at 1:1 scale) into a Minecraft map. Ideally I want not just accurate ...
1
vote
0answers
14 views

Assign area of polygon to raster cell. Effective way in Python

I have quite interesting task to resolve, but my solution is not effective, so I am looking for some advice to improve my code. I have raster dataset covering Europe, in crs WGS 1984 (4326). The cells ...
1
vote
0answers
14 views

How to solve Error “ destination provider” when I try to save WMS as Geotiff?

I'm new and I use QGIS 3.10 I would like to save the WMS as Geotiff to be able to load and clip the raster by a mask layer (polygon). when I try to save the wms as geotiff (Export--> Save as) I get ...
1
vote
1answer
15 views

GDAL polygonize processing

I am a bit of a GIS beginner here. I've got an image mask in .jpg format that I'm trying to convert to a shapefile .shp format. To do so, I use the GDAL polygonize function. This is what the input ...
0
votes
0answers
15 views

Create multiple rasters from one raster, based on Vector Input in R

I have a DEM for a big region. And I also have a vector-file for several sub-regions. I want to create as many DEM's as I have sub_regions. And I would like to do this in a for loop and for example ...
-1
votes
0answers
11 views

Join raster and shapefile, so that I can have the shape and raster data in the same file

I want to join a raster and a shapefile but in my output data I want to keep both features, like a data frame, because I need a table with the pixels frequency by class to each poligon that I have. In ...
0
votes
0answers
19 views

Deleting edge pixels in raster using ArcMap

Does anyone know how to delete single edge pixels in a raster after a mask is completed? I could convert to polygon and back to raster, but I don't want to lose accuracy. I am using ArcMap.
1
vote
1answer
22 views

Clip by extent. FAILURE: No target dataset specified

I am using QGIS 3.10.2 and I am trying to clip a raster layer of the World just to capture Africa. The raster layer was imported from ESRI (https://planet.qgis.org/planet/tag/world%20imagery/) with ...
1
vote
1answer
24 views

Difference model between two raster (DEM) how to show values bigger than and smaller than 0,00

I got to DEM layers over the same area with positive and negative values in them. So I ran a raster calculator raster1-raster2. Now the raster got values with 0,000659 (This should be counted as 0,00,...
2
votes
1answer
16 views

Write output of multiple files to a directory after processing using gdal.Translate and glob.glob?

I want to convert the data type (Int32 to Float32) of all the tiff images in a directory 'F:\\prep\\input\\' and save/write the outputs to a new directory 'F:\\prep\\converted\\'. I have tried using ...
4
votes
0answers
25 views

What are the differences in raster formats between Civil3D, QGIS, and ArcGIS? [closed]

Civil3D uses a .dem / .tif format which calls many files from other sources invalid. Esri products seem to have richer metadata for TIFF rasters and will add data to TIFF files on disk. QGIS uses GDAL ...
2
votes
0answers
32 views

AttributeError: 'NoneType' object has no attribute 'GetFeatureCount' [closed]

I am trying to use the Landscape Vector Overlay function in the LecoS plugin to calculate the amount of various proportions of land cover types (using an ordinary landscape raster) within buffer ...
4
votes
1answer
29 views

Setting Bin Count in QgsRasterHistogram

Following this question, I am trying to use QgsRasterHistogram to obtain a histogram of my raster image. However, I cannot figure out how to change bin count. I looked at the docs here, and it would ...
0
votes
0answers
34 views

How to change raster cell size WITHOUT resampling? (ArcGIS Pro)

I have hundreds of rasters, all with different rectangular cell sizes. I need to convert the pixels to be square, since I will be using a variety of Spatial Analyst tools such as Raster Calculator. ...
0
votes
1answer
27 views

ArcPy Raster to Polyline outputting empty shapefiles and a 999999 error?

I am running a lengthy script to post-process raster channel paths into polylines so I can measure their length using Add Geometry. Script runs well until I go to convert the rasters to lines using ...
0
votes
1answer
42 views

Looping through list of coordinates to create polygons on Google Earth Engine

I have imported a CSV file with just one column. Each row of the column has multiple coordinates required to draw a polygon. (This was collected on the ground) I have used the below code to extract ...
0
votes
0answers
14 views

Define spatial reference system and reproject CleanTopo2 raster?

I would like to use the CleanTopo2 raster from http://shadedrelief.com/ to generate a hillshade for a main map of the conterminous United States and inset maps of Alaska and Hawaii (plus portions of ...
0
votes
1answer
20 views

Trying to recode raster with CSV using the Grass r.recode.attr but getting error “name 'xrange' is not defined”

I'm trying to recode a large GSSURGO soil raster with CSV using the Grass r.recode.attr following these instructions https://pvanb.wordpress.com/2014/12/13/recode-your-raster-file-in-grass-gis-using-a-...
1
vote
0answers
53 views

Resample raster image, how to choose new resolution?

I know this is not a new question, and I know it depends on the context and what I would like to do with the data, but I am still finding it difficult to solve this problem in practice. And I haven't ...
0
votes
0answers
12 views

Clip raster with PostGIS polygon layer using Python

I have two layers in the same SRID: single-band georeferenced raster in a TIF file single multipolygon in PostGIS I need to convert the pixels of the raster within the polygon into points (at the ...
1
vote
0answers
25 views

Creating new minimum and maximum values to be consistent across 4 DEMs

I have 4 DEMs (LIDAR, 5M, 10M AND 30M resolutions) all with the same geographical extent and I want to compare the differences in resolution using 4 layouts. I want to have the same minimum and ...
0
votes
0answers
28 views

QGIS GDAL Build VRT results do not reflect input raster values

I am having trouble successfully creating a VRT. My Build VRT gdal command results in values of ±1.79769e+308. The values should be 1,2,3, or 4. I've verified projection info is the same across the ...
1
vote
1answer
42 views

How to exclude/eliminate invalid areas (such as NoData, cloud, water, etc) from raster so that it does not effect the accuracy assessment?

I have two classified raster (snow cover % 10-100) one is prepared from coarse resolution and another is from finer resolution. I am doing accuracy assessment and matrix calculation of snow cover %. ...
0
votes
0answers
22 views

Assigning elevation to point shapefile based on point file using ArcGIS Desktop

Goal: Extract elevation data (Data B) based on given point file locations (Data A). Current problem: I have several sets of xyz data for large areas with a resolution of 1m. I converted those to ...
1
vote
3answers
39 views

Why does QGIS shift the raster during raster calculator operation

I have a raster with bathymetry data and need to add 0.6 value to each cell. The operation itself is simple - I just use raster calculator to add the value using following expression: bathymetry@1+0.6....
0
votes
0answers
14 views

Which year change does NLCD Land Cover Change Index show?

After downloading the National Land Cover Dataset (NLCD) Land Cover Change Index from the Multi-Resolution Land Characteristics Consortium (MRLCC) website, it only contains one raster file. However, ...
3
votes
1answer
48 views

Google Earth Engine - Reprojecting Vector FeatureCollections

I am calculating zonal statistics in Google Earth Engine, using an uploaded shapefile(EPSG:4326) and raster dataset (GHSL - EPSG:54009), so I need to reproject one of the layers. Whilst I have ...
-2
votes
0answers
21 views

How to save a data layer in assets [closed]

How can I save a data layer in assets? https://code.earthengine.google.com/?scriptPath=users%2Fumkhalidalbahri%2Fj%3A1
0
votes
0answers
35 views

Exporting Raster and Vector Layers within ArcMap

I am looking for a geoprocessing tool or script that I can run within ArcMap that will extract all raster and vector layers by polygon shapefile and export them to a file. This should give 609 ...
2
votes
1answer
27 views

Show or hide bands in GeoTIFF rasters (using QGIS)

I have a bunch of GeoTIFF images that show aerial photos of various fields. Bands 1-3 in these images contain the R/G/B components of the original photo. Bands 4-6 contain additional information about ...
0
votes
1answer
27 views

Warning1: TIFFReadDirectory:Sum of Photometric type-related color channels

I am reading and writing rasters using gdal and keep running into the error: Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match ...
0
votes
0answers
26 views

SAGA Tools not working in QGIS 3.6.1 with GRASS 7.6.1

I installed QGIS 3.6.1 with GRASS 7.6.1 As I am trying to get administrative borders from old map. I did some pre-processing in GIMP and already selected the borders with treshhold functions and so on....
2
votes
1answer
57 views

Parallel processing on rasterstack using Raster and Parallel Packages

I want to run BFAST on a raster stack (768 Landsat NDVI) in parallel processing. In order to illustrate the problem, I used the following reproducible code: Load necessary packages; library(raster)...
0
votes
1answer
23 views

Applying raster symbology to raster layer with different values using ArcGIS Pro

I am using ArcGIS Pro 2.5 and starting with an 8 bit raster layer that has specific symbology and labeling - a value of 0 is labeled as a certain species, and so on. I want to apply this symbology/...
1
vote
0answers
13 views

Extracting SpatialPolygonsDataFrame attributes into a dataframe in R. Assigning new vars based on other polygon in R

Here you can see a group of small and large polygons. Small polygons are cropped as I am only interested in their properties, such as size inside the large polygons. I have two furhter objectives ...
3
votes
2answers
46 views

Using R focal to normalize data

I'm trying to normalize a DEM raster with focal and a function to set values between 0 and 1 (iteratingly from the neighboring cells). Thus, for each cell, a 3x3 matrix is to be created and the ...
2
votes
1answer
24 views

QGIS Raster Mask Layer?

I have a raster slope layer and a raster aspect layer. The slope layer is single band grey, that is black to white, with white as the steepest slope. The aspect layer is pseudo colour. I'd like to ...
0
votes
1answer
22 views

RasterLayer vs RasterStack

I have a few hundreds of .tiff files that I converted as a raster stack. However, when I tried reading the file, it is classified as a RasterLayer. I was expecting it to be a RasterStack. The ...
2
votes
2answers
34 views

Iterating GRASS function over list

I want to project the shadows from a DSM raster. Is it possible to iterate the grass function r.sunmask.datetime over a list from a csv file composed with interest dates(month/day) and time (hours ...
1
vote
0answers
16 views

Mask raster time series

I am quite new on spatial R. I would like to apply the land mask to monthly SST data from https://www.esrl.noaa.gov/psd/data/gridded/data.noaa.oisst.v2.highres.html. I tried to use "mask" from the ...
1
vote
1answer
43 views

Join raster (.tif) and CSV in R [closed]

I have a .csv file with several attribute fields. I would like to join this to a raster (.tif) file, using an 'ID' column from the CSV file, so that the raster gets all the attributes from the CSV ...
2
votes
0answers
34 views

QGIS CRS not set correctly [duplicate]

I'm trying to extract climate variables in QGIS 3.10.2 for sample points with a raster dataset. The raster comes from ClimateNA (https://adaptwest.databasin.org/pages/adaptwest-climatena) and is ...
1
vote
1answer
88 views

QGIS Zonal Statistics and No_data

I think QGIS Zonal Statistics algorithm does not handle No_data values correctly. The expected behaviour is that if I set some raster cells to No_data (for example with the method suggested here, ...
2
votes
0answers
13 views

Rasterize will output 0 as NODATA (QGIS)

I have a data range which includes 0 ex +3 to -4. I would like the rasterize to include my 0 data (create a pixel) and just exclude the NODATA (where there is no points)
1
vote
0answers
29 views

Rasterize right method for true value of point grid?

Is rasterize an interpolation or does it just burn in the "true" value of the point? I have a grided data that is evenly spaced and dense. I would like to just have a raster with the "real" value of ...
3
votes
0answers
63 views

Difference in raster pixels between Windows x86 and Windows x64

I have a huge problem and I can not find a reason for it. I have two PCa, one in my house and the other in my workplace. The first one is an old notebook with Windows x86 and the other is Windows x64. ...
2
votes
1answer
36 views

Cannot extract data from raster in QGIS

I'm trying to extract climate variables in QGIS for sample points with a raster dataset. The raster comes from ClimateNA (https://adaptwest.databasin.org/pages/adaptwest-climatena) and is available as ...
1
vote
0answers
79 views

Applying calc() on a rasterstack with certain pixels with all NA values

I have a raststack of 768 NDVI files with 4.1 million pixels each. Now I am performing a pixel based time series method (BFAST) using the following functions: Function to convert daily ts into ...
2
votes
0answers
32 views

Apply function on raster

I often need to apply functions on every raster cell. Unfortunately I don't know how to use a efficient method like calc, so I am using very slow for-loops. For example: logistic_function <- ...
2
votes
2answers
44 views

Extract cell values and coordinates from raster using a polygon in R

I'm trying to extract cell values and coordinates from raster using a polygon in R. I have multiple raster layers with different types of values, all within the same extent. I have multiple polygons ...

1 2 3 4 5 140