Skip to content

Commit

Permalink
Don't try to project pixel coordinates (MapServer#4537)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkofahl authored and tbonfort committed Dec 13, 2012
1 parent c3552d7 commit ae9538b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mapdraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,19 +943,19 @@ int msDrawVectorLayer(mapObj *map, layerObj *layer, imageObj *image)
}

/* identify target shapes */
if(layer->transform == MS_TRUE)
if(layer->transform == MS_TRUE) {
searchrect = map->extent;
#ifdef USE_PROJ
if((map->projection.numargs > 0) && (layer->projection.numargs > 0))
msProjectRect(&map->projection, &layer->projection, &searchrect); /* project the searchrect to source coords */
#endif
}
else {
searchrect.minx = searchrect.miny = 0;
searchrect.maxx = map->width-1;
searchrect.maxy = map->height-1;
}

#ifdef USE_PROJ
if((map->projection.numargs > 0) && (layer->projection.numargs > 0))
msProjectRect(&map->projection, &layer->projection, &searchrect); /* project the searchrect to source coords */
#endif

status = msLayerWhichShapes(layer, searchrect, MS_FALSE);
if(status == MS_DONE) { /* no overlap */
msLayerClose(layer);
Expand Down

0 comments on commit ae9538b

Please sign in to comment.