The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
274 views

Polygon rasterization in QGIS 3.2

I want to elevate a certain area of terrain by 126 meters. I've created a polygonal shapefile layer with a decimal field titled "elevation" set to 126. My plan was to rasterize the polygon using GDAL ...
0
votes
0answers
28 views

gdal_rasterized failed in terminal

I have this command: gdal_rasterize -l training -a "MC_ID" -ts 3473 4075 -te 42.4132272 -85.3704013 42.41419 -85.3692901 -ot Float32 -of GTiff "training.shp" "training_rasterized2.tif" What I am ...
0
votes
1answer
286 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
1answer
58 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 ...
0
votes
0answers
139 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
78 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
348 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 ...
0
votes
1answer
308 views

Why having problem with GDALRasterize() in C?

I am trying to make raster file from a shapefile. I am trying to use GDALRasterize() function for it. But it is not recognizing GDALRasterize function ('GDALRasterize' was not declared in this scope). ...
-1
votes
0answers
34 views

Using gdal_rasterize gives ERROR 1

I'm trying to rasterize a single-band raster, the NDVI from sentinel 2 but I have problems with gdal_rasterize. gdalinfo -proj4 C:\Users\....\....\clip_NDVI.tif gdal_rasterize -a "id" -l myshapefile ...