Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The process of turning a vector into its raster equivalent

1
vote
0answers
11 views

Is there any other way to rasterize vector than conversion > rasterize?

Conversion > rasterize isn't working or just very hard to use. Best result so far is black square. I just want to draw 2 pixels wide rasterized line across the vector.
0
votes
1answer
24 views

Create raster surface from points with barrier

I have a point layer, that represents an elevation in that given point. This I need to create a raster/surface/DEM from, preferably by interpolating by Nearest Neighbour method or some way Liniar ...
0
votes
0answers
15 views

Rasterizing/Building Overlays in R?

I'm currently attempting to build a grid-like dataset in R based of census data (at the block or block group level, but I imagine the method would be same for any level of granularity). My initial ...
0
votes
2answers
33 views

DEM from Vector to Raster in GRASS GIS

I am using GRASS GIS 7.4 and I have a DEM as points in a vector format and want to turn it into a raster. I tried using v.to.rast and v.to.rast3, but the elevation is not one of the attributes so am ...
1
vote
0answers
14 views

Populate raster cells with values from point vector [duplicate]

I have to populate a raster grid with values from a vector points. In particular I have a shapefile with points, and I need to create a raster with cell values given by the sum of an attribute of all ...
2
votes
1answer
34 views

Rasterise polygon layer using QGIS 3.0.3

I am trying to rasterise a simple polygon layer this file using QGIS but cannot get a sensible output. The documentation doesn't appear to have been updated for version 3 yet, and does not match. ...
1
vote
1answer
54 views

Get a raster composed of 0s and 1s

Novice with ArcGis, I would like to convert my Polyline dataset to a Raster with only 0s and 1s To this end, I used the Gis command "Polyline to Raster" and set the cell size small enough, so that ...
0
votes
0answers
31 views

Creation of a raster dataset from polylines

I face an issue with the Raster tool. I have Polylines that I want to convert to Raster. The spatial reference coordinate system is World Mercator (WGS 84). I used the "Convert Polyline to Raster" ...
2
votes
0answers
37 views

QGIS 3.2 Rasterize with a target

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 ...
0
votes
1answer
57 views

Polygon rasterization in QGIS 3.2

I want to elevate a certain area of terrain by 126 meters. I've created a polygonal shapefile layer with a decimal field titled "elevation" set to 126. My plan was to rasterize the polygon using GDAL ...
1
vote
0answers
35 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 ...
0
votes
0answers
16 views

Using rasterize in Qgis 3.2, how to keep the resolution from the vector points?

I am new to QGIS and I am struggling a bit. I have a list of coordinates With Z values that I have imported using the layer text import tool, the output I get is then points (vector). I would really ...
0
votes
1answer
20 views

Specifying XY extent when rasterizing using ArcGIS Desktop?

I'm making some maps for landscape genetics in ArcGIS Desktop 10.3 - raster maps of various variables (habitat type, river network, road network etc). I'm having trouble rasterizing a polyline road ...
0
votes
1answer
36 views

Rasterize shapefile to overlay on map uisng QGIS (or any other suggestion)

I'm developing an app to display a map in QGIS. The map data is from Bing Map servers. I want to overlay a shapefile on the map. I want the same visual display we see on QGIS. Like this So my ...
1
vote
0answers
17 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 ...
0
votes
0answers
23 views

Rasterizing 3 dimensional dxf to mask netCDF?

I have difficulty in rasterizing 3 dimensional dxf (single building) to mask netCDF using GRASS, Blender, or Qgis. I want the mask netCDF to have value 1 in interior of the building and zero value ...
0
votes
0answers
12 views

Python Rasterize Sum Variable

I'm trying to reproduce the R rasterize function in python to streamline my code and am having issues with summing multiple points in the raster. Essentially I want to sum the value of my variable for ...
1
vote
1answer
29 views

LecoS stalling - table not being generated

I'm trying to collect data along highway segments in northern Alberta. I took vector data from ABMI (http://www.abmi.ca/home.html) and rasterized this to work within LecoS. I had success in early ...
2
votes
1answer
44 views

Usage of interpolation methods with DEMs: Linear vs. natural neighbors

Using the ArcGIS tool "TIN to Raster" (3D Analyst Tools --> Conversion --> From TIN) to work on my Digital Elevation Model I was wondering about the interpolation methods. I can choose either or: ...
1
vote
0answers
34 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
19 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 ...
0
votes
1answer
39 views

Raster with wrong extents when using Polygon to Raster

I am trying to use the "Polygon to Raster" tool on a building extents polygon file to create a raster with the exact extents and cell size as an existing flood depth raster. Even though I have added ...
0
votes
1answer
61 views

Rasterize vector to presence-absence raster incorrect in R

I want to create a presence-absence raster out of a shapefile (vector) with the rasterize command of the R-package in R. Until now I only get wrong results. The raster should just distinguish ...
1
vote
0answers
76 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 ...
0
votes
0answers
15 views

Rasterizing curvilinear gridded data

I’m attempting to rasterize a NetCDF dataset that contains data on a curvilinear grid. The dataset has a 2D matrix of longitudes, a 2D matrix of latitudes, and several 2D matrices of data variables. I ...
4
votes
3answers
86 views

Remove background when using Rasterize in QGIS

I used Rasterize (vector to raster). The result is shown below. There is a bright yellow background around the map after I used Rasterize. I want to know how I can remove this. The value 0 can be ...
0
votes
1answer
120 views

Gdal RasterizeLayer Python

I'm attempting to rasterize a layer of a raster by using the different features inside a shapefile(In this case the different features are lines). The problem I am running into is that ...
0
votes
1answer
116 views

Rasterize Point layer Error: Wrong value for -outsize parameter

I am trying to create a Euclidean distance raster from a point layer (in QGIS 3.0.3). From reading up on this topic in this forum I found that I should rasterize the point layer first. I also ...
1
vote
1answer
87 views

Ordered Weighted Averaging problem

I want to do an Ordered Weighted Averaging (OWA) analysis using SAGA in QGIS (not by using pyqgis) as a suitability assessment for recreation/restoration of specific habitats. There's a number of ...
1
vote
1answer
75 views

Processing vector to raster faster with R on Windows

I tried this example Processing vector to raster faster with R on Windows, where the option "FORK" for makeCluster is not available. Defaults to "SOCK" or can be set "PSOCK". When running into the ...
0
votes
1answer
52 views

Rasterize shapefile according to another big raster using gdal_rasterize

I want to rasterize a shapefile into a raster according to another raster (97284, 154208, 15001971072 (nrow, ncol, ncell)). Since the raster is very big, I am using gdal_rasterize following the ...
0
votes
0answers
37 views

Set order of polygons to burn into a raster with GDAL?

I have intersecting polygons with an attribute that I'd like to burn into a raster with GDAL. In this simple example, the attribute Value from three polygons in one shapefile is to be transferred to a ...
0
votes
1answer
201 views

Rasterize a shapefile generate a black TIFF

I run the following codes in jupyter notebook to rasterize the shapefile: building.shp, but it generates a black TIFF, which in QGIS shows only 0 and nan values. Here are the source codes Could ...
2
votes
0answers
42 views

Creating raster layers, weighting them, and combining them in QGIS [closed]

I'm looking to create raster layers from vector layers, rescale them, weight them then finally combine them for a final result. I'm really not sure about the process to do this. On Arcmap it's ...
1
vote
0answers
27 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. ...
0
votes
1answer
45 views

ArcGIS points to raster conversion with multiple fields in the attribute table

I have 2,000 points each containing fields like day, month, year, time, brightness, name, serial, etc. But when I try to convert them to raster, only 1 field will be considered. Is there a way I can ...
3
votes
1answer
168 views

Convert gml to raster in QGIS

I have a dataset of type citygml (*.gml). It includes information about buildings and their rooftypes. you can find a sample file here: https://www.opengeodata.nrw.de/produkte/geobasis/3d-gm/3d-...
1
vote
0answers
36 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
83 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 ...
0
votes
0answers
54 views

gdal rasterizelayer fails

I have been trying to rasterize a shapefile with polygons in it. At some point it worked but then something changed and I do not know what happened. In the code below (a bit messy, I apologize) I ...
0
votes
0answers
31 views

Wrong rasterize a buffer shape after intersect with QGIS

I made two concentric buffers with 90-100km radius, from point shapefiles (hydroeletric dams here: http://maps.csr.ufmg.br/) cropped from Legal Amazon shape (http://www.dpi.inpe.br/amb_data/Shapefiles/...
1
vote
1answer
69 views

Rasterize Vector MultiLine

I try to rasterize a multiline data set (streets) from a PostGIS database using QGIS 2.18 and SAGA GIS rasterize tool. I managed to differentiate between street and not street but I'd need to ...
3
votes
1answer
123 views

Rasterize stuck in QGIS

I have QGIS 2.18.15 and I'm trying to make a raster layer from polylines or points. every time I start the process, it looks like it's working but won't really do anything (the cursor turns to round ...
2
votes
1answer
73 views

gdal rasterizelayer constant value

How do you rasterize a polygon layer into a raster so all cells covered by polygons (i.e. not NoData) will be set to a constant value? I do this to set cell according to attribute values: gdal....
1
vote
1answer
118 views

Rasterise vector into raster mask

I have world oceans vector layer in .shp format. It looks like this. This vector has only one feature, which represents world ocean. I need to create raster mask with 1 - ocean, and 0 - land. When I ...
1
vote
1answer
83 views

Adding a field with a unique value to vector layer in kml file (need this to burn values with gdal.RasterizeLayer)

I would like to create a field ID in my kml file, with a unique value so that I can use gdal.RasterizeLayer to burn the value to an image like this: gdal.RasterizeLayer(target_ds, [1], source_layer, ...
2
votes
1answer
140 views

Mapping data from coarse grid cells onto high resolution DEM (in QGIS)

I'm trying to figure out a way to map water depth data from a coarse triangular mesh cell onto a high resolution (HR) raster (in .asc format). My coarse model and the raster are 2D. I created a ...
1
vote
1answer
61 views

Count number of different occurrences in a cell

I have points that correspond to the observation of different species. These point are grouped in taxonomic orders (for those not familiar with the term, just imagine that a few hundred species are ...
1
vote
0answers
57 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 ...
0
votes
2answers
253 views

Error message when attempting to convert Landuse polygon to Raster in QGIS 2.18.14

I may be doing something obviously wrong, but I'm trying to convert a landuse polygon to a raster file for later use in QGIS 2.18.14. I've used the Rasterize function within QGIS succesfully ...