Questions tagged [rasterization]

The process of turning a vector into its raster equivalent

Filter by
Sorted by
Tagged with
1
vote
2answers
19 views

Use QGIS to export shapefile as raster to use as mask

I have a shapefile that is a set of polygons. I would like to export it as a black and white image to use as a mask. I'm not incorporating height data (the shapefile only holds 2D data), but encoding ...
1
vote
1answer
31 views

How to rasterize polygons using GDAL commands in python?

I have the following polygons shapefile consisting of polygons of the five boroughs of New York City from "NYC Open Data", linked here: https://data.cityofnewyork.us/City-Government/Borough-...
0
votes
0answers
25 views

How to use GDAL for calculating raster distance?

I am trying to take a shapefile and run individual raster calculations on each polygon using GDAL commands in OSGeo4W Shell. I have a polygons shapefile, "Polygons.shp", with let's say 250 ...
2
votes
3answers
85 views

Rasterizing polygons in shapefile using GDAL

I have the following polygons shapefile consisting of polygons of the five boroughs of New York City from "NYC Open Data", linked here: https://data.cityofnewyork.us/City-Government/Borough-...
0
votes
1answer
32 views

Problem with Rasterize tool (Vector to Raster)

I am not able to rasterize shp file with Rasterize tool. I keep getting this error : Could not reproject layer extent: Could not transform bounding box to target CRS. I have selected following ...
1
vote
1answer
18 views

Creating raster layer from vector layer keeping its original symbology colors using ArcMap

I need to get a raster layer from a vector layer using a tool called "Polygon to Raster". My problem is that when I use this tool, the polygon's colors are lost, and the raster obtained is ...
2
votes
1answer
58 views

Converting GDAL command line statements to Python

I am trying to carry out the task of sending each row/polygon from a single shapefile to its own unique raster. I so far use GDAL commands through the OSGeo4W Shell like so after navigating to my ...
0
votes
1answer
34 views

Calculating species richness of multi polygons by rasterizing them first using R

