Questions tagged [gdal-rasterize]

Burns vector geometries (points, lines, and polygons) into the raster band(s) of a raster image. Vectors are read from OGR supported vector formats.

0
votes
1answer
48 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 ...
2
votes
0answers
33 views

How to serve GIS data efficiently and not necessarily using GeoServer or similar?

[I've rewritten this question completely in response to comments] Summary: How to serve GIS data efficiently? I'm looking to serve raster and vector GIS data as a public service, particularly SRTM1 ...
2
votes
0answers
147 views

RasterizeLayer in GDAL Java

As per the suggestions given by Michael to one of my earlier query (URL given below), I have tried to develop a sample code to perform rasterize using GDAL Java API methods. I had written based on ...
2
votes
0answers
172 views

Converting to raster using QGIS?

A client of my company has asked us to add a CAD file to a WMS. We have a subcontracted IT company that will adress the WMS part, but we need to provide them with a geoJSON of our client's CAD file. ...
1
vote
0answers
20 views

gdal_rasterize failure with QGIS version 3.6.3

I have both QGIS 3.6.3 and 3.0.1 running on Windows 10 64bit. In 3.6.3 I am unable to rasterise a point layer, while the same operation seems to work in 3.0.1. I'm having to switch between versions ...
1
vote
0answers
16 views

Result of 'Rasterize' shows only “0” data

I have point shapefile "TAEBAEK". And i want convert it to raster. Rasterize works well. but result show only "0" data. I thought result shows "0" and "1" data. (the cell, containing the point, show ...
1
vote
0answers
30 views

Getting TIFF with gdal_rasterize

How can I properly rasterize isolines with an absolute height value in QGIS 3? When using "gdal_rasterize" in the source code I got tiff with "holes", see image below
1
vote
0answers
117 views

Vector Rasterize Error

I am running QGIS 3.4.4 With GRASS 7.4.4 and I get an error while rasterizing a vector layer and I don't know why. The same error pops up while using GDAL->Rasterize(vector to raster) and while using ...
1
vote
0answers
104 views

Rasterizing Shapefile in different projection/extent from sample raster in Python?

I have a road network shapefile that I'm trying to rasterize and combine with the DEM raster. I created the road network shapefile from a dataset (using fiona) and therefore it has no projection. What ...
1
vote
0answers
577 views

gdal_rasterize: “Attempt to create 0x0 dataset is illegal”

I am new at GIS. I want to burn all polygons from a particular shapefile (i.e. Gbg13004.shp) into a RGB TIFF file (i.e. temp.tiff). I have tried the following command: gdal_rasterize -burn 255 -burn ...
1
vote
0answers
113 views

Rasterize Function in QGIS 2.18.13 Gives an Error

I just updated QGIS to 2.18.13 and now I'm having trouble using the GDAL [Conversion] function, Rasterize (vector to raster). I have sixteen vectors I made and I want to convert them to rasters. I've ...
1
vote
0answers
84 views

Rasterizing lines significantly slower than polygons

I'm using GSHHG data to create land masks. Rasterizing the original polygons with GDAL_rasterize (via Python) is very quick. However, when I convert the polygons to lines and rasterize that, the ...
1
vote
0answers
313 views

gdal2tile problem geneting tiles

Our problem is that we need to convert a shapefile to raster. Then, we need to generate tiles from zoom 15 to zoom 17 (2millions tiles to 16millions tiles). Before we were using this methodology: ...
1
vote
0answers
83 views

Using gdal_rasterize with a MSSQL Connection, possible?

I'm a bit new to gdal, I mostly use ogr2ogr for data imports to MS SQL Server -- so I'm a bit out of my tree on gdal_rasterize My goal is to create png raster files 200x200 from a geometry column. I ...
0
votes
0answers
81 views

Sharpmap GeoTIFF placement/scale Issues

I am trying to place GeoTIFFs onto a SharpMap Mapbox. Some GeoTIFFs work just fine and are placed where expected. For example, .tiff files from this website work fine and are placed/scaled ...
0
votes
0answers
70 views

Clip raster with shapefile won't work without reprojection (Linux)

So as the title suggests, I am trying to clip an image (UTM) using the OSM land polygon shapefile (WGS 84). I use gdal_rasterize to do that and when I do it on a windows machine it works flawlessly ...
0
votes
0answers
294 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 ...