Questions tagged [rasterization]

The process of turning a vector into its raster equivalent

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

Rasterize points by 'most frequent' in R

I have a series of spatial data points that I want to convert to a raster using the R function rasterize. The data I want represented is a factor value, so I want to represent the most frequently ...
1
vote
1answer
30 views

After converting vector data to raster with GDAL in Python, I get completely black TIFF file

I am trying to convert data from vector to raster with GDAL rasterize using by Python. I want to output raster format as TIFF, but the result TIFF opens completely black. I am writing code benefit ...
-1
votes
0answers
16 views

Rasterize time series spatial data as stack [closed]

I have daily time series rainfall spatial points data for 5 years, I would like to convert these data to raster format as a daily stack for all 5 years. How can I convert these daily time series data ...
0
votes
1answer
32 views

Preparing data for polygon to raster?

I am doing my GIS course term project in which I am integrating 3 kinds of map with index overlay method to see how much heat stress level is on my walking trail. To do it I have the tree canopy ...
1
vote
1answer
39 views

Rasterizing all intersected cells when rasterizing line layer in QGIS

I have a line layer that I want to rasterize. I run the Rasterize (vector to raster) tool in QGIS Processing to do so. However, the output is lacking in that it doesn't capture each cell that the line ...
0
votes
0answers
30 views

Rasterize: Best way to burn string values into raster (string to real) (QGIS)

I have to rasterize a polygon layer. Unfortunately the values of the field I have to burn into the raster has a variety of string entry's like "L239x" or "a403" (case sensitive!). RAT (Raster ...
0
votes
0answers
20 views

Manual Generation of Rastered Images for a TMS

I'm looking to generate rastered images for overlay on a Leaflet map. I have a large amount of latitude/longitude points with a value associated with each point. Think of them as polygons with a ...
1
vote
0answers
34 views

Creating raster displaying graduated Distance to polygon or feature using QGIS

I am trying to create a raster which displays the relative distance of a pixel to a set of polygons of a specific value. I have satellite derived fire scar data going back for the last 20 years. For ...
1
vote
0answers
66 views

Converting Vector (.shp) to Raster (.tiff) using Python GDAL library

I'm trying to convert a vector shapefile to a raster tiff file. I adapted the source code from Python Geospatial Analysis Cookbook by Michael Diener. The code works for line and polygon shapefiles but ...
0
votes
1answer
50 views

Rasterize vector based on list values in Google Earth Engine

I would like to convert polygon (as featurecollection) that has the attribute 'Name' which contains string value of plantation types, namely 'Rubber', 'Mango', 'Coffee'. However, the .reduceToImage ...
0
votes
1answer
31 views

How to burn coordinate point of polyline to the pixel value while converting it from vector to raster

I am trying to plot a proximity raster for secondary roads in a particular area. What I have is a set of polyline representing the roads. Now, I want to create a proximity raster based on the polyline....
0
votes
0answers
14 views

Polyline to Raster - Thicken overlapping lines

I have a featureclass with around 300 polylines. Since the all follow a route network to a single point, as they approach this point many of them overlap. What i want to do is to rasterise the ...
1
vote
0answers
46 views

QGIS Rasterize - Use highest value in cell as burn in value

I am trying to create raster layers of presence/absence bridges in a project area to use as inputs for habitat suitability models. I am using 15 m x 15 m cell size. The presence of bridges is ...
4
votes
0answers
110 views

Rasterize/Filter with Burn and Weight variables in QGIS

Using QGIS 3.10.1, I am attempting to rasterize some demographic polygons, and then apply a filter (Gaussian) to create a smooth/graduated surface. This works fine for some of my values (e.g. total ...
5
votes
2answers
161 views

Using GDAL tool rasterize with QGIS so that points represent center of grid

I want to convert point data into a grid and used the gdal tool rasterize. The tool works but unfortunately the result looks like this. The converted point does not represent the center of the grid ...
1
vote
1answer
44 views

How to specify pixel resolution when converting feature collection to image in Earth Engine

I have a feature collection and I would like to convert it into a raster image. I would like the resulting image to have 30m spatial resolution. How can I use the reduceToImage method to assign ...
0
votes
0answers
39 views

Creating DEM from contour or point shapefiles in QGIS [duplicate]

I'm trying to make a DEM tiff file from elevation shapefiles that I have in QGIS. I have both contour shapefiles and XYZ-point shapefiles but I can't seem to make the DEM. I've tried using SAGA but ...
2
votes
0answers
155 views

Rasterize GeoJSON or Shapely Geometry?

I am trying to rasterize a GeoJSON or shapely geometry but it does not rasterize all the geometry (some of it is not in the TIFF-file). I tried gdal_rasterize -burn 255 -burn 0 -burn 0 -ts 4950 4900 ...
2
votes
1answer
51 views

Is it possible to use a Gaussian kernel over a polygon layer?

I just started to work in QGIS and I'm new to GIS in general. I have a polygon layer map with some attributes assigned to the polygons. I also have a point layer with some cities that lie over the ...
1
vote
1answer
47 views

Rasterize shapefile to raster based on a raster

I'm wondering if it's possible to rasterize a shapefile based on raster cells as shown below. I've tried several algorithms on qGIS, but they haven't the option to create a raster based on another ...
3
votes
0answers
65 views

R raster / rasterize creating GeoTIFF with Null Value “grid lines”

I am attempting the seemingly simple task of converting a .csv with lat, lon and population values into a .tif (raster). Here's my R code: geoName <- read.csv("/pathToData/geoName.csv") ...
1
vote
1answer
42 views

Rasterise 3D polyline using z-values to interpolate cell values

Using ArcMap 10.5.1. I have a ZM polyline composed of 3x vertices, with the vertex z-values representing water level at wells. I am looking for a tool to rasterize this polyline, using the z-values ...
0
votes
1answer
29 views

Rasterization - choosing attribute from attribute table for cell value of raster - why?

When a polygon shapefile is converted into a raster, an attribute from the shapefile's attribute table must be chosen for the cell value of the raster. I am pretty sure the above statement is ...
2
votes
1answer
96 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
41 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
49 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
506 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
145 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
36 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
119 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
194 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
35 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
94 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
66 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
47 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
156 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
41 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
2answers
812 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
127 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
167 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
44 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
57 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
505 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
2answers
405 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
159 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
80 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
1k 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
86 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
29 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
41 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
2 3 4 5 6