Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

Converting vector points to raster

I'm currently working through An Introduction to Species Distribution Modelling (SDM) Using QGIS and R by Colin MacLeod, and I am having issues with the first exercise, which requires me to convert ...
Gabriel Stroup's user avatar
0 votes
0 answers
12 views

How can I get `make_geocube()` match results from `terra::rast()` when rasterizing a tile represented as a polygon?

I am trying to create a template xarray raster using a perfectly square polygon vector file. The polygon vector file comes from the Landsat Collection 2 Analysis Ready Data tiling scheme (https://www....
mikoontz's user avatar
  • 315
1 vote
1 answer
58 views

How can I rasterize a vector object, while keeping it's height value?

It's a simple building, with a height of 60 meters. I tried using the vector-raster tool, but I ended up with a 40 GB object(?), that won't show up on the map. And then I used TIN interpolation (...
Isabella's user avatar
0 votes
0 answers
31 views

How to use gdal3.js for rasterization

I am trying to use gdal3.js to rasterize GeoJSON to GeoTIFF format in a vanilla JS web app but it is throwing the following error: Uncaught (in promise) TypeError: t.arrayBuffer is not a function ...
Moiyyad sufi's user avatar
2 votes
2 answers
48 views

gdal_rasterize giving different pixel values

I want to count the number of polygons (in this case, protected areas) within a raster cell grid of a specific resolution. To do so, I have tried different approaches in R but, due to the database ...
LT17's user avatar
  • 323
2 votes
1 answer
130 views

Cannot create raster given vector in QGIS

I have a vector which looks like below. I want to create a raster from this, with cells having 1 for roads and 0 for empty areas using QGIS (3.36.3-Maidenhead). I have tried tools like, gdal:rasterize,...
Tolga Evcimen's user avatar
1 vote
1 answer
25 views

"No cells left after removing cells without occurrences" despite having several multipolygons

I am trying to create a species richness raster in R, using the lets.presab() function from the letsR library, as follows: RichnessMap <- lets.presab(SpeciesSubsets) SpeciesSubsets looks as ...
Birdman's user avatar
  • 97
0 votes
1 answer
68 views

Shapefile not converting to raster file

I downloaded a river shapefile via OSM. I need to convert it to raster. However, when I use raster converter, it comes out empty. What do you think is the cause of this?
William24's user avatar
0 votes
1 answer
53 views

Replicating Esri's raster snapping using rasterio or GDAL

I have a legacy reference/snap raster (created using Esri ArcMap/Pro) and as part of my workflow I need to reproject multiple raster layers or rasterize polygon layers using rasterio or GDAL. I wrote ...
cpt_python's user avatar
0 votes
0 answers
30 views

Creating a building density layer from point data

I am trying to create a building density layer for large regions. For this reason, I cannot do a count per polygon over a grid (estimation was 70 days for the analysis) I have point data for buildings ...
jamiehk's user avatar
0 votes
0 answers
54 views

Vector to raster error (rasterize)

I have the problem, that there is always the same error when trying to use the tool rasterize (see below). I tried it in different Qgis projects and with several layers and I couldn't find any helpful ...
Michelle's user avatar
0 votes
1 answer
64 views

QGIS: Finding random point in rasters transformed in shapefiles

I have a (for me) quite complex series of tasks to perform. The final goal would be to select a series of random points where to perform an habitat monitoring. I am working in QGIS on a series of ...
FuzzyOperator's user avatar
0 votes
2 answers
91 views

Does GDAL rasterize used with polygons use the centre or top left of pixel?

I have found conflicting information on whether GDAL rasterize in practice uses the centre or top left of pixel when converting a set of polygons to a raster. Some posts have documented that the top ...
M C Lisa's user avatar
1 vote
0 answers
67 views

Rasterization of polygons - area covered different categories

I have a Shapefile of habitat type across Great Britain - I have split this large Shapefile into smaller categories by filtering in R. For each of these smaller categories I used the coverage_fraction ...
user240308's user avatar
0 votes
0 answers
48 views

Converting Vector To Raster

I have a polygon layer of Sassari region. The name of the layer is "ProtectedAreas_Sassaricomuni_mergedvector". I want to raster this by simply giving the value 1 if the green patches exist,...
Bilgeyts's user avatar
0 votes
0 answers
44 views

QGIS DXF points to raster

I have a dxf file that contains points with heights. When I import into a QGIS dxf file I don't see the elevation in the open attribute table. My goal is to get a raster from that dxf. However, after ...
GeoS's user avatar
  • 1
0 votes
1 answer
52 views

Proximity Map from Line Shapefile (Line to Raster)

I have this cycling route and I need a proximity map that shows the proximity to this route: I have the route as line shape, and I turned it into raster (using vector to raster). Following this exact ...
Bilgeyts's user avatar
0 votes
0 answers
32 views

Vector grid to raster error

I try to raster grid layer using layer attribute and I get rasterization error. Initially I have a layer with a grid and a line layer with several lines. The line layer has an attribute ("az"...
redhat's user avatar
  • 347
0 votes
1 answer
50 views

Rasterizing misaligned grids [r - terra]

I'm working with satellite data and trying to convert it to a raster in R. The downloaded product from NASA was vectorized on their end which is frustrating. The problem is that the satellite is ...
Kevin F's user avatar
0 votes
0 answers
61 views

QGIS rasterize with field as value, outcome only captures part of values in the field

I have a vector file with multiple polygons with a column named all_cert. I want to rasterize this data but everytime I do, the resulting raster file only contains pixels with values for certain areas ...
Evelina's user avatar
0 votes
1 answer
112 views

Raster layer doesn't match vector layer

I convert vector layer to raster layer using Geo Units. But result of rasterization doesn't match the source vector layer. Why is it hapenned? The layers have same CRS. Is it because pixel size? I ...
redhat's user avatar
  • 347
0 votes
0 answers
44 views

Adding conduits and barriers to friction surface in QGIS

I am in the starting process of A LCP archaeological project and am still new to QGIS and I've hit a issue. I am adapting the methodology of this: and have almost immediately hit a barrier. I am ...
Eath2468's user avatar
0 votes
1 answer
48 views

Rasterizing a Boolean vectorial file

When I try to rasterize a Boolean vector file in QGIS I just get the ones values, what can I do to get both values (0,1)? There is no "nodata" values in the file.
user's user avatar
  • 153
0 votes
0 answers
74 views

Using 'rasterize' to create raster of overlapping polygons

I have found similar questions, but most use different packages. I have a shapefile with 20 multipolygons, with a few attributes. All I want is to create a raster whereby each raster cell's value is ...
Beardedant's user avatar
1 vote
0 answers
87 views

From points to raster - how do I set a gaussian function with a cutoff

Context SMAP's user guide states: "We use Gaussian weighting to interpolate the L2B estimates onto the map grid with a search radius of approx. 45 km and a half-power radius of 30 km.". ...
J Lal's user avatar
  • 11
0 votes
1 answer
90 views

Rasterizing more than 11000 polygons in QGIS

I'm using QGIS 3.28.3. I have more than 11000 species ranges, which I want to transform into binary rasters (1 for species occurence, 0 for species non occurence), with one raster for each species. I ...
Spectron's user avatar
  • 127
0 votes
0 answers
26 views

Rasterization (Vector to Raster) in QGIS overwrites Maxima values of the vector

I am working on macroseismic intensity maps in QGIS 3.30. My data are in the form of a point vector. In this case, each point has an attribute corresponding to the maximum intensity which was ...
bryce's user avatar
  • 1
0 votes
0 answers
43 views

Rasterizing vector layer based on the polygon area in each grid cell

I have a (complicated) WGS84 vector layer, which I would like to rasterize to a target grid based on the total polygon area within each target grid cell. The target grid is a non-standard 1/12° ...
Plagioclase's user avatar
6 votes
1 answer
511 views

What could be causing these crazy pixel values when I rasterize a polygon?

Here's the weird output, looks like min and max possible values for the data type? Here's my inputs, all pixel values should be set to 0.
I'm not a robot's user avatar
2 votes
0 answers
37 views

QGIS: Problem to rasterize track

I'm not able to rasterize a GPS plot in QGIS (layer Chemins in red which is interpolation of GPS points) , the output is empty even though it works when I tried with a new simple layer with two line (...
user234137's user avatar
2 votes
0 answers
212 views

Efficient and quick way to rasterize very large polygon (20GB)

I´m currently working on a large (> 20 GB) vectorized dataset (Geopackage format) holding land cover classification information for an entire country. I´m looking for an efficient and quick way to ...
G. Arruda's user avatar
1 vote
1 answer
122 views

Creating raster layer with pixel values which are sum of overlapping polygons in single vector layer

I am using QGIS. I have a vector layer with about 600,000 overlapping polygons, each with an assigned risk value as attribute. I want to create a raster layer which shows the total risk value at each ...
I'm not a robot's user avatar
2 votes
0 answers
91 views

Using rasterio to rasterize vector data to a GCP referenced image

I am working with Sentinel-1 SAR images of a coastal area in ground range geometry (GRD product), which is defined by a geolocation grid of 10×21 ground control points. For further analysis, I need to ...
Christoph's user avatar
  • 143
0 votes
0 answers
161 views

Saving my Geocube object as a raster is way too big

I am rasterizing some polygon data with make_geocube and exporting the result as a .tif file. It works, but my file sizes are orders of magnitude larger (10-20x) what I am expecting them to be after ...
Vance's user avatar
  • 1
1 vote
1 answer
102 views

QGIS Rasterize tree polygons - giving priority to higher trees

I used points of trees and created buffers around them based on their canopy widths. I rasterized these polygons and burned tree height as a value (later to be used for shadow modeling). Important is ...
Mat_114's user avatar
  • 23
0 votes
0 answers
38 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
19 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
150 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-...
user avatar
1 vote
1 answer
37 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
461 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
69 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
46 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
124 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
727 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
101 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
1k 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
58 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
237 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
166 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
116 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
  • 97

1
2 3 4 5
10