#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 |
Cc: |
Description
I am trying to rasterize a shapefile of the Canary Islands (http://reddeparquesnacionales.mma.es/parques/org_auto/cartografia/zip/cald_itinerarios.zip) . 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)
Change History (3)
by , 14 years ago
comment:1 by , 14 years ago
Milestone: | → 1.6.4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Summary: | Segmentation fault in gdal_rasterize → Segmentation fault in gdal_rasterize with shapefiles with empty geometries |
Note:
See TracTickets
for help on using tickets.
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)