Stack Exchange Network

Stack Exchange network consists of 175 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 [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.

1
vote
1answer
46 views

Masking areas outside of polygon using GDAL?

I am trying to "mask" raster cells that are outside of a polygon layer, setting them to "NoData". Also, I need to use GDAL, rather than R which I normally use, because the raster is too large to fit ...
0
votes
1answer
44 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
127 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
166 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
15 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
74 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
89 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
537 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
111 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
78 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
305 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
82 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
17 views

How to use gdal_rasterize to get the file *.tif?

Good afternoon! Can someone tell me how to properly rasterize isolines with an absolute height value in qgis, when using "gdal_rasterize" in the source code I got tiff with "holes"((
0
votes
0answers
140 views

Why does the output of gdal.RasterizeLayer differ from gdal_rasterize?

Problem I've recently noticed that the output from the gdal.RasterizeLayer function differs from the result I'm getting using the gdal_rasterize utility. I have geotiff of a SAR product that has ...
0
votes
0answers
66 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
67 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
268 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 ...