Questions tagged [rasterization]

The process of turning a vector into its raster equivalent

66 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
2k views

Rasterize shapefile using another raster's size and resolution

Rasterizing a vector (shp) I face the following problem: I want my output file (the rasterized vector) to have the same resolution and dimensions as an existing raster. If I understand the interface ...
4
votes
0answers
38 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.)...
3
votes
0answers
294 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 ...
3
votes
0answers
460 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),...
3
votes
0answers
254 views

Generating raster (spec. GeoTiff) out of mesh file (.ply)?

I created mesh file using OpenDroneMap program out of 100 geotaged jpgs, and i would like to know for a way for generating raster image out of this .ply file? Has anyone done this? Mashlab has the ...
3
votes
0answers
349 views

Creating a DTM from Contours, via the command line or Python

I am looking to create a gridded DTM/DEM (Digital Terrain/Elevation Model) or TIN (Triangulated Irregular Network) from a set of contours. There are a number of similar questions on both this site ...
3
votes
1answer
147 views

Soft edges for interpolation output

I've built the following heatmap using QGis 2.8.2's Raster->Interpolation feature. It looks almost the way I want: The background layer is Google Maps tiles by using the OpenLayers plugin. ...
2
votes
0answers
23 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)...
2
votes
0answers
92 views

Converting single point layer to buffered raster using QGIS?

I'm trying to use the proximity tool to create a distance raster from a single vector point. I found here: Calculating distance to points in QGIS and [d-3] Create Proximity Raster. However, I couldn't ...
2
votes
1answer
113 views

Rasterizing with target in QGIS?

With QGIS 2.18, the "rasterize" command offered the possibility of defining a raster target. I used this option to "update" a existing raster with the value of a polygon layer. I'm not able anymore ...
2
votes
1answer
177 views

Generate tiles from leaflet polygons

I have a set of shapes drawn in Leaflet (using Leaflet.draw). I need to rasterize these into a tileset and export it because I need to use the images elsewhere. My initial idea was to go through ...
2
votes
0answers
184 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), ...
2
votes
0answers
220 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 ...
2
votes
0answers
87 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
0answers
145 views

How to use GDAL RasterizeLayer (python binding) -where flag

I am trying to use GDAL RasterizeLayer python binding, but I can not find a way to use the -where flag. The 'pure' GDAL command I am trying to run is: gdal_rasterize -b 1 -burn 0.00001 -where 'DN=...
2
votes
0answers
2k views

create image out of geojson (gdal_rasterize?)

Short version: I need to know how I can convert a .geojson-file to an according .png-file (or any other image format) long version: I have a .geojson which was created by gdal_polygonize from a .png ....
2
votes
0answers
347 views

Stretching of geometry when rasterizing vector data on Google Maps

I'll start with a quick backstory on what I am trying to achieve. I'm working on an offline Android GIS tool and people are throwing giant datasets at it. It converts these into Google features (V2) ...
2
votes
0answers
247 views

How to rasterize a vector data with style

I want to make a utility in c++ which can rasterize vector data with some specified style. I know about gdal_rasterize. But the problem with it is, we cannot specify the style details. Do we have a ...
1
vote
0answers
23 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 ...
1
vote
0answers
53 views

How to render vector data with muliple geometry types to georefrenced raster

I am using OSM vector data which has been converted into shapefiles. I have polygons representing buildings, landuse and lines representing roads as shown bellow: I want to assign some symbology to ...
1
vote
0answers
34 views

Getting TIFF with gdal_rasterize

How can I properly rasterize isolines with an absolute height value in QGIS 3? When using "gdal_rasterize" in the source code I got tiff with "holes", see image below
1
vote
0answers
157 views

Vector Rasterize Error

I am running QGIS 3.4.4 With GRASS 7.4.4 and I get an error while rasterizing a vector layer and I don't know why. The same error pops up while using GDAL->Rasterize(vector to raster) and while using ...
1
vote
0answers
122 views

QGIS: error in conversion from vector to raster

I've having troubles with the raster conversion from a vector polygonal file. This is the error in the log window: INFO GDAL execution console output ERROR 1: Wrong value for -...
1
vote
0answers
91 views

Create raster layer from points with PostGIS

I'm pretty new to this part of GIS; I have a layer of points that represent cell phone towers; with a given distance to simulate coverage, how can I transform that represented coverage into a raster? ...
1
vote
0answers
48 views

QGIS: Fill shapefile vectors with grayscale based on elevation

I am very new to this and feel like this is probably an easy answer, but after days of searching this forum I still am unsuccessful. I have shapefile data with elevation and I want to create a raster ...
1
vote
0answers
70 views

Selecting pixels in raster using polygon selection tool in QGIS?

