Ticket #2844 (closed defect: fixed)
msProjectRect return value not checked
| Reported by: | pramsey | Owned by: | pramsey |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.6 release |
| Component: | MapServer C Library | Version: | unspecified |
| Severity: | normal | Keywords: | projections |
| Cc: | warmerdam |
Description
Right now, in mapdraw.c and mapraster.c, when msProjectRect is called to move the draw rectangle into the source projection, the success of the operation is assumed. However, for data sources in incompatible planar projections, far from the draw rectangle, the projection operation will fail completely: no good points will be returned.
Right now the behavior is to fall back to basically make a rectangle in the source projection that covers everything (-180,-90 180 90) for latlong, (-22000000,-11000000 22000000,11000000) for planar. For data sources like huge tileindexed raster layers, this is... painful indeed. Instead of no-op on a layer which is basically guaranteed to not be in the output, we check the complete contents.

