Opened 21 years ago
Closed 21 years ago
#278 closed defect (fixed)
Error in msDrawShape() when handling MS_SHAPE_NULL
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapServer C Library | Version: | 3.6 |
Severity: | normal | Keywords: | |
Cc: |
Description
Currently, msDrawShape() (maputil.c) will fail when it encounters a shape of type MS_SHAPE_NULL. Meanwhile, AFAIK, according to ESRI documentation null shapes are perfectly valid in shapefiles of all types and the shape processing software should take this into acount. A simple fix is to insert something like if( shape->type == MS_SHAPE_NULL ) return MS_SUCCESS; in the beginning of msDrawShape() will fix this.
Note:
See TracTickets
for help on using tickets.