Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#3310 closed defect (fixed)

Segmentation fault in gdal_rasterize with shapefiles with empty geometries

Reported by: jcrepetto Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords: gdal_rasterize


I am trying to rasterize a shapefile of the Canary Islands ( . I have used the command :

gdal_rasterize -b 1 -b 2 -b 3 -burn 255 -burn 0 -burn 0 -l Itinerarios_Taburiente Itinerarios_Taburiente.shp test.tif

and the answer is :
Segmentation fault
I have tested this file on two Linux systems (32 bits and 64 bits), with the same results. I think the shape file is correct, since QGIS can display it correctly.
I attach to this ticket an empty, but georeferenced TIFF file for test purposes. I am using GDAL 1.6.3.

Attachments (1)

test.tif (102.1 KB ) - added by jcrepetto 14 years ago.

Download all attachments as: .zip

Change History (3)

by jcrepetto, 14 years ago

Attachment: test.tif added

comment:1 by Even Rouault, 14 years ago

Milestone: 1.6.4
Resolution: fixed
Status: newclosed
Summary: Segmentation fault in gdal_rasterizeSegmentation fault in gdal_rasterize with shapefiles with empty geometries

Already fixed in trunk in r17037

r18437 /branches/1.6/gdal/apps/gdal_rasterize.cpp: Be more careful about features with null geometries (backport of r17037 for #3310)

comment:2 by Even Rouault, 11 years ago

Milestone: 1.6.4

Milestone 1.6.4 deleted

Note: See TracTickets for help on using tickets.