I want to reclassify landcover image manually with respect to online imagery. I am looking for a software/plugin/script to manually select raster pixels using polygon selection tool and could be able ...
1
vote
0answers
46 views

Rasterize causes black background, need white to match BioClim data

I am using the rasterize tool to convert a polygon layer into a .asc or .bil raster layer. As it is a UK study, there is a lot of sea that when rasterized, turns black. I need it to be white to match ...
1
vote
1answer
190 views

QGIS 3.2 - Poor conversion from high-resolution vector to raster

I have a shapefile with polygons with several sizes, and I want to convert it to a raster with 30mx30m pixel resolution. Although I was able to obtain the raster with the pretended resolution (using ...
1
vote
0answers
59 views

Issue with gdalUtils vs. raster in gridding data in R

I have irregularly spaced data (XYZ) and I'm trying to grid it in R using 2 different libraries, gdalUtils and raster. I'd prefer to use gdalUtils as I have more options, but the output looks off. ...
1
vote
0answers
53 views

rasterize in qgis based on foreign table data

I have a few tables imported into QGIS as vector layer. These tables are linked to a vector SHP file with foreign keyas 1:M relation. So, the data structure is as follows: shp file linked to table1 ...
1
vote
0answers
130 views

Estimating processing time for rasterize or polygonize tools in QGIS?

I often rasterize or polygonize large layers (flood modelling results). Is there a way I can estimate how long the tool will take? Sometimes, I'm not sure whether it will take 10 minutes or 10 ...
1
vote
0answers
70 views

Rasterizing vector data for landscape permeability analysis

So I vectorized an area with 12 different categories/features. My intention is to use this in the future for calculating landscape permeability. I would like to know which steps I need to take right ...
1
vote
0answers
107 views

Add county attribute to gSSURGO soils raster

I have a high-resolution (10m cell size) raster of soils data for a US state. Pixel values are the map unit key (mukey) from gSSURGO. Every soil type has a unique mukey, but a given mukey can occur in ...
1
vote
0answers
114 views

Saga GIS at command line in OSGeo4W - 'shapes to grid' tool - sqlite input

I have been using the Saga 'Rasterize' plugin in QGIS to rasterize spatial data from sqlite format (road networks, and intersections) to tiff. I find this tool more flexible than the gdal_rasterize ...
1
vote
0answers
108 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 ...
1
vote
0answers
90 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
0answers
210 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 ...
1
vote
1answer
374 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
119 views

Polygon to Raster: Cells with multiple values

I'm trying to use R to rasterize a number of shapefiles and I'm having trouble dealing with cells on the edge of shapes, in other words the if a cell is partially covered by an NA value and partially ...
1
vote
0answers
88 views

How to correctly rasterize a polygon which crosses 180E longitude?

I want to rasterize a polygon wich crosses 180E lon with gdal_rasterize. The polygon is in the WGS84 projection. I used the following command: gdal_rasterize -burn 1 -of GTiff -ot Byte -ts 1500 1500 ...
1
vote
0answers
95 views

Polygon to Raster tool while keeping less than maximum values

I'm trying to convert a very large, detailed polygon to a raster with a coarser resolution in ArcGIS 10.1 using the polygon to raster tool. The value field is a percentage and the cellsize must be the ...
1
vote
0answers
67 views

Creating a contiguous raster stack from different sources (vectors and DTM bands)

This is a conceptual question I've been trying to implement for a while, and not being very good at raster/data processing or python I'd like to hear best practices in dealing with an extent such as ...
1
vote
0answers
195 views

Problems with rasterization through QGIS Modeler

My goal is to rasterize a vector polygon-based shapefile. Whenever I run in the modeler or even from the Processing Toolbox the Rasterize tool of GDAL, I receive a raster layer that's not good for me,...
1
vote
0answers
116 views

Point to raster: QGIS vs ArcMap

I have an equidistant point grid (0.5m) and created a raster from it in QGIS and ArcMap, with different results: QGIS: Raster -> Conversion -> Rasterize Result: raster, with points in the top left ...
1
vote
0answers
1k views

Convert polygon to raster and give value to null cells

Is there a way to convert polygon features to raster while also populating null cells with a specific value? As in, can I create a raster from a polygon shapefile and have the tool populate all null ...
1
vote
0answers
297 views

GeoServer does not render polygon properly

I am trying to a get polygon layer from CSV file. I chose to do it via rasterization and polygonization in QGIS, however, GeoServer has problems correctly rendering some polygons. This is how the ...
1
vote
0answers
561 views

Make a raster with pixel scale 100 by 100 meter with gdal_rasterize

I'm asking here, because, I've got great results last time. Here it is the next of my adventure with gdal_rasterize, I want to make a raster picture where each pixel correspond to a square of 100 by ...
0
votes
0answers
40 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 ...
0
votes
0answers
25 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 ...