Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6844 closed defect (fixed)

gdal_rasterize crashes on empty polygon coming from JSon geometries

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.1.4
Component: Algorithms Version: unspecified
Severity: normal Keywords: rasterize
Cc:

Description

A crash occurs in GDALdllImageFilledPolygon () on a polygon with an empty ring, such as the one produced by:

{
"type": "FeatureCollection",
"name": "cutline",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { }, "geometry": { "type": "Polygon", "coordinates": [ [ ] ] } }
]
}

Change History (8)

comment:1 by Even Rouault, 7 years ago

Resolution: fixed
Status: assignedclosed

In 37849:

gdal_rasterize: fix crash when rasterizing empty polygon (fixes #6844)

comment:2 by Even Rouault, 7 years ago

In 37850:

gdal_rasterize: fix crash when rasterizing empty polygon (fixes #6844)

comment:3 by Even Rouault, 7 years ago

In 37852:

OGRPolygon: make IsEmpty() return TRUE if the polygon is made of an empty ring (fixes #6844)

comment:4 by Even Rouault, 7 years ago

In 37853:

OGRPolygon: make IsEmpty() return TRUE if the polygon is made of an empty ring (fixes #6844)

comment:5 by Even Rouault, 7 years ago

In 38221:

GeoRaster: fix cppcheck warning (refs #6844)

comment:6 by Even Rouault, 7 years ago

In 38222:

GeoRaster: fix cppcheck warning (refs #6844)

comment:7 by Even Rouault, 7 years ago

In 38224:

GeoRaster: fix cppcheck warning (refs #6844)

comment:8 by Even Rouault, 7 years ago

Arg, the GeoRaster commits were in fact for #6884

Note: See TracTickets for help on using tickets.