Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [raster]

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

1
vote
0answers
8 views

Is it possible to extract the projection from each LAS file in a directory using ArcPy?

I am using ArcPy to automate the conversion of LAS files to Raster in ArcGIS. I'd like to extract the spatial reference from each LAS file along the way, is it possible to do this using ArcPy tools?
0
votes
1answer
16 views

Looping a raster stack with a step, R

I have a large raster stack of about 500 rasterlayers. What I want to do is to extract specific layers and store them in a different strack. The layers for which I am interested in, have a step of 8 ...
0
votes
0answers
20 views

Converting Land Cover Vector to Raster?

I have a question regarding converting a vector forest cover layer to a raster layer. The basis of what I am trying to do is determine what percent of forest cover is within a set of 1x1 km grid ...
1
vote
1answer
41 views

Resampling 0.7 m LiDAR (in raster already) to 10 m DEM in R?

How do I resample the 0.7 m LiDAR to 10 m DEM in R? What are the basic rules for checking the consistency?
0
votes
1answer
17 views

Computing number of points in a raster grid cell in R

I have a country shape file and a dataframe with coordinates of bird sightings. My goal is to "rasterize" the shapefile and compute the number of points within each grid cell. Specifically, I want to ...
0
votes
0answers
8 views

Django raster, not add raster to BD Postgis

I am new in this world, and I am trying to make Django Raster work, I have already followed all the instructions of: https://django-raster.readthedocs.io/en/stable/installation.html But at the moment ...
1
vote
0answers
18 views

ArcMap: compare overlapping partially transparent rasters using swipe tool?

I'd like two compare two rasters in ArcMap 10.4. I can do this using the Swipe tool on the Effects toolbar, however, this only allows me to interactively drag the top layer over the bottom one (top ...
5
votes
1answer
121 views

Choosing raster format for QField?

I'm doing some tests with QField at the request of the company I work for. I was wondering what is the best (most efficient and practical) raster format with regard to the fluidity and the loading ...
0
votes
0answers
29 views

Erasing spatial reference from GeoTIFF raster using ArcGIS Desktop? [duplicate]

I am wondering is there any way to remove spatial reference from Geotif file, a composite of WorldView-3 8 bands in single Geotif file on projected coordinate system i.e. UTM. I guess spatial ...
0
votes
0answers
16 views

List of outdated tiles without using psql/osm2psql

I have a .mbtile file containing tile data from OSM. I'd like to keep the .mbtile file up to date with the latest changes from OSM. I don't have a postgres running locally that I could update using ...
0
votes
1answer
12 views

GDAL: Using gdallocationinfo on a rotated SAR image to get pixel value at Coordinates

Some information: I must not re-sample the image, the pixels are rotated, and the image opens in Arcmap just fine. now, there are 15 GCPs on the raster (which make the pixels rotate) Progress: 1.When ...
0
votes
0answers
20 views

Resampling 0.7m Lidar to 10m DEM in ArcGIS Desktop? [duplicate]

How do I resample the 0.7 m lidar to 10 DEM in ArcGIS Desktop? What are the basic rules for checking the consistency?
-1
votes
0answers
31 views

Loop all the raster files in the same folder? [on hold]

I'm trying to calculate mean of rasters NDVI for the same years. I have 10 rasters. How can I loop all the raster files in the same folder to calculate mean and add to dataframe? The following code ...
1
vote
0answers
25 views

Removing white background from raster as well as cleaning up edges?

I am looking to remove white background from a tiff as well as cleaning up the edges. I have used display background values from the symbology tab as well as applying gamma stretch for edges.. I can ...
1
vote
2answers
32 views

Extract values from a multi band raster in R [on hold]

I currently have a raster with multi-bands. > EVI.all class : RasterLayer band : 1 (of 12 bands) dimensions : 771, 735, 566685 (nrow, ncol, ncell) resolution : 0.002245788, 0....
0
votes
1answer
28 views

Polygonize and mask a GeoTiff with GDAL and OGR [on hold]

