The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [rasterization]

The process of turning a vector into its raster equivalent

Filter by
Sorted by
Tagged with
2
votes
1answer
32 views

QGIS 'Rasterize vector to raster' failing to create viable raster

I had a DEM (.asc): Which was converted to a shapefile point cloud (see attached below) and I'm trying to convert back to raster within QGIS 3.8.2 https://1drv.ms/u/s!AjCedBZJ5Eh4kEKj4AAjcItprRax?e=...
0
votes
0answers
28 views

Iterating spatial join with multiple merge rules (and then creating raster) in ModelBuilder?

I'm using a Basic licence in ArcGIS Desktop 10.3 with Spatial & 3D Analyst extensions. I have a dbf file which contains point data for several days. I want my final output to be a) a point ...
1
vote
0answers
41 views

Convert discrete data (e.g. geological units) to percentage within pixel?

I am looking for a way to convert discrete data in a way that they can be used in ecological niche models. I try to avoid factor data so I thought about transforming the data to %. I have a ...
10
votes
5answers
253 views

Creating raster where each cell records distance to sea?

I want to create a raster with a 25 metre × 25 metre resolution, where each cell contains the distance to the nearest coastline, as calculated from the center of the cell. To do this, all I have is a ...
0
votes
2answers
36 views

Rasterize multipoint geometry in R

