Questions tagged [rasterization]

The process of turning a vector into its raster equivalent

Filter by
Sorted by
Tagged with
2
votes
1answer
98 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
247 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
0answers
215 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 ...
1
vote
1answer
66 views

Storing Lat Long Ranges in Tables

Has anyone tried to store nation-wide lat/long ranges as a look-up table? For example: If you had a polygon dataset that covered the entire US (for example, county polygons). And you wanted to look ...
2
votes
0answers
85 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
1answer
53 views

Error in rasterToPolygon trying to get several coverage layers

I have a very strange problem: I am trying to get a raster with coverage from 0 to 1 in each cell for types of vegetation, I started with a raster of vegetation type, but I needed a raster with 12 ...
1
vote
0answers
116 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 ...
3
votes
0answers
437 views

QGIS create raster from CSV and find raster index [duplicate]

I have a CSV with about 2 Mio. entries with X and Y coordinates WGS84 and many attributes. The X and Y coordinate are the south west coordinate of 100 meter by 100 meter grid over a country. But the ...
2
votes
2answers
540 views

QGIS Convert vector classification map into raster

I tried to convert vector classification into raster file for accuracy analysis following these suggestions My vector data is like this: However, none works The first one, interpolation, resulting ...
2
votes
0answers
137 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=...
0
votes
2answers
96 views

Converting dimension feature into image using ArcObjects? [closed]

I have a task to convert dimension feature into image with ArcObjects. I need to get real image that I see in ArcMap (with right size and spatial reference, of course) instead of turning feature ...
1
vote
0answers
83 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
115 views

Rasterize (R package raster) fails to rasterize island polygons? [duplicate]

I am having problem in rasterizing a polygon shapefile: "island" polygons (I mean polygons which are totally included into a larger one) are ignored and do not appear in the raster. My code is: seg &...
3
votes
2answers
3k 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
1k views

Failure of the code calling the function “rasterize” in R: NAs or no slots

I have some problems to convert a shapefile into a raster. I used the function rasterize (package raster) but all raster values are equal to NA. Following the answers to this question rasterize ...
4
votes
1answer
2k 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 ...
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
1answer
301 views

Arguments error when running LineDensity scripts in arcpy [closed]

I'm trying to use LineDensity tool on polyline features. The shapefile is small and includes some invalid geometries. The code I use is an adaptation of an ArcGIS Help script. Here is my code: ...
1
vote
3answers
229 views

Polygon to raster. How to keep same values?

I have a polygon with values 3, 6, 9, 12, 15, 18, 21, 24, 27 an 30. These are the time it takes for the firetruck to reach certain destinations. Now i want to compare these to another raster that have ...
3
votes
1answer
5k views

How to rasterize an object of class SpatialPolygonsDataframe in R

When I read a polygon shapefile into R using rgdal, it was imported as an object of class SpatialPolygonsDataframe. I need to rasterize the polygon, but the rasterize{raster} function requires it to ...
2
votes
2answers
392 views

Export vector layer to raster in QGIS

I have a Shapefile imported into a QGIS project as layer. And I have created a Style for that layer using a Column from the attribute table. To name it I have grouped several landuse-classes to a ...
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 ...
2
votes
0answers
60 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 ...
1
vote
1answer
417 views

Rasterizing getCover not working in R?

Are there any known bugs with the getCover argument in the rasterize function? (R package 'raster'). or has anyone got a fix for the following: I have a series of landcover polygons, here is a small ...
3
votes
0answers
251 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 ...
1
vote
2answers
207 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 ...
3
votes
0answers
343 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 ...
1
vote
1answer
807 views

Reverse gdal_rasterize (-i option) does not work

When I use: gdal_rasterize -b 1 -b 2 -b 3 -burn 255 -burn 255 -burn 255 polygon.shp tiff.tiff I get a new tiff with a white hole in it with the shape of the polygon shp. However, when I use the ...
1
vote
0answers
843 views

How to Convert from Point to Continuous Raster in ArcGIS 10.1? [duplicate]

I have a vector point dataset that I would like to convert to raster. The point-to-raster conversion tool creates a raster grid with spaces between each grid cell. I want to create a 'continuous' ...
0
votes
1answer
94 views

Problems when trying to Convert polygon to raster

Well, I'm having a problem when trying to convert polygon to raster on ArcGis 10.0. Here is the thing: Ther output raster is much smaller than the input polygon, and the coordinate system is diferent ...
2
votes
1answer
847 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 ...
2
votes
1answer
821 views

Under what situation do we use Rasterisation or Vectorisation?

As mention in the title, Rasterisation is the conversion of vector maps to raster grid. While Vectorisation is the conversion of raster grids to vector maps but under what situation would we use these?...
0
votes
2answers
1k views

Preventing shapefile lines becoming rasterized when exported as PDF by ArcGIS for Desktop?

In ArcGIS for Desktop some Line feature shapefile becomes raster when exported as pdf. In exported PDF the line features layer is not present as it becomes raster. The line features are mixed with ...
0
votes
1answer
3k views

What is the difference between the “feature to raster” and “polygon to raster” tools when converting a polygon to a raster?

I am currently trying to get a group on connected polygons that are within the same feature to a raster so I can reclassify it for cost analysis. I noticed that ArcGIS for Desktop has a "feature to ...
3
votes
1answer
146 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
1k views

Elevation data from 3D shapefile of buildings to raster DEM

I have acquired LoD2 building models in the 3DShape format (Polygon ZM). This LoD2 data needs to be prepared for a R-script of solar irradiation calculations on roof surfaces, but which can only ...
0
votes
1answer
2k views

How to rasterize a shapefile in R? [duplicate]

I have several shapefiels that i have to turn into raster. Here's the coastline coastline<-readShapeSpatial("shp") r <- raster(ncols=90, nrows=45) jd<-rasterize(coastline,r) plot(jd) it ...
6
votes
2answers
2k 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 ...
1
vote
1answer
213 views

Create ID for each string attribute in QGIS

I'm trying to rasterize a vector layer by using an attribute filed stored as string, I got the confirmation through the GDAL mailinglist serv that gdal_rasterize does not work with string field. So my ...
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,...
2
votes
1answer
847 views

Converting polylines to raster, assigning value of total length of lines within cell?

I have a polyline shapefile representing a road network. I want to rasterise this data, with the resulting values in the raster showing the total length of lines that fall within the raster cell, ...
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 ...
0
votes
1answer
135 views

Rasterizing a simple sloped line

I am aware how to rasterize a 2D line, but if I have two coordinate triplicates (x1,y1,z1) and (x2,y2,z2), how can I efficiently rasterize the resulting connecting line such that the raster cell ...
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
2answers
379 views

Problem with contour lines thickness in bigger zoom levels

I'm a beginner user of GDAL tools. I'd like to rasterize contour lines into Tiff file (for example such region: N47E006), everything works for quite small zoom levels e.g. 10... but the problem is ...
0
votes
0answers
83 views

Rasterize and union problem

i've done the union first and then rasterized it. But now i want instead of that, to rasterize each one and then merge it as one. How do i do that? I mean without the union first off. on<-union(...
1
vote
1answer
2k 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, ...
4
votes
2answers
4k 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
71 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 the ...
1
vote
1answer
499 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,...