The process of turning a vector into its raster equivalent

learn more… | top users | synonyms (1)

11
votes
4answers
9k views

Burning stream network into DEM layer using ArcGIS Desktop?

I am working on a DEM that in an area where there is little relief. I would like to 'burn' the river network into the DEM so I can calculate flow accumulation and flow length accurately. I am ...
11
votes
2answers
4k views

How to split shapefile per feature in Python using GDAL?

is it possible to split a shapefile per feature in python? (best would be a solution where i can temporarily save the resulting vector objects to the memory instead to disk). The reason: I want to ...
8
votes
1answer
4k views

GDAL RasterizeLayer does not Burn All Polygons to Raster?

I am trying to burn a shapefile to a raster using GDAL's RasterizeLayer. I pre-create an area of interest raster from a different shapefile, given a specific pixel size. This AOI then serves as a base ...
7
votes
3answers
1k views

Creating raster or vector raster from DEM point file?

i have a point shape of 75.000 elevation points in a regular 5 m grid. We now want to create a polygon grid with the elevation points as "centroids". Unfortunately, all attempts to do so fail: I ...
7
votes
2answers
3k views

Convert several SpatialPointsDataFrames to raster

There are 100 SpatialPointsDataFrames in my Workspace. I loaded them on this way: filenames <- list.files(path="", pattern="XYhectareTravelTimes_ez+.*shp") for(i in ...
5
votes
5answers
1k views

Convert line shapefile to raster, value=total length of lines within cell

I have a line shapefile representing a road network. I wish to rasterize this data, with the resulting values in the raster showing the total length of the lines that fall within the raster cell. The ...
5
votes
2answers
2k views

Issue Trying to create Zonal Statistics using Gdal and Python.

I am trying to create zonal statistics using Python and Gdal. I have a polygon shapefile and a raster file, and in order to do so, I am using a piece of code I found in StackExchange. The raster and ...
5
votes
1answer
686 views

Turning multiple vector layers into one raster in ArcGIS Desktop?

I want to make a raster out of the multitier view I have in ArcMap 9.3.1 . The layers in my ArcMap come from several datasets. I know there is a 'Feature to Raster' tool, but it converts one ...
5
votes
1answer
786 views

Create raster with grid cells values based on area covered by polygons

I have a polygon data with area covered by the forests (data is here - https://www.dropbox.com/s/zgckliydalljw6a/sp_data.zip?dl=0). I want to convert polygons to raster. The value of each grid cell ...
5
votes
2answers
381 views

GDAL (or other open-source) equivalent of Arc's Point To Raster Tool

I'm trying to convert a python script that relies on arcpy into one that only relies on open source modules, but I'm having some trouble. The bulk of my processing lies in one Arc tool "Point to ...
4
votes
2answers
160 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 ...
4
votes
2answers
5k views

Converting point grid to raster using GRASS?

If I load the original .csv file, I then have a map of the African continent represented by 14069 data points covering it at 40x40km resolution. Each data point shows solar radiation means across the ...
4
votes
1answer
94 views

Rasterise heights from a 3D linestring

I have a 3D network of streams represented using linestrings with Z-coordinates. I would like to rasterise this feature, where the raster values represent the linearly interpolated Z-values between 3D ...
3
votes
2answers
911 views

How to convert a point layer to a raster grid that shows the frequency of points per cell in QGIS

I have a point layer that shows the distribution of a species. Is it possible in QGIS to convert this point layer to a raster grid in which the value of each cell corresponds with the amount of points ...
3
votes
1answer
30 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 ...
3
votes
1answer
163 views

Rasterize vector file using gdal.RasterizeLayer() without losing attribute information in python

Is it possible to rasterize a vector file with gdal.RasterizeLayer(), saving attribute as Raster value ? Like gdal_rasterize can do with : gdal_rasterize -a attribute -ts rasterXsize rasterYsize -l ...
3
votes
1answer
2k views

convert vector (point shape) to raster (tif) using python gdal lib in qgis

I'm trying to convert a vectorlayer (point- shapefile) to a raster-dataset (tiff) using python gdal-library in qgis. On Graphical UserInterface I simple choose the menue "raster->conversion->...
3
votes
1answer
187 views

Rasterize vector while adjusting extent and resolution to reference raster?

I have a vector file which I want to rasterize and adjust its resolution to the reference map, in QGIS. I tried spatial_sync_raster function in R to set all the rasters into the same resolution as ...
3
votes
2answers
262 views

How to create a hectare raster from vector input data in QGIS

I have a vector file containing points with an attributed value (no. of employes at that location). I need to create a hectare raster with the sum of employes for each grid cell. I'm using QGIS and ...
3
votes
1answer
406 views

Area-weighted rasterising of polygon data

I'm looking for any GIS tool to do detailed rasterising of polygons. I've checked GDAL's gdal_rasterize command (and API), and ArcGIS's Polygon to Raster tool, but they only rasterise 1 attribute per ...
3
votes
0answers
27 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
0answers
132 views

point feature to raster with count of unique points

I am using ArcGIS 10.1 with Python 2.7 I have a point layer with thousands of points that each hold an id value of its owner. One owner can have multiple points, meaning that points can have the same ...
3
votes
0answers
730 views

Difference between feature to raster and polygon to raster [duplicate]

(I'm using Arc 10.1) I'm trying to rasterize a data set. I have a shapefile with geographic coordinates (GCS_GDA_1994) which I want to convert to a raster with 100m grid cells. So I need to project ...
3
votes
0answers
84 views

Rasterization tools for vector datasets with styles

I have hundreds of Personal Geodatabases and I want to create one georeferenced TIFF for each one. Each PGDB has the same feature classes ('CotourLines', 'Hidrography', etc) for what I have some ...
3
votes
1answer
83 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
1answer
491 views

Choosing Point to Raster vs Feature to Raster in ArcGIS for Desktop?

I am converting point vector data to a raster dataset using nearest neighbor. I am using arcgis 10.2. The first step is to use the conversion toolbox, but there are two possible options: Point to ...
2
votes
2answers
267 views

rasterize produces a raster full of NA values

I am having trouble converting a polygon to a raster. The desired raster is created, however all its values are equal to NA. require(rgdal) require(raster) #download a shapefile with 2010 census ...
2
votes
2answers
85 views

Export vector layer to raster in QGIS

first of all I am not experienced in GIS. I've tried if a few examples/tutorials similar to my problem to see if they could be applied, but yet nothing works. Problem: I have a Shape file imported ...
2
votes
1answer
139 views

Combining many polygons from multiple datasets into one raster

I am a beginner in ArcGIS. I have a query regarding merging many polygons to form one big polygon, and then rasterizing it. The polygons are from varied datasets and represent different ...
2
votes
1answer
94 views

What units are used in GRASS Rasterize?

What units are used in GDAL Proximity or GRASS Rasterize? - 'new size' parameter
2
votes
1answer
45 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
416 views

Why processing.runalg(“gdalogr:rasterize”…) is not creating out files when running in the QGIS 2.6.0 console?

I want to use the QGIS python scripting functions to turn to rasterize a point vector using many different dimensions. Right now my code looks like this: import processing RasterPixelSize = (10.0,...
2
votes
2answers
189 views

QGIS Layer Style - Adding intensity/color if elements overlay

I have a layer with thousands of points. I have been asked to represent this layer in way that can be easily seen the level of concentration of points in the layer. So when there is much point ...
2
votes
1answer
2k views

Convert a SpatialPolygonsDataFrame to raster using rasterize function

I'm trying to convert my map (a SpatialPolygonsDataFrame) into a raster, using rasterize function, here is a bug that I don't understand... > class(parcel) # this is my map [1] "...
2
votes
1answer
48 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
1answer
183 views

Why are there strange horizontal lines in raster data?

I have a feature class (stored in a file geodatabase) containing information on land use for the Amazon rainforest. It is very detailed and looks like this I need to convert this shapefile to a ...
2
votes
1answer
133 views

how do i get a GDAL(using gdalwarp) clipped layer projected in pseudo mercator ESPG:3857 to not be shifted?

how do i get a GDAL rasterized layer projected in pseudo mercator ESPG:3857 to not be shifted ? i have a vector layer projected in ESPG:3857,after rasterizing using this command: gdal_rasterize -...
2
votes
0answers
37 views

QGIS GRASS: Error when converting vector to raster

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 ...
2
votes
0answers
37 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
48 views

Create a raster dataset containing the number of returns from a las file? [duplicate]

I already created DEMs, DTMs, DSMs from a LiDAR (LAS) file with a little help from the internet. However, right now I'm kind of stuck in my research. I want to create a raster file which contains ...
2
votes
0answers
136 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
1answer
45 views

FME 3D forcer not accepting user parameter

I'm creating a work bench to turn a polygon dataset into a raster and then adds it to various existing rasters. I want to use a parameter so I only need to create one workspace and the user can select ...
2
votes
0answers
671 views

Rasterize shapefile using another raster's size and resultion

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 ...
1
vote
2answers
275 views

Rasterizing polygons with the function “gdal_rasterize” in R

I'm using the function gdal_rasterize in R (package gdalUtils) to convert a polygon shapefile into a raster. Here is my code: r.test <- gdal_rasterize(src_datasource="df.shp", dst_filename="test....
1
vote
2answers
96 views

What error am I doing when rendering OpenStreetMap roads and buildings in Minecraft?

I'm trying to create a Minecraft map of the Ernst Reuter Platz in Berlin. For this purpose, I'm using OpenStreetMap data. This is what the place looks like on a 2D map: When I render the roads and ...
1
vote
1answer
5k views

How to convert a regular point grid to raster? [duplicate]

Possible Duplicate: How to convert a point grid to a raster? I´d like to convert a regular grid (25 meter) of points (XYZ) to a raster. I have tried the GRASS-tool r.in.xyz but I always get a ...
1
vote
1answer
275 views

How to turn shapefiles into raster and aggregate them into one raster

For example i tried this but it doesn't work rast_a<-raster(extent(shp_1)) res(rast_a)=100 rsh<-rasterize(shp_1,rast_a) rast_b<-raster(extent(shp_2)) res(rast_b)=100 rshs<-rasterize(shp_2,...
1
vote
1answer
308 views

Rasterization of point vector in QGis: how to align the resulting raster to an existing one?

I have a point shapefile, with no associated .prj file, that I have to rasterize. Each point should be transformed into a pixel of 30x30 size aligned to the pixels of a Landsat image (the point file ...
1
vote
1answer
143 views

Problem rasterizing

I am trying to rasterize a shapefile using the "rasterize" tool in qgis. The problem is that the resulting raster doesn't seem to rasterize correctly... The teal and purple lines show water flow, ...
1
vote
1answer
454 views

syntax error when using gdal in python console QGIS

When I run the following code in the python console in QGIS I get a syntax error: import osgeo.gdal gdal_rasterize [-b 1] [-burn 255] [-a Pixelkost] [-te 170000.2 168000.27 177999.8 177999.8] <...