The process of turning a vector into its raster equivalent

learn more… | top users | synonyms (1)

11
votes
2answers
3k 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
2k views

GDAL RasterizeLayer Doesn't 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
964 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
1k 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
1answer
111 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
3k views

How to convert a point grid to a raster?

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
89 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
4answers
219 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 ...
3
votes
2answers
293 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
2answers
1k 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 ...
3
votes
2answers
195 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
0answers
51 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
73 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
0answers
253 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 ...
2
votes
1answer
36 views

Point to Raster vs Feature to Raster

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
1answer
71 views

What units are used in GRASS Rasterize?

What units are used in GDAL Proximity or GRASS Rasterize? - 'new size' parameter
2
votes
1answer
83 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 = ...
2
votes
2answers
56 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
49 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
1k 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
53 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
85 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
29 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
21 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
175 views

Difference between feature to raster and polygon to raster

(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 ...
1
vote
2answers
76 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 ...
1
vote
1answer
194 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] ...
1
vote
1answer
371 views

R: data.frame to raster object error

I have a data.frame consisting of a points with an associated continuos value and their X,Y coordinates. Altough it's not stored anywhere it's projection is a Lambert conformal conic. I think this is ...
1
vote
1answer
2k 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 ...
1
vote
1answer
112 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 ...
1
vote
1answer
58 views

Rasterizing vectors in SAGA via saga_cmd - how to set the exact cellsize, extent (basicly grid system) based on other grid?

I'm doing some batch analysis using SAGA's saga_cmd. Basicaly I have a lot of grids and shapes (mainly generated in SAGA by vectorization of raster classifiaction results). Now I'm trying to make ...
1
vote
1answer
139 views

How to set the output extents of rasterization in QGIS

I am trying to rasterize a bunch of vector based shape files in QGIS. All these files are covering certain types of ground use in a city (houses, street, open field,...). I need these files to be ...
1
vote
1answer
782 views

Rasterize vector layers with different extents into identical raster grids with QGIS

I am working on a quite simple spatial potential analysis using QGIS. I have some ArcGIS knowledge, but I am new to QGIS. My task is to identify the functional inner city of a region based on ...
1
vote
0answers
31 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 ...
1
vote
1answer
25 views

gdal RasterizeLayer gives different extent to arcpy PolygonToRaster

I have an existing arcpy script which uses PolygonToRaster_conversion to convert a polygon shapefile to raster (tiff). I am now exploring GDAL/OGR and have used the cookbook approach to carry out the ...
1
vote
0answers
49 views

Feature to Raster Error

I am attempting to rasterize a point layer using the Feature to Raster conversion tool. Each attempt, I receive the following error codes: ERROR 010429: Error in GRID IO: CellLyrCreateInternal: ...
1
vote
1answer
21 views

Processing feature string fields to raster

I am using the GDAL python bindings. I am trying to rasterize a layer from an arcinfo coverage file, but the values I need to rasterize I have to calculate from string fields. OGR can not write to ...
1
vote
0answers
70 views

How to define the output raster resolution when rasterizing a vector?

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 ...
1
vote
0answers
15 views

QGIS rasterize a styled layer

I disabled information from a vector layer with a styledefinition. Is it possible to rasterize only the styled information in QGIS?
1
vote
1answer
39 views

Convert shapefile to multiple single-value TIFFs

I have a shapefile that is composed of multiple overlapping polygons that represent extent of habitats of certain species. Here is a 1 MB example of such file from International Union for the ...
1
vote
0answers
52 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, howerver, Geoserver has problems to correctly render some polygons. This is how the ...
1
vote
0answers
184 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
0answers
59 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
1answer
76 views

QGis points distance from shore in metres

I have a grid of depth points in the Irish Sea that i'm trying to add other data fields to, in this case distance from shore. I've tried both of these suggestions to no avail, but am having some ...
0
votes
3answers
2k views

How to rasterize a vector map?

I am looking for a way to create a raster grid from a vector map. I have a map consisting of shapefiles which I want to export as a raster with UTM coordinates. I was thinking of something using the ...
0
votes
1answer
24 views

Problem with attribute field in rasterizing tool QGIS

I am trying to rasterize a vector layer using the "rasterize tool" in QGIS... The problem is that there is no "attribute fields" available to choose from (even though they exist!)...
0
votes
1answer
20 views

Location based service with normal image

We have an image for a park which has been rendered like this: Now we want to add some geographic service based on the data: building an Android Application with the following features: Display ...
0
votes
0answers
20 views

Creating raster from points that conforms to a reference geometry using PostGIS, python, QGIS

Please forgive my ignorance, I'm fairly new to processing GIS data. My bread and butter is statistics but I'm now working on a project that requires more data preprocessing and cleaning than I've ...
0
votes
1answer
41 views

PostGIS Raster ST_AsRaster: error when creating raster from TIN surface

ERROR: rt_raster_gdal_rasterize: Could not create OGR Geometry from WKB ********** Error ********** ERROR: rt_raster_gdal_rasterize: Could not create OGR Geometry from WKB SQL state: XX000 ...
0
votes
1answer
146 views

gdal_rasterize error: “attempt to create 0x0 dataset is illegal..”

I'm trying to use gdal_rasterize to convert a polygon shapefile into a raster, where the value comes from the 'COVTYPE' attribute. I try calling gdal rasterize like so (I'm calling from within a ...