I would like to rasterize data on protected areas for certain countries (e.g. https://www.protectedplanet.net/country/TH, download button is at the bottom of the page). The dataset contains two ...
1
vote
1answer
29 views

Making black and clear raster image from polygon in QGIS?

I have made a polygon in QGIS (I just drew a polygon), but how do I make this into a raster image? I want the raster image to be black (where the polygon was) and clear where the polygon wasn't. I ...
0
votes
0answers
35 views

rasterio rasterize does not take geometry

rasterize(allshapes) return; "ValueError: No valid geometry objects found for rasterize" Testung a single shape: print(shape.GetGeomFieldRef(0)) POINT (56.91288 27.33519) print(is_valid_geom(...
1
vote
2answers
47 views

Points to raster (image) in Google Earth Engine

I have a bunch of points representing bird observations, and I need to convert this to an image in GEE where each pixel value is the total number of observations in each 1 km pixel. This is a very ...
2
votes
1answer
26 views

Outputting mean value when multiple input points fall within cell using QGIS Rasterize?

Using QGIS 3.8.2, I rasterize a Geopackage vector point layer using the Raster > Conversion > Rasterize tool, with output to a .tif file. However, where multiple input points are within a single ...
1
vote
1answer
26 views

(QGIS) Shapefile with attribute table: Convert it to raster burning values of each polygon to the raster. “Heatmap”

I am working on QGis with a shapefile with an attribute table, I have created this shapefile through "Vector->Analysis tools->Count Points in Polygon", so this new shapefile got the count in the ...
2
votes
1answer
36 views

Vector to Raster Conversion in QGIS 3.4

I am trying to create a DEM from Vector points data extracted from Google Earth. What is the best method? I get an error thrown each time, while trying to rasterize Vector point data to raster. ...
4
votes
0answers
44 views

QGIS export to PDF - rasterize only basemap layers but keep others as vectors

I am building my own map in QGIS 3.4 in which I created a basemap from ESRI satellite imagery and a ESRI hillshade overlay. On top I have several custom vector layers (country borders, city names etc.)...
2
votes
1answer
56 views

Error converting vector shapefile to raster (.TIF) in QGIS?

I am working with a shapefile of 10km grid regions of the UK obtained from digimap. I need to convert this to a raster in order to do some analysis in R regarding agricultural intensity of 10km UK ...
1
vote
1answer
27 views

Polygon to raster

I'm using ArcMap 10.4.1. for my research I need to convert a polygon shapefile ( consisting polygons extracted from google earth) to raster. I am using the "polygon to Raster" tool. The output cell ...
3
votes
1answer
172 views

How to rasterize individual feature (polygon) from shapefile using GDAL/OGR in Python?

I would like to convert the individual records (polygons/features) of a shapefile to raster using GDAL/OGR. Here is the example shape and the mask raster. Rasterizing the full layer with all records (...
0
votes
1answer
80 views

Rasterising shapefile in Python? [closed]

I am trying to rasterize a shapefile with Python using ogr, but if you know to do with other libraries as fiona, I am interested in too. I use the shapefile in the following website: https://www....
2
votes
1answer
63 views

Import multiple xyz files and rasterize them

How can I load multiple XYZ files in QGIS? I want to load about 100 files to create from each one a raster so we can overlay our network on them. Manually it's too much work. I tried to create a ...
2
votes
0answers
27 views

Rasterize a geometry using gdal.RasterizeLayer()

I am writing a processing script using QGIS 3.4. I need to rasterize a polygon using gdal.RasterizeLayer. The problem is the polygon is a list of QgsGeometry objects and not a layer. n = (2*radiusInt)...
0
votes
0answers
30 views

How to get pixel per meter in MATLAB

I have a vector shapefile which is in unit of 'Meter' presenting boundary of overall Germany. I am converting it into raster format based on each pixel representing 300 Meters respectively. After ...
2
votes
1answer
104 views

Convert point layer to raster QGIS 3

I have a .csv-file containing x and y-coordinates as well as different variables with attributes (var1 to var3). The csv looks like that: Loading the data into QGIS with Add Layer → Add ...
1
vote
1answer
112 views

R: rasterize SpatialPolygonsDataFrame and keep factor field

I want to rasterize a SpatialPolygonsDataFrame and keep the values of a factor column. Consider the following code (from Processing vector to raster faster with R): library('raster') library('rgdal'...
3
votes
1answer
86 views

r.surf.contour for large area

I have a vector file containing contour with 2m accuracy, covering a large area (All Hong Kong). I tried to generate an elevation raster map with the file, by first rasterized the vector, using v.to....
0
votes
0answers
38 views

Making grid files (minimum curvature) from point data in QGIS?

Is there any way to make a grid file from point data (shape file) in QGIS? I mean by grid a colored raster file like Geosoft .grd or ERMAPPER .ers file or like. Minimum curvature would be ...
4
votes
1answer
330 views

Rasterizing polygon grid in Python (geopandas & rasterio)

I am trying to rasterize a custom polygon grid with one or more columns. Preferably I'd like to create multi-band rasters from multiple GeoDataFrame columns (in polygon grid), but I have got stuck ...
3
votes
1answer
80 views

What does the vector to raster option in QGIS do, exactly?

I have a large point vector layer (a few million objects) with measured elevation values and have converted it to raster, using the raster>conversion>(vector to raster) option in QGIS. It seems to ...
1
vote
0answers
25 views

Converting vector to raster on-the-fly using GRASS?

EDIT: I later realized that, instead of creating multiple 256 x 256 tiles, I could just create a single image to overlay on the entire map. However, I'd still like to know if there are better ways to ...
0
votes
0answers
31 views

Polygon to Raster conversion: Raster shifted ~10m horizontally. How to fix?

I converted a number of polygons into a raster. The cell size is correct but the raster has shifted ~10m horizontally. Is there an issue with my method or is there a tool I can use to fix this?
1
vote
1answer
41 views

Rasterize produces wrong result - R

I am trying to rasterize a polygon in R using teh rasterize function but the output is not correct. I am comparing the result with the output produced by the rasterize tool available in QGIS May data ...
1
vote
0answers
55 views

How to render vector data with muliple geometry types to georefrenced raster

I am using OSM vector data which has been converted into shapefiles. I have polygons representing buildings, landuse and lines representing roads as shown bellow: I want to assign some symbology to ...
2
votes
1answer
142 views

Why does fasterize gives different output for multipolygons with and without internally resolved boundaries?

I was thrilled to be clued into the package fasterize, which speeds up the rasterization process in R tremendously. However, I cannot figure out why the fasterize() function outputs two different ...
0
votes
2answers
88 views

How to convert multiple shapefiles of different geometries into a georeferenced raster

I have multiple shapefiles extracted from OSM vector data, as shown in the image bellow: How can I render this into a raster of a specified resolution? Is there a way to do that using QGIS or ...
1
vote
0answers
36 views

Getting TIFF with gdal_rasterize

How can I properly rasterize isolines with an absolute height value in QGIS 3? When using "gdal_rasterize" in the source code I got tiff with "holes", see image below
0
votes
0answers
40 views

Converting line vector layer to raster with pixellate.psp creating missing data?

The following example converts a line vector layer (road network) into a density raster. It seems to be working for others, but it looks like it's creating data gaps at my resolution (50m). library(...
0
votes
0answers
18 views

Using Polygon to raster (folder)?

I'm having a problem when trying to convert "Polygon to Raster (folder)" on ArcGIS 10.5 ( SDM Toolbox v2.3). Why are all output rasters much smaller than the input polygon?
0
votes
0answers
46 views

Rasterizing vector layer (polygon) in ArcGIS Desktop?

I am using ArcGIS Desktop 10.6. While rasterizing my vector layer, lots of noise creates, I remove most of them by applying different cell sizes and the best one is 45. The only problem left is the ...
0
votes
1answer
50 views

Rasterizing MULTIPLE vector layers in same “grid” so I can do a regression of sorts across pixel units?

For my research, I have collected a bunch of climatic data from my state in vector form. I also have my raster data, which is about 60 points around the state that have a binary assignment of yes/no. ...
1
vote
1answer
172 views

Vector Rasterize error using QGIS?

I am attempting to convert vector files to raster format in QGIS using the Rasterize tool and am receiving the error: ERROR 1: Wrong value for -tr parameter. I have attached an image of the ...
1
vote
1answer
42 views

Rasterize the full area of a polygon, not only midpoints, using R [duplicate]

The default function in raster::rasterize is to see if a point is within a polygon and if yes, make a cell. This results in that some of the outer parts of the polygon is not covered by the new raster....
1
vote
1answer
53 views

Rasterize point layer with weighted distance

I have a point layer representing wells in a region. i am able to rasterize it and write the well density into the raster as integer, so far so good. What I aim for is to create a raster with values ...
1
vote
0answers
188 views

Vector Rasterize Error

I am running QGIS 3.4.4 With GRASS 7.4.4 and I get an error while rasterizing a vector layer and I don't know why. The same error pops up while using GDAL->Rasterize(vector to raster) and while using ...
2
votes
1answer
60 views

QGIS3 saved Raster layer is “skewed” or aspect ratio is wrong

I'm trying to export two layers based on the current view or "extent": A black and white "raster" derived from some vector data A map layer (Bing, Google, osm, etc) The issue I'm having is that the ...
0
votes
1answer
272 views

QGIS 3.4 - Rasterize creates layers with 1.79769e+ 308 min/max values

I have tried searching on here for my issues, read many threads, but to no avail. Essentially, I am trying to convert a line feature to a raster so that I can run proximity on it - because I want to ...
0
votes
0answers
37 views

Rasterizing a point layer without using an attribute field

I am following the "QGIS by Example" text book and a task requires that a point layer is rasterized using the following GDAL code gdal_rasterize -l layer name -burn 1 -a_nodata 0 -te coordinates - ...
0
votes
1answer
69 views

How to perform shapefile/raster integrated functions

Description: I'm having trouble with some Raster/Shapefile manipulation. My problem is that I have a shapefile that I would like to use to update my rastervalues with. The shapefile has multiple ...
1
vote
0answers
149 views

QGIS: error in conversion from vector to raster

I've having troubles with the raster conversion from a vector polygonal file. This is the error in the log window: INFO GDAL execution console output ERROR 1: Wrong value for -...
3
votes
1answer
685 views

Rasterize (vector to raster) QGIS 3.4

I am trying to rasterize a vector with the QGIS 3.4 rasterize tool (not saga or grass tools). I prefer using this tool cause it is much faster. The values which i would like to burn are found in the "...
1
vote
0answers
187 views

Rasterizing shapefile with rasterio and gdal gives all cells 0 values [closed]

I am trying to rasterize my shapefile (20 polygons) with rasterio and fiona and turn the new raster into a mask for clipping. I need to rasterize my all polygons in my shapefile and turn on mask ...
1
vote
1answer
366 views

Convert a vector file to an RGB raster using gdal_rasterize without filling polygons

I am trying to convert a vector file that includes polygons to an RGB raster using gdal_rasterize without filling the polygons. Is there a way to do this? For example, I use the following command to ...
1
vote
1answer
256 views

Inconsistencies in R rasterize polygons, packages raster and sf

I was trying to calculate species richness from IUCN distribution data in R, and I decided to check my results with two different methods, both of which rely on rasterize function from the raster ...
0
votes
1answer
58 views

Raster from a set of Points keeping the resolution

I have a database with some points covering the earth surface and I want to build a raster (GeoTIFF using gdal_rasterize) which mantains the same spatial resolution of the input points (so without ...