Questions tagged [rasterization]

The process of turning a vector into its raster equivalent

Filter by
Sorted by
Tagged with
1
vote
1answer
18 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
31 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
38 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
44 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
22 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 ...
2
votes
1answer
54 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
76 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....
0
votes
0answers
40 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
23 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
25 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
66 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
59 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
74 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
27 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 ...
3
votes
1answer
229 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
78 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
23 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
28 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
40 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
53 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
87 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
85 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
34 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
31 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
44 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
115 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
40 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
52 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
158 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
52 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
227 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
65 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
123 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
531 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
163 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
288 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
235 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
55 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 ...
0
votes
1answer
72 views

ArcMap “Polyline to Raster” output is empty greyscale raster

I have a polyline shapefile of streams that I am attempting to convert to a raster using the "Polyline to Raster" conversion tool. However, rather than outputting a raster with distinct stream pixels, ...
1
vote
1answer
190 views

How can one create a binary image from a FeatureCollection in Google Earth Engine?

I have been trying to find a solution for this for quite some time now based on ee.FeatureCollection.reduceToImage, but I don't seem to be able to find it... Suppose you have a region of interest ...
2
votes
0answers
92 views

Converting single point layer to buffered raster using QGIS?

I'm trying to use the proximity tool to create a distance raster from a single vector point. I found here: Calculating distance to points in QGIS and [d-3] Create Proximity Raster. However, I couldn't ...
2
votes
2answers
184 views

How do I assign a unique ID area to an area of a shapefile so I can rasterize it?

I have a shapefile (which can be downloaded from this dropbox link) that I'd like to rasterize so I can merge it with some non-geographic data (I have the code to do this already). Unfortunately, the ...
1
vote
1answer
108 views

Parallel rasterizing with GetCover option? [closed]

I'm trying to rasterize a shapefile in parallel using the solution from this post: Processing vector to raster faster with R However, this fails to give the correct answer when the GetCover = T in ...
1
vote
0answers
91 views

Create raster layer from points with PostGIS

I'm pretty new to this part of GIS; I have a layer of points that represent cell phone towers; with a given distance to simulate coverage, how can I transform that represented coverage into a raster? ...
1
vote
1answer
125 views

Create raster in QGIS using categorical attribute

I have been trying to create a grid, or raster, from point data which has a variety of classes (ie, I am trying to grid a categorical attribute). Strangely (to me) using Interpolate (SAGA, cubic ...
3
votes
1answer
337 views

Rasterizing vector shapefiles using multiple burn in values

I have a vector shapefile of a geographic area that contains several different object codes that I need to rasterize all as one image. I am working with QGIS, but the Raster>conversion tool seems to ...
0
votes
1answer
58 views

Create raster surface from points with barrier

I have a point layer, that represents an elevation in that given point. This I need to create a raster/surface/DEM from, preferably by interpolating by Nearest Neighbour method or some way Liniar ...