I have a shapefile of 4 phyla (4 polygons for each class). Each contains multiple species ranges inside it. This means I have data for almost 200 species in these 4 polygon. My data look like this (...
0
votes
0answers
19 views

Error when attempting to rasterize vector layer in QGIS "ERROR CODE 127"

I am trying to rasterize a vector layer of data, a pretty simple function in QGIS on my MacBook and it is popping up with an error message which I included in the screenshot below. I have had this ...
2
votes
1answer
18 views

Rasterized SpatialPointsDataFrame returns NA

I have rasterized a SpatialPointsDataFrame object, but the created RasterLayer returns NA. > #create spatial attributes > xmin <- 624748.7 > xmax <- 669548.7 > ymin <- 640557.8 &...
1
vote
1answer
49 views

Converting shapefile into raster with desired pixels 1km²

I have one shapefile and I want to convert into 1km by 1km pixels in QGIS. Because my raster image is of same resolution so I want to merge and see how many houses are in one cell. I rasterize my tiff ...
0
votes
0answers
15 views

gdal.RasterizeLayer works with one set of TIFFs but not with another where I use a gdf created with osmnx

I have the following functions I'm using. Warning: They are fairly large (actually just one of the TIFFs is). Could it be a size issue? import time import numpy as np import os import rasterio import ...
1
vote
0answers
32 views

Using information from vector file in QGIS raster calculator

Let's say I have a DTM and two vector shapefiles with zone A and zone B polygons. I want to add 10m to every point in the raster within zone A and I want to subtract 5m for every point in zone B. Is ...
2
votes
0answers
26 views

How to get equal size cells when using rasterize in QGIS on slanted points

I'm trying to get nice, centered cells on every point. I'm using the tool rasterize in QGIS. I have gotten the method to work with uniform point data, however, I am having more trouble with slanted ...
3
votes
1answer
77 views

How to create 3×3 pixel from one point in QGIS

I need 135 raster values of raster from 15 points. So, I want 3×3 pixels (9 raster values) from each point. To make them, I tried "Rasterize" to convert points as shown below. (In this ...
-2
votes
1answer
69 views

Rasterize point layer error in QGIS [closed]

As advised, I have reprojected the point layer (Project CRS- WGS84 EPSG: 4326) and then trying to rasterize (Vector to raster) the point layer using different combination of pixel and georeferenced ...
1
vote
1answer
43 views

Raster Calculator not using specified field

I'm trying to do a multicriteria evaluation in ArcGIS Pro in which I rasterize a polygon using the Polygon to Raster tool and subsequently use that raster in the raster calculator to calculate the MCE....
5
votes
2answers
132 views

Rasterizing overlapping buffers in QGIS

I have a vector layer of multi-ring buffers in QGIS, where each ring contains a different cooling intensity value for a green space, at distance intervals of 30 meters moving away from the green space ...
4
votes
1answer
138 views

Rasterizing only the border of a vector polygon

I have a layer of very 3 x 3 m square polygons. I would like to rasterize just the border of the squares, so the interior cells just have 'nodata' values, and you can see layers below it. When I ...
0
votes
1answer
38 views

Rasterizing the values of linear features in QGIS

I'm trying to rasterize a linear shapefile in QGIS. Each linear feature has a count value attributed to it, so ideally I create a raster where each pixel has the summed count values from all lines ...
1
vote
0answers
19 views

Classifying multiple layers (vector or raster depending on what's easier) to one final layer distributing the different features weighted

I'm using QGIS and currently I'm doing a Map Project and therefore I preselected every building that is available depending on the purpose. Then I wanted to do a second criteria which values which ...
1
vote
0answers
32 views

Conceptual question on comparing rasterized data with vectorized (polygons) data

I've got this doubt on how to best proceed with the following situation: I would like to compare two datasets, one (model_data) is a raster (NetCDF format), with lat, lon and time as coordinates, ...
1
vote
1answer
123 views

How to burn polygons into raster layer in QGIS?

I am trying to take a land surface temperature raster layer and “burn” polygons into it, so that they show up in the LST layer. I know there are methods for burning streams/rivers into raster DEMs, ...
0
votes
0answers
17 views

How to create a raster containing attribute frequency from a multipolygon shapefile using a set grid in ARC Pro (or r studio)?

I have a multipolygon shapefile of species distributions containing data in the attribute table on the threats each species face according to the IUCN threat categories. The distributions of some ...
1
vote
0answers
24 views

Rasterizing vector file in EPSG:4326 using GDAL/OGR in Jupyter notebook

I was trying to rasterize the vector file in Python. I used this code: gdal.Grid("trial2.tif", "merged2018-19.gpkg", zfield="h_li", algorithm="nearest") (the ...
0
votes
1answer
45 views

Creating Raster Dataset from Point Values using ArcMap

I am using ArcMap. I'm trying to re-create a map similar to the attached image showing rain gauge locations with a raster dataset that estimates the rain in the surrounding areas based off the ...
0
votes
1answer
101 views

Point file to Raster conversion using "geocube"

Problem 1: Whenever I generate raster from a point using “geocube” I am noticing a shift in raster i.e., pixel center is not in line with the input point. Buffer snippet used is as follows Note: If ...
0
votes
1answer
20 views

Error when rasterizing

I am trying to create a .asc raster file from shapefiles (which are all in the British National Grid coordinate system) but I keep getting the following error: GDAL execution console output Output ...
3
votes
0answers
40 views

Rasterize single polygon-features of a Vectorlayer with Python

What I am trying to do is looping trough the active vector layers features and create for each polygon a rasterfile. My approach is using gdal:rasterize in every iteration, but it wont work at the ...
0
votes
0answers
17 views

Convert point features to raster with multiple attributes (ArcMap)

I have point features that I am converting to a raster. Currently I use the Point to Raster (Conversion) tool from the ArcMap Toolbox. This allows me to export one field (attribute), however I'd like ...
0
votes
0answers
45 views

Using raster::rasterize()

When I do raster::rasterize() with fun = sum, I expect that the sum of all cells in the output raster should equal the sum of values of all polygons in the input. This is the behavior I see when ...
0
votes
0answers
42 views

Trouble with converting polygons (shapefiles) to raster on QGIS

I have a shapefile layer And I wish to convert this to a raster: This layer was geocoded over RADARSAT SAR images, example picture below: I go to Rasterize (Vector to Raster) using GDAL: I input the ...
0
votes
1answer
40 views

Rasterize and get only pixels whose center falls within the feature's geometry

How do I rasterize a feature collection to the scale and projection of a raster? For my output I need only those pixels whose center falls within the feature geometry. Not pixels partially (<50%) ...
2
votes
1answer
68 views

Python GDAL RasterizeLayer: Select attribute value in case of shape overlap

I want to rasterize a MultiPolygon Shapefile layer in Python and use values of one column to write to the raster. However, I cannot preclude that features of the Shapefile overlap. Is there a way to ...
1
vote
1answer
117 views

Anti-aliased rasterization of vectors in QGIS?

I have some polygons that I want to rasterize, but in a fairly low-resolution grid (cell size 250x250m). The raster values of the area inside the polygons should normally have the same value (100), ...
1
vote
1answer
32 views

Limiting raster processing area by geometry

I have a map with a vector feature dataset of soil types, and a feature dataset of points. I want to transform the soil dataset to raster, but I only need the results around the points (a buffer with ...
0
votes
1answer
42 views

Vector (polygon) to raster conversion

I am trying to convert my vector file (polygons) to raster by assigning a 10x10 size to the pixel cells. However it gives me this error: I used as "Field to use for a burn - in value" a ...
1
vote
2answers
38 views

ArcPy.da.SearchCursor not cursor-ing

I am using ArcMap 10.8.1. I have shapefiles that are a series of overlapping polygons of drone imagery footprints. I want to loop through each shapefile, and for every shapefile loop through and ...
1
vote
0answers
37 views

Converting point vector with many fields to multi-band raster

I have a shapefile of evenly spaced points which I'd like to convert to a raster. In QGIS, I know I can do this with Raster > Conversion > Rasterize (Vector to Raster). However, I see the ...
2
votes
1answer
74 views

Merge overlapping polygons to elevation data

I'm new to GIS and need to create a shortest path avoiding buildings. The buildings are represented as polygons in a shapefile. In QGIS I created a buffer polygon for each building, corresponding the ...
1
vote
0answers
22 views

Combining 2 raster data sets with different extent, resolution and point regularity

I'm having trouble merging two raster datasets that have different resolution and extent, and have irregular point data. Below is info on each raster. I need these datasets to merge according to the ...
1
vote
1answer
37 views

Rasterizing vector creates raster with all cells containing same value but different color using QGIS

I have a vector layer which i am trying to rasterize. It is smaller than the study area. The end goal is to create a layer with euclidean distance from said rasterized vector layer. When rasterizing, ...
1
vote
2answers
31 views

Converting a slightly warped polygon lattice with irregular edges to a raster

I have a problem which has been frustrating me for a while. I have a lattice of polygons which is slightly warped due to unknown CRS transformations & distortions, enough so that the side lengths ...
0
votes
1answer
28 views

Only sections of line (LineString) rasterized in QGIS

I would like to rasterize the above intersected line string. Each colored section of the lines represent a different attribute value. I would like to rasterize each section of the line; however, the ...
1
vote
1answer
134 views

Cannot Rasterize in QGIS from points?

This is the error I get: GDAL command output: ERROR 4: `file:///C:/Users/User/OneDrive/Raredirt/Home%203%20Data/home%203%202011%20jademungplanting.csv?type=csv&maxFields=10000&detectTypes=yes&...
2
votes
0answers
57 views

GDAL rasterizelayer function 's additive rasterizing option (add=True) is not working, what am I doing wrong?

I am trying to rasterize a set of polygons with integer features. Since I am very new using raster data as an initial step I am rasterizing the the polygon centroids first. In the output array I want ...
0
votes
0answers
20 views

Calculating raster cell for total length of street segment with weighted-overlay on centrality value using R

I have completed the centrality calculation from the OSM database. I want to convert the data into a raster format for crossing analysis with other variables in R. I have followed the Q&A at ...
3
votes
1answer
185 views

GDAL Rasterize with "where" option in Python

I've got a shapefile with set of points with a column "test_class" of String type in the attribute table. I need to rasterize these points with setting pixel's value for each class and ...
0
votes
2answers
57 views

Raster extent based on SpatialPolygonsDataFrame generating incorrect extent

I'm trying to rasterize data from Berlin's average price per parcel data. I've downloaded the shapefile from their data portal using an API with a function that generates an sf object, and then ...
1
vote
1answer
87 views

Rasterizing polygons results in gaps that don't appear in the original polygons

I'm getting gaps when rasterizing polygons and was hoping to get an idea on the best solution. The first picture is the polygons and there doesn't appear to be any visible gaps on the edges of the ...

1
2 3 4 5
8