Permalink
Browse files

Don't try to project pixel coordinates (#4537)

  • Loading branch information...
1 parent 797ddde commit 62c89e801c9bdd45037732ceb733180b45d47b1d Martin Kofahl committed with tbonfort Dec 13, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 mapdraw.c
View
@@ -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);

0 comments on commit 62c89e8

Please sign in to comment.