Questions tagged [rasterization]

The process of turning a vector into its raster equivalent

Filter by
Sorted by
Tagged with
6
votes
1answer
3k views

Rasterize (Vector to raster) ERROR 6

I'm trying to convert a polygon to raster. This error pops up: ERROR 6: At least one of -3d, -burn or -a required. What am I missing?
0
votes
2answers
153 views

Rasterized EPSG 4326

I'm looking for a rasterized world map using the EPSG4326 projection, but haven't been able to find any ones online (or at least decent quality ones that appear that the top left does correspond to -...
1
vote
0answers
26 views

How to avoid rasterized vector to cover minimum area? [duplicate]

I rasterized vector data(Lines) with QGIS. The resulting raster covers minimum area, but actually I want it to cover more area for my purpose(See image). How can I make the resulting raster data ...
1
vote
2answers
5k views

Shapefile to raster conversion in QGIS

I am new to GIS and I want to do Suitability Analysis for Landfill Site Selection in QGIS. I had a Land-Use map in jpeg format, from which I started by making shapefiles of each kind of input layer ...
4
votes
2answers
832 views

QGIS - point to raster - Summing attributes as value of raster

I'm trying to produce a raster layer. The aim is to show the summed heat consumption of every cell (100*100m). I created an point layer with all buildings and an attribute with their heat ...
1
vote
1answer
847 views

Gdal 2.1.3 Rasterize “kml not recognized as a supported file format”

I am really new to gdal and have a real simple kml file. I tested this kml file in google earth and there was no problem displaying it. But when I try to rasterize it I get the following error: "...
2
votes
1answer
1k views

How gdal_rasterize works - how it interpolates / resample values?

I have huge number of points saved as shapefile. I created an empty raster file with low spatial resolution. Next, I applied gdal_rasterize on mentioned .shp and used low resolution raster as ...
1
vote
1answer
381 views

GDAL: can I rasterize a layer's FIDs without having an explicit field id column?

I would like to rasterize a layer by FID without adding an FID field to the layer. Is this possible with GDAL? Something like like this: raster = gdal.Open(raster_path, gdal.GA_Update) vector = ogr....
0
votes
0answers
97 views

Reprojecting shapefile to raster projection

I need to rasterize my shapefile. This can only happen if both raster and shapefile are in same projection. I don't know if they are in same projection. How do I compare the projection of these two ...
3
votes
2answers
61 views

How to add a rasterised line feature to raster via raster calculator in ArcGIS

I want to sum different layers (Population Density, Land Use, Rivers, Roads) to derive an Exposure map for landslides using the raster calculator in ArcGIS. First I converted the two line shapes (...
7
votes
1answer
2k views

How to speed up extract(rstr,shp) ? - R

I am trying to create a function that takes in a shapefile and a binary (1's and 0's) raster, with the same extent, and extracts the values from the raster. Once this occurs I desire to sum up those ...
1
vote
0answers
119 views

How to output rasters other than 16-bit with the Arc Polyline to Raster tool?

Using ArcGIS Desktop 10.4.1, I am attempting to convert a FGDB line feature class to a raster using the Polyline to Raster tool. The input feature's value field contains integer values that range ...
2
votes
1answer
4k views

Creating a raster and setting extent in R

I am trying to create a raster with 922 columns and 444 rows at 0.06250-degree spatial resolution. However, after I set the following extent the resolution of the resulting raster comes out to be 0....
4
votes
1answer
1k views

Python GDAL RasterizeLayer option parameter

I'm writing some code that's supposed to take multiple multipolygon layers and merge them into 1 raster. I can load in the datasets just fine and render them to an image (although I use this just for ...
5
votes
2answers
2k views

Using Rasterize tool in QGIS?

I've been following the steps in the book "An intro to using gis in marine biology, supplementary workbook seven". I'm trying to create a presence-absence map by turning the data layer of dolphin ...
1
vote
0answers
45 views

Georeferenced vector file to raster file problem [closed]

When I rasterize the vector file it keeps getting an error 6. How do I manually put a -3d,-a, or -burn value? I am only a beginner. Feel free to ask for clarifications about my problem.
4
votes
3answers
9k views

How to convert file .shp to .tif using ogr or python or gdal

I need to convert files. I'm trying to use gdal_rasterize gdal_rasterize -b 1 -burn 0 -l file file.shp work.tif and the output is the following: ERROR 10: Pointer 'hDS' is NULL in '...
2
votes
1answer
519 views

How to rasterize geojson polygons such that the contour of the polygons appear?

I know I can use raterio rasterize to have the outside of polygons as 0's and the inside as 1's, but I Would also like to have the boundaries (as 2's?) so I can separate the different polygons.
1
vote
1answer
32 views

Preserving uniqueness for overlapping points when converting from points to raster?

I'm trying to optimize outflow points based on lowest elevation within some tolerance. Using the SnapPourPoint function which does exactly this, but outputs a raster file. I've been converting this ...
3
votes
0answers
349 views

Object given is not a Python function - gdal.RasterizeLayer

I'm running into this error and I'm not quite sure what the error means. Novice here, operating out of jupyter environment, and trying to burn the vector layer of roads (road_lyr) into the raster ...
1
vote
1answer
57 views

Converting polyline to raster with varying cell value along shapes?

I have a polyline file with start and end elevations. I'm trying to convert this to a raster which will have as values a gradient between the start and end elevations along the line. Is there any ...
3
votes
2answers
413 views

Rasterizing vector layer with PostGIS?

I have a vector layer with 2498 features (houses) that I want to rasterize/produce a raster image from but can't figure out how: Column MARK_Z = is Meters above see-level for the base of each ...
2
votes
0answers
143 views

Is elevation MCDA possible in QGIS? [closed]

Taking into account topology and existing building heights, would it be possible to do a MCDA and examine where densifying through new construction would be most profitable*, assuming that new ...
3
votes
0answers
595 views

Problem Rasterize QGIS

I have a shapefile with one point (starting point of a rockfall) and want to rasterize this to do further calculations. When I rasterize it into a Zero-Raster-File (called "startgrd", which is DEM*0),...
1
vote
0answers
100 views

Rasterize solid 3D-building blocks with QGIS

Stockholm city provides 3D building blocks as open vector data. I want to rasterize these solid cubes to be able to perform a multi criteria analysis. But no matter which rasterize-command I try in ...
1
vote
1answer
565 views

Rasterizing lines with “gdal_rasterize” in R return no result and status 1

I am using gdal_rasterize in the gdalUtils package to convert lines in a Shapefile to a raster. library(gdalUtils) src <- "D:/Test/sample.shp" dst <- "D:/Test/raster.tif" raster <- ...
1
vote
1answer
1k views

mbtiles to geojson or geotiff

I have a remote sensing data in geotiff (input_data_rs.tif) format. I want to get corresponding ground truth from open source map (e.g. roads). I was able to download the mbtiles for the country. Is ...
1
vote
0answers
227 views

Different output from rasterize

I have to convert from vector to raster so I used the Raster/conversion/rasterize tool. On my first try I used the Width (1447) and Height (2538) from the reference raster layer (1985clasification) on ...
9
votes
1answer
4k views

Processing vector to raster faster with R

I am converting vector to raster in R. However the process was too long. Is there possibility to put the script into multithread or GPU processing in order to do it more faster? My script to ...
5
votes
2answers
10k views

Rasterizing shapefiles with GDAL and Python?

I am trying to rasterize a shapefile, and write values from a specific column of the shapefile into the resulting GTiff. Here is what I've done so far, but that only creates a GTiff of zeros. from ...
1
vote
1answer
65 views

Lining up cells from two raster datasets

I am using ArcGIS 10.4.1 to convert a polygon feature class to a raster dataset and I would like the cells to line up with an existing raster layer. I am running the feature to raster tool and using ...
5
votes
1answer
814 views

Calculating the percentage cover of multiple polygons

I am creating a habitat map for a woodland dependent species. I have multiple woodland polygons. Across the landscape the density of woodland varies widely and I would like to show that difference. I ...
5
votes
1answer
615 views

How to run gdal_rasterize with sql option?

I'm running gdal_rasterize via a python pipe. When using the -l option, the raster is created just fine but I can't manage to get -sql option to work. Well my raster will be created but consists only ...
1
vote
1answer
3k views

Creating raster layer from data frame in R?

I have created a data frame which I need to convert to an image. This particular data frame is measured 174, 209, 36366 (nrow, ncol, ncell) respectively. This data frame is created and stored in R and ...
3
votes
1answer
952 views

Calling gdalogr:rasterize algorithm in python console in QGIS?

I'm trying to rasterize a simple line-vector layer. I can do it by using QGIS GUI, but I want to do the same with python console. Unfortunately it always gives back an "Error: Wrong number of ...
2
votes
0answers
215 views

Converting vector layer to raster with cell size same as other raster using QGIS?

I am a student and was taught by my professor in ArcMap but he wants us to repeat the process in QGIS. And i dont know how to set cell size in rasterize (vector to raster)in QGIS just like in ArcMap. ...
2
votes
0answers
38 views

Convert lat/lon points to gridded panel dataset?

Suppose I had a dataset that looked like df. Could someone show me how I would I summarize this panel dataset into a panel by km x km grids in R? df <- expand.grid(decade = seq(1940, 2010, 10), ...
0
votes
2answers
127 views

Rasterization of a polygon

I want to have a raster representation of the river, so that I could further analyse combining other raster data. I tried extract the DEM, polygon to raster and resample. But the results are not good ...
1
vote
1answer
414 views

gdal.rasterizeLayer in QgisPython results in Nan values

I have a vector layer projected in WGS84. I would like to use gdal.rasterizeLayer() from the python console to convert it to a raster. I would like to burn values from a field. I followed the gdal ...
1
vote
0answers
516 views

QGIS GRASS: Error when converting vector to raster [closed]

I am trying to convert a vectorial layer (a grid of regular points with values, representing probabilities, associated to each point). I tried to use QGIS, but I got this error: ERROR 1: Attempt to ...
5
votes
2answers
2k views

Convert vector point data (shp) to raster (tif) using QGIS

Overall Question: How can I get the rendered tif image to keep the modifications seen in the image produced by map canvas? I am writing a standalone Python script. I have simplified my code below ...
6
votes
1answer
637 views

Rasterize in QGIS using point as centroid (not vertex)

I'm attempting to make the full switch from ArcGIS to QGIS, but there are a few snags I'm hitting along the way, one of which is in the GDAL "Rasterize" function. My process goes like this: I have a ...
3
votes
1answer
701 views

Understanding resolution when rasterizing in R?

I'm creeping into building surfaces - useful for a number of public health projects - and can't seem to make sense of what's happening with the resolution and raster building process to get what I ...
4
votes
1answer
557 views

raster::rasterize set wrong values with enclosed polygons

Similarly to this post rasterize (R package raster) fail to rasterize island polygons? the rasterize function in the raster package is giving me problems with enclosed polygons. In my case, some ...
2
votes
1answer
116 views

Point to Raster Arcmap - incorrect pixelvalues?

I am having a problem using the arcmap point to raster tool. I have x/y coordinates for a set of data, and 1464 (2 months worth of hourly data) separate files to convert from an excel with X/Y/value ...
2
votes
1answer
330 views

Rasterize points in a map : result is not leasible. How to make the raster (points) bigger?

I have a vector layer (points) that I rasterized based on one attribute of the vector layer. I chose the GRASS GIS 7 command : v.to.rast.attribute. The raster layer appears in the map, but is not very ...
2
votes
0answers
227 views

Non-HTML circle text labels on Leaflet map

I need to save image of Leaflet map with polygon, multi-polygons, circles and text below every circle. I have geojson file with circle and polygon coordinates (lat and lng). I managed to get image of ...
1
vote
1answer
79 views

Storing Lat Long Ranges in Tables

Has anyone tried to store nation-wide lat/long ranges as a look-up table? For example: If you had a polygon dataset that covered the entire US (for example, county polygons). And you wanted to look ...
2
votes
0answers
90 views

Rasterizing Shapefile, using other shapefile as Mask

I have a shapefile (ShapeY) of European extend and want to rasterize each time only a certain area of the shape (ShapeX) (i have the shapes indicating the prevailing extend) with python and QGis. ...
2
votes
1answer
59 views

Error in rasterToPolygon trying to get several coverage layers

I have a very strange problem: I am trying to get a raster with coverage from 0 to 1 in each cell for types of vegetation, I started with a raster of vegetation type, but I needed a raster with 12 ...