I am trying to polygonize a GeoTIFF: import numpy, sys from osgeo import gdal, ogr from osgeo.gdalconst import * gdal.UseExceptions() ds = gdal.Open('H:/Threshold/nsdvi_range.tif' srcband = ds....
0
votes
0answers
6 views

No Data Holes in Certain Tiling Scheme Levels in Mosaic Dataset Imagery Cache

I have a mosaic dataset containing three other mosaic datasets (one containing county imagery, one containing regional imagery, and one containing city imagery) I have them ordered by putting the ...
-1
votes
0answers
20 views

Extracting longitude and latitude values from a cropped raster image [closed]

How to extract the row and column number given an extent of a raster and also extracting the longitude and latitude given a row and column value.
0
votes
1answer
31 views

How to extract raster attributes by lat/long location?

How can you extract an attribute value from a raster from a point (lat/long)? Example data: Raster with attribute table - value of interest is temperature I have a list of points with lat/long ...
2
votes
2answers
17 views

Borders appear when reducing the global opacity of multiple raster images in QGIS 3.2.3

I want to reduce the opacity of multiple raster images and when I use the global opacity slider to do so, black borders appear between my images. I would want to eliminate these borders.
1
vote
1answer
15 views

Extract By Mask - Raster Horizontal Shift

Is there a way to snap a raster/DEM to a mosaic dataset? I am using the Extract By Mask tool in ArcPro on a mosaic dataset. The output raster's cell values do not match the original mosaic dataset it ...
2
votes
1answer
43 views

How to calculate mean for each band in raster using GDAL and Python 3

I have a raster with 6 bands and I need to calculate the mean for all bands in the raster without value 0 I have this script but it works for one band only: import os from osgeo import gdal import ...
2
votes
0answers
14 views

Setting raster visibility on/off in QGIS Python API 3

I'm having a bit of a trouble migrating an algorithm from pyqgis 2 to pyqgis 3. The thing is I want to make visible and invisible a series of layers as I iterate through a list and render some images. ...
1
vote
0answers
34 views

Raster values shows no data when using identify features tool

I used vector to raster function in QGIS, to convert some points with different values to raster. I tried to use the "Identify Features" to check values for each raster box. The values shows no data ...
1
vote
2answers
32 views

Point Sampling Tool pyQGIS

I have several raster files (raster_1, raster_2, [...], raster_n) and a point shapefile. The point shapefile (point.shp) was created using "generatepointspixelcentroidsinsidepolygons" so my points are ...
0
votes
0answers
30 views

Calculate radial distance from a central point (kind of viewshed, but not viewshed?)

I would like to do the following, complex(?) GIS analysis, for which I just can't seem to find the right tools/protocols. On a binary raster, I would like to calculate, for every cell, the average ...
0
votes
1answer
33 views

QGIS: Clip a shapefile based on values in a raster

I would like to clip a shapefile based on the values of a raster file beneath it, using QGIS. The specific context is a shape file of Local Government Areas overlaid onto a population density raster....
0
votes
0answers
16 views

How to add drop-down variables into “Predefined Expressions” in the Raster Calculator [closed]

Actually, an Answer to the question... I didn't to find this question anywhere, but I did find the answer to it (after some digging). In the Raster Calculator, you can add Predefined Expressions, ...
4
votes
2answers
95 views

Clustering 30m pixels into 120m pixels, fishnet using QGIS?

I have a raster file representing tree cover loss made of 30m*30m pixels taking the value 0 or 1. 0 means no loss and 1 means tree cover loss. I want to cluster these pixels into bigger pixels of the ...
1
vote
1answer
22 views

QGIS RGB2PCT is leaving holes in continuous regions

I have a raster which was generated from an ArcGisMapServer layer, and is thus an RGB layer. I want to convert the RGB layers into a single 8bit layer in order to recover the original classes. When ...
0
votes
0answers
30 views

Using tool “minus” in height model?

I'm doing a lab and I'm trying to understand exactly why I'm using the tool "minus". I have a raster which I'm calling "heights". I also have two rasters with water surfaces and watercourse. I have ...
1
vote
2answers
18 views

Overview, multiple rasters in map canvas

I work with multiple rasters and merging them into a VRT isn't an option. Is there a way to get info on what raster layer I'm looking at as a "mouse over" event within map canvas? I'm on version 2.18 ...
0
votes
1answer
25 views

Loop through two raster datasets by order and perform a function

I have two raster datasets that I need to loop through by order and select the first raster from the first dataset with the first raster from the second dataset to perform a function. I keep getting ...
1
vote
0answers
17 views

Reading a RasterIO MemoryFile triggers a GTiff driver warning/error message

I have recently upgraded RasterIO from version 1.0.5 to 1.0.12. After this upgrade I now get CPLE_NotSupported in driver GTiff does not support open option MODE when reading a MemoryFile. My code to ...
1
vote
2answers
15 views

Can GeoServer WPS accept external WMS as input?

I'm reading here: http://suite.opengeo.org/docs/latest/processing/processes/formats.html#raster-inputs that GeoServer can accept HTTP Requests as Input when a Raster is required. Documentation ...
0
votes
0answers
12 views

From raster histogram/raster make frequency tables in Python

Im new in programming... I would like to know, how I can get a frequency table from a rasters histograms? Or how can I generate the table from a raster? I would like a table of the histogram showed ...
0
votes
2answers
28 views

Top percentile in zonal statistics - ArcGIS

This is quite a simple question and I'm sure it's possible as I've seen it referenced in research articles (e.g. here, p.38). I have a raster with continuous values (0-1), and a vector dataset of a ...
-6
votes
0answers
19 views

Help analyzing two imagery layers [duplicate]

One imagery layer that is before a fire and one that is of the burned areas after. I am trying to detect which houses were burned using the difference button with the image analysis tool and create a ...
1
vote
0answers
21 views

I want to combine or merge rasters

I am combining many rasters using a "barcode" that describes attributes for each cell. Combine works on integer values: I combine multiple layers using "combine" tool, then create the bar code by ...
-1
votes
0answers
12 views

Creating points with similar slope, aspect & elevation, within and across polygons using ArcMap?

I have 30m ASTER DEM data for my study area. I have mapped out different habitat sub-types as polygons in the area. I would like to create points in each sub-type's polygon for sampling; the points ...
2
votes
0answers
23 views

Error when clipping raster in QGIS

I have done it many times (clipping a raster with a polygon layer or by extension) but today I got an error for the first time and I don't know how to solve it. I am always using the same type of ...
0
votes
0answers
36 views

Looping through Clip Raster By Mask function

I created a script to loop through the Clip Raster By Mask function. I assign my personal files to the variables and use a nested for loop to iterate through the feature ID numbers in my selected ...
-1
votes
0answers
18 views

Addition of rasters which has same basename in R

I have rasters with same basenames in two different folders. I want to perform addition of two rasters with same basenames and save it in an output directory with same basename. library(raster) ...
0
votes
0answers
38 views

Rasterise shapefile as 1 band (grayscale)

My code converts shapefiles to rasters. I had first done this in colour, but now I need greyscale (1 band). The code seems to create this for the first raster file, but the other raster files seem ...
0
votes
0answers
21 views

Use Raster Calculator on huge set of rasters

I have a set of 420 raster files covering global temperature and precipitation data for each month between 1979 - 2013. I want to use the Raster Calculator in ArcMap to exclude specific values setting ...
2
votes
1answer
16 views

Expand plotting area of raster::plot

I have a raster that I'd like to plot in the Azimuthal Equidistant projection with a grid and labels. So far I've been able to do that. However, I cannot get the labels inside the plotting area. ...
0
votes
1answer
53 views

Reclassify and combine rasters in QGIS?

I have a vector layer containing watercourse location which I have rasterized. I also have a DEM containing elevation data for the region in which the watercourses are located. I would like to ...
0
votes
0answers
24 views

Extract raster cell values by polygon field

I have a raster as a RasterLayer (raster) and a polygon layer (bound) with 38 individual polygons as a SpatialPolygonsDataFrame. I used the polygon to mask from a larger raster. Each polygon contains ...
1
vote
1answer
59 views

Very slow loading of PostGIS raster layer in qGIS

I'm trying to use big raster dataset with PostGIS 2.5 on PostgreSQL 11 on Linux for the purpose of serving a base map organization-wide. My dataset is 2TB of TIFFs. I created 8GB test table (including ...
0
votes
0answers
13 views

Clipping raster image in ArcGIS problem column and row

I am using ArcMap 10.6. Imagine I have x.tif (100x100 pixels) and Y.tif(10x10 pixels). If I have to clip x.tif with the extent of Y.tif, the result of Z.tif should be 10x10 pixels. but the result of ...