Questions tagged [rasterization]

The process of turning a vector into its raster equivalent

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Rasterizer is not working properly

I am working with the following dataset: "https://drive.google.com/drive/folders/1HRUhNwsnxc64KYYQ4GqttbzvUleEl0uI?usp=sharing" . I would like to rasterize the vulnerability data. However, ...
Rahul Das's user avatar
0 votes
0 answers
11 views

Exporting raster from R changes the scale of extent

I have converted a shapefile to a raster in R using both terra and raster packages. When I export the raster and try to open it in QGIS the scale has shrunk making the whole shapefile only 1 m across ...
user3390486's user avatar
0 votes
0 answers
30 views

Creating Raster from CSV in QGIS - Huge filesize

I am attempting to create a magnetic map of Northern Ireland using this dataset (https://www.opendatani.gov.uk/@geological-survey-of-northern-ireland/gsni-tellus-regional-airborne-geophysical-survey-...
Nemactual's user avatar
1 vote
1 answer
29 views

Setting nodata from no polygon

I am trying to convert polygon to raster. The polygon class are from 0 to 4. There are many spot that no polygon. It means, I don't create polygon. I try use QGIS, using Raster > Conversion > ...
mega saputra's user avatar
0 votes
1 answer
38 views

Rasterize (vector to raster)_Resolution [closed]

I have been trying to use "Rasterize (vector to raster)" tool but I am a bit confused in the rationale of defining the Width/Horizontal resolution & Height/Vertical resolution with ...
Alaa Torkey's user avatar
0 votes
0 answers
40 views

Best settings to rasterize vectors in QGIS

I set 20*20 for my resolution, but the result just ran as below pixel size (the pixel size just become 3734.611609999999928,-4489.000505000003614). I just have no idea how to fix it. Below link is the ...
Bridgit Wu's user avatar
0 votes
0 answers
29 views

Converting polygon vectors into raster which is percent of pixel which is covered by polygon using ArcGIS Pro

I have maps of fish farms which I think might be relevant for my species distribution mode. However these maps are essentially just polygons drawn over individual fish cages. I’ve also got data on ...
PowellHall's user avatar
0 votes
0 answers
63 views

Converting polygon vectors into raster which is percent of pixel which is covered by polygon using QGIS

I’ve got maps of fish farms which I think might be relevant for my species distribution mode. However these maps are essentially just polygons drawn over individual fish cages. I’ve also got data on ...
PowellHall's user avatar
0 votes
1 answer
40 views

Creating “distance to” raster using QGIS

I imagine there’s a proper term for what I’m trying to do but, if so, I do not know it. I have a map of populated areas, as polygons. I can rasterise that, but what interests me isn’t the effect of ...
PowellHall's user avatar
1 vote
0 answers
44 views

Can I rasterize a population data (the population data is joint with district)

I have tried rasterizing the population data, which is joint to the district vector file. A new file is generated but I cannot see anything. Was just wondering if it's the symbology problem or the ...
user226033's user avatar
-1 votes
1 answer
83 views

Converting point data to raster layer using QGIS

I have a point dataset with Eastings and Northings in meters, each point regularly spaced at 1000 m apart with a value representing mean wind speed in that km squared. I want to convert this file to a ...
I'm not a robot's user avatar
0 votes
1 answer
21 views

Why does the function rasterize change my coordinates?

I need to import a shapefile into R and turn it into a Raster object. I am using the following code: map <- readOGR("path and file name") r <- raster(ncol=4001, nrow=4001) r <- ...
Chantel's user avatar
1 vote
1 answer
51 views

Rasterize (vector to raster) Error 4 - problem converting CVS point grid to raster [duplicate]

What I want to do: I have data with point-coordinates (integer) and composite probability (decimal). I want to convert this to raster data to be able to compare it to other layers. The cvs file is ...
kar-g's user avatar
  • 15
0 votes
2 answers
52 views

Rasterizing point data

I downloaded point-source data of the bumblebee distribution in Europe (Suppl. material 5 from https://doi.org/10.3897/oneeco.3.e28143). I'm only looking at the composite probability and want to ...
kar-g's user avatar
  • 1
1 vote
0 answers
59 views

Encoding a Boolean raster from polygons in QGIS

Polygons become invisible when rasterised, and raster has very odd values. Can I correct this so raster has 1 for polygon and 0 for non-polygon? I have drawn polygons over a feature for a species ...
Birdman's user avatar
  • 51
0 votes
0 answers
32 views

NodeJS map rendering libraries other than Mapnik

I'm looking for a library to call from Node that can render a fairly simple map (a single polygon, with text labels along edges) from GeoJSON to a PNG. I have a working solution using Mapnik, but that ...
Steve Bennett's user avatar
2 votes
1 answer
65 views

Problem by rasterizing in QGIS 3.28.4: resulting raster is only white

I have a shapefile with one polygon (trajectory of a rockfall). The last column contains the max altitude of the polygon (calculated with the function Zonal Statistics). I want to use the raster ...
Charlotte's user avatar
0 votes
1 answer
217 views

Python running out of memory when writing a raster using Rasterio

I am working on a script in which I am rasterising a vector using Rasterio. When I try to write the raster to a tif file, my cluster runs out of memory and crashes about 30 seconds after the job ...
A.N.'s user avatar
  • 143
0 votes
1 answer
56 views

How to make multiclass color mask based on polygons (osgeo.gdal python)?

I know how to make binary 1-band mask in python with osgeo.gdal.Rasterize(src, shp_file_name, burnValues=[1]) But what if I have several classes and want to make 3-band mask with different colors for ...
Nikita Artemenko's user avatar
0 votes
0 answers
45 views

Vector to Raster cannot get output resolution to approximate input points spacing

This issue is about the usage of the Raster > Conversion > Rasterize (Vestor to Raster) tool, including Georeferenced Units vs Pixels and the error when choosing Georeferenced Units. I am ...
kelleysislander's user avatar
0 votes
0 answers
21 views

Converting Multipoint Featurecolletion to an image considering the point as the centroid of the pixel in Google Earth Engine,

I have a Multipoint FeatureColletion and I want to convert it to an image putting the points in the center of the pixels. I converted points to pixels but there are not in the center of the pixels, ...
pegah hashemvand's user avatar
0 votes
1 answer
158 views

Rasterize sf object in R (desired cell values 1 and 0)

I have a vector file (multipolygon) in class sf, which I want to turn into a raster of a certain extent. I need all the areas where polygons are located to be value 1 and all areas where no polygons ...
talocodat's user avatar
1 vote
1 answer
53 views

Assigns geographical locations to the pixels in isolate drone image in R

In my example, I have a single dji image in *JPG: library(terra) single.image <-stack("https://github.com/Leprechault/trash/raw/main/DJI_0274.JPG") plotRGB(single.image, r = 3, g = 2, b =...
Leprechault's user avatar
0 votes
1 answer
55 views

Convert smoothened contour in QGIS ( vector) to raster for use in HECRAS

I have generated contours in QGIS using point data (AutoCAD file) and I had to also smoothen the contours and remove noises (smaller contours) from the contour generated. I need to get this contour ...
Usha's user avatar
  • 105
1 vote
2 answers
55 views

Deriving a new raster attribute layer from a polygon layer

I am trying to discern how I can accomplish the following at the command line with GDAL and could use some guidance. I have a GeoTIFF containing data from the National Land Cover Database and I would ...
Chris's user avatar
  • 151
2 votes
2 answers
127 views

How can I get 16 bit global elevation maps?

I'm a 3D artist working on a procedural planet generator, based on colour and height textures from real-life areas. I've been using the GeoTIFF files from NASA Visible Earth, but they all seem to be ...
Taliesin River's user avatar
1 vote
0 answers
87 views

Create a raster image from multiple vector layers within a specified polygon

In ArcGIS Pro 3.0 I am creating a map using 11 vector layers including point, line, and area features. I have it all symbolized and displaying nicely at the design scale, and would like to take that ...
Alex's user avatar
  • 21
0 votes
0 answers
27 views

Rasterising GOES-R Derived Motion Winds

I have CONUS Derived Motion Winds netCDF data from the GOES-R 17 satellite, retrieved from the AWS repository (specifically OR_ABI-L2-DMWC). I am trying to rasterise this into a GeoTiff (specifically ...
Soren Saville Scott's user avatar
0 votes
0 answers
22 views

Can't rasterize point shapefiles for OBIA python

I'm trying to realize an OBIA on a MSI. For this, I've generated shapefiles with the points and labels to link with the generated segments. I'm using this code: # modules import import ogr import gdal ...
solysombra98's user avatar
0 votes
1 answer
53 views

QGis - Multiple vectors into mulptiple rasters

I have a list of 50 vectors I need to rasterize on QGIS. Would you know if it is possible or if there is any script to run them in only one batch or do I need to do the vector>raster process to ...
Let Souza's user avatar
0 votes
1 answer
44 views

QGIS - How to check if a raster has same resolution as another raster with a different CRS?

I have an original raster file called SAM. This has a resolution of 0.0025 pixels, it was obtained using 100m resolution satellite. I have another raster called Global fire. This has a pixel ...
AhmedTech's user avatar
2 votes
1 answer
158 views

QGIS - How do I select features in a particular location precisely, the location is a raster

I have polygon data that is data retrieved across whole world, how do I focus this data on a raster map. Basically I want to select the features only in this area but I want it to match exactly this ...
AhmedTech's user avatar
3 votes
2 answers
217 views

QGIS - Converting Vector to Raster and back to vector to resample resolution of vector data

I would like to convert my polygon data into a raster file to change the pixel resolution and then would like to convert it back to polygon data since this will allow it to be resampled to another ...
AhmedTech's user avatar
0 votes
1 answer
122 views

Burning in multiple fields when rasterizing (vector to raster) using QGIS

I have multiple attributes in a vector file which is .shp that I want to convert to a raster, this is because I want to make it the same resolution of another raster file. I will then convert that ...
AhmedTech's user avatar
1 vote
1 answer
119 views

Convert points with x,y coords and value from to a raster image

I have a CSV file with xcoord,ycoord and pixel value from DEM. After I import it in QGIS, I take this table. I want to make a raster from this point layer. I tried rasterized (vector to raster), I ...
Kostas Pl.'s user avatar
0 votes
2 answers
418 views

SpatialPolygonDataFrame to raster while keeping categorical values

I have a SpatialPolygonDataFrame which I need to convert to raster in R while keeping the categorical values of the polygon. I have tried various approaches but I have always either lost the values or ...
Kris's user avatar
  • 3
1 vote
1 answer
165 views

How to properly use geocube geom parameter with crs other than 4326

I dont fully understand how to use the "geom" parameter in python geocube library with crs different than 4326, described here: https://corteva.github.io/geocube/stable/geocube.html#make-...
XDOLK009's user avatar
  • 183
2 votes
2 answers
232 views

Set snap raster in GDAL(C#) rasterize functions

I want to set snap raster for the function rasterize of GDAL, but I can not found. The options parameters are as the following code (C#). What is wrong? rasterizeOptions = new string[] { "...
yixing's user avatar
  • 21
2 votes
0 answers
64 views

Error on uploading CSV file as a raster

I'm using QGIS 3.16.15 to import .csv data file using layer>add layer> add raster layer. The data set have 3 columns (Northing, Easting, Elevation). All the data set have the same coordinate ...
khishen's user avatar
  • 21
3 votes
2 answers
485 views

What's the most efficient way to calculate line length per raster cell in R?

Problem I'm looking for an efficient, memory friendly to calculate total line (vector data) length per raster cell. The question of line length per cell has already been posed here in 2014 and a few ...
gosz's user avatar
  • 216
1 vote
0 answers
563 views

Terra: Setting the right resolution when transforming data frame to SpatRaster

I have a data frame which cell sizes aren't regular due to some statistic analysis and filtering, but for presentation purposes I need to transform the data frame back to a SparRaster. I don't want to ...
Corbjn's user avatar
  • 349
0 votes
0 answers
57 views

Analysing proportion land coverage per raster cell from polygon layers

I want to analyse the proportion of land use coverage of 12 different land use categories per area. The idea is to create a table as listed below, with the study area I have divided in cells, which ...
Roos's user avatar
  • 41
2 votes
1 answer
169 views

How to rasterize a featurecollection in GEE

I'm trying to transform the list of administrative level 1 defined in the FAO GAUL dataset into a Image using Google Earth Engine. I bump into the following error : image: Layer error: Image....
Pierrick Rambaud's user avatar
2 votes
2 answers
808 views

Calculate area weighted mean values of polygons for raster cells using R

Problem I want to rasterize polygon values and assign their weighted mean to raster cells. Weighting should be done based on the polygons' cell coverage. Problem visualized Calculation for grid cell ...
gosz's user avatar
  • 216
0 votes
1 answer
145 views

Count multilinestring elements crossing a raster cell in R

I have a shapefile with several MULTILINESTRING geometries, representing the borders of some species' distributions, and I want to count the number the number of species occurring in each cell. I used ...
M.S.'s user avatar
  • 75
1 vote
1 answer
143 views

QGIS rasterize does not cover full polygon

When I rasterize my polygon, it does not cover the upper part, as well as a small part in the bottom right. What is the reasoning for this, and how do I change it? I rasterized the following way:
tina's user avatar
  • 9
0 votes
0 answers
109 views

Creating mask layer to clip raster correctly from shapefile in QGIS v3.16.0

Problem: To create a mask layer to use clip raster by mask layer. I am facing problems with correct creating the mask layer. I use processing.run('gdal:cliprasterbymasklayer', {'INPUT':f'{gen_path}/{...
Ashish AJ's user avatar
2 votes
1 answer
70 views

How to find which raster cells are overlapped by polygons

(QGIS 3.22) I'm trying to compare a raster layer with a vector layer and find all the raster cells overlapped by a vector. Unfortunately, the polygons are much smaller than the pixels of the raster, ...
Carter Dills's user avatar
0 votes
1 answer
312 views

Rasterize a vector layer where pixels just need to include a vector inside, not necessarily on the center

QGIS(3.22) I'm trying to compare a vector layer to a raster layer by rasterizing the layer to the same pixel size as the raster and then using raster calculator. I just want to know which pixels in ...
Carter Dills's user avatar
3 votes
1 answer
1k views

Rasterizing and resampling a vector object using stars::st_rasterize() and terra::rast() loses values/data

I am currently struggling with rasterizing and later, resampling a vector object using functions from stars and terra. Let's start with the example dataset here: https://drive.google.com/drive/u/2/...
Vijay Ramesh's user avatar
  • 1,332

1
2 3 4 5
9