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

Questions tagged [rasterization]

The process of turning a vector into its raster equivalent

2
votes
1answer
29 views

QGIS3 saved Raster layer is “skewed” or aspect ratio is wrong

I'm trying to export two layers based on the current view or "extent": A black and white "raster" derived from some vector data A map layer (Bing, Google, osm, etc) The issue I'm having is that the ...
0
votes
1answer
57 views

QGIS 3.4 - Rasterize creates layers with 1.79769e+ 308 min/max values

I have tried searching on here for my issues, read many threads, but to no avail. Essentially, I am trying to convert a line feature to a raster so that I can run proximity on it - because I want to ...
0
votes
0answers
32 views

Rasterizing a point layer without using an attribute field

I am following the "QGIS by Example" text book and a task requires that a point layer is rasterized using the following GDAL code gdal_rasterize -l layer name -burn 1 -a_nodata 0 -te coordinates - ...
-1
votes
0answers
68 views

Exporting image from QGIS 3 always crashes

No matter whether I "download" the picture or copy it to my clipboard, this always happens, regardless of its size and resolution. Has anyone managed to figure it out, and find a solution to this ...
0
votes
1answer
38 views

How to perform shapefile/raster integrated functions

Description: I'm having trouble with some Raster/Shapefile manipulation. My problem is that I have a shapefile that I would like to use to update my rastervalues with. The shapefile has multiple ...
1
vote
0answers
25 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 -...
3
votes
1answer
63 views

Rasterize (vector to raster) QGIS 3.4

I am trying to rasterize a vector with the QGIS 3.4 rasterize tool (not saga or grass tools). I prefer using this tool cause it is much faster. The values which i would like to burn are found in the "...
1
vote
0answers
59 views

Rasterizing shapefile with rasterio and gdal gives all cells 0 values [closed]

I am trying to rasterize my shapefile (20 polygons) with rasterio and fiona and turn the new raster into a mask for clipping. I need to rasterize my all polygons in my shapefile and turn on mask ...
1
vote
1answer
40 views

Convert a vector file to an RGB raster using gdal_rasterize without filling polygons

I am trying to convert a vector file that includes polygons to an RGB raster using gdal_rasterize without filling the polygons. Is there a way to do this? For example, I use the following command to ...
1
vote
1answer
93 views

Inconsistencies in R rasterize polygons, packages raster and sf

I was trying to calculate species richness from IUCN distribution data in R, and I decided to check my results with two different methods, both of which rely on rasterize function from the raster ...
0
votes
1answer
38 views

Raster from a set of Points keeping the resolution

I have a database with some points covering the earth surface and I want to build a raster (GeoTIFF using gdal_rasterize) which mantains the same spatial resolution of the input points (so without ...
0
votes
1answer
35 views

ArcMap “Polyline to Raster” output is empty greyscale raster

I have a polyline shapefile of streams that I am attempting to convert to a raster using the "Polyline to Raster" conversion tool. However, rather than outputting a raster with distinct stream pixels, ...
1
vote
1answer
54 views

How can one create a binary image from a FeatureCollection in Google Earth Engine?

I have been trying to find a solution for this for quite some time now based on ee.FeatureCollection.reduceToImage, but I don't seem to be able to find it... Suppose you have a region of interest ...
2
votes
0answers
43 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
2answers
93 views

How do I assign a unique ID area to an area of a shapefile so I can rasterize it?

I have a shapefile (which can be downloaded from this dropbox link) that I'd like to rasterize so I can merge it with some non-geographic data (I have the code to do this already). Unfortunately, the ...
1
vote
1answer
48 views

Parallel rasterizing with GetCover option? [closed]

I'm trying to rasterize a shapefile in parallel using the solution from this post: Processing vector to raster faster with R However, this fails to give the correct answer when the GetCover = T in ...
1
vote
0answers
60 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
1answer
54 views

Create raster in QGIS using categorical attribute

I have been trying to create a grid, or raster, from point data which has a variety of classes (ie, I am trying to grid a categorical attribute). Strangely (to me) using Interpolate (SAGA, cubic ...
3
votes
1answer
183 views

Rasterizing vector shapefiles using multiple burn in values

I have a vector shapefile of a geographic area that contains several different object codes that I need to rasterize all as one image. I am working with QGIS, but the Raster>conversion tool seems to ...
0
votes
1answer
37 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
2answers
96 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 ...
2
votes
1answer
117 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
56 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
32 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
84 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
178 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
46 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
46 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
21 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
52 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
32 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
32 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
26 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
49 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
2answers
150 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
39 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
90 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
69 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
110 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
154 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
27 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
131 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 ...
1
vote
1answer
234 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 ...
2
votes
1answer
410 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 ...
2
votes
1answer
149 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
239 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
110 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
163 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
749 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
84 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 ...