-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UVRaster: fix reprojection issue of map extent to layer projection (f…
…ixes #5501)
- Loading branch information
Showing
8 changed files
with
174 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+11.3 KB
...totest/wxs/expected/wms_uvraster_map_reprojection_extent_intersecting_layer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.4 KB
msautotest/wxs/expected/wms_uvraster_map_reprojection_extent_larger_than_layer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.5 KB
...totest/wxs/expected/wms_uvraster_map_reprojection_extent_smaller_than_layer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# | ||
# Test WMS | ||
# | ||
# REQUIRES: INPUT=GDAL OUTPUT=PNG SUPPORTS=WMS | ||
# | ||
# RUN_PARMS: wms_uvraster_map_reprojection_extent_larger_than_layer.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-85,-500,190,200&CRS=EPSG:4326&WIDTH=946&HEIGHT=583&LAYERS=test&STYLES=&FORMAT=image/png&DPI=98&MAP_RESOLUTION=98&FORMAT_OPTIONS=dpi:98&TRANSPARENT=TRUE" > [RESULT_DEMIME] | ||
# | ||
# RUN_PARMS: wms_uvraster_map_reprojection_extent_smaller_than_layer.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=30,-170,60,-100&CRS=EPSG:4326&WIDTH=400&HEIGHT=200&LAYERS=test&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE" > [RESULT_DEMIME] | ||
# | ||
# RUN_PARMS: wms_uvraster_map_reprojection_extent_intersecting_layer.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=30,-200,60,-100&CRS=EPSG:4326&WIDTH=400&HEIGHT=200&LAYERS=test&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE" > [RESULT_DEMIME] | ||
|
||
MAP | ||
NAME test | ||
EXTENT -180 -90 180 90 | ||
MAXSIZE 4096 | ||
SIZE 500 300 | ||
SHAPEPATH ./data | ||
|
||
SYMBOL | ||
NAME "arrow_wind" | ||
TYPE vector | ||
FILLED true | ||
POINTS | ||
0 1.2 | ||
6 1.2 | ||
6 3 | ||
10 0 | ||
6 -3 | ||
6 -1.2 | ||
0 -1.2 | ||
0 1.2 | ||
END | ||
END | ||
|
||
PROJECTION | ||
"init=epsg:4326" | ||
END | ||
|
||
WEB | ||
METADATA | ||
"ows_enable_request" "*" | ||
END | ||
END | ||
|
||
LAYER | ||
NAME "test" | ||
TYPE POINT | ||
CONNECTIONTYPE uvraster | ||
PROCESSING "BANDS=1,2" | ||
PROCESSING "UV_SPACING=20" | ||
|
||
PROJECTION | ||
"proj=stere" | ||
"lat_0=90" | ||
"lat_ts=60" | ||
"lon_0=249" | ||
"k=90" | ||
"x_0=0" | ||
"y_0=0" | ||
"a=6371229" | ||
"b=6371229" | ||
"units=m" | ||
"no_defs" | ||
END | ||
|
||
DATA 'wms_uvraster_map_reprojection.tif' | ||
|
||
CLASS | ||
STYLE | ||
COLOR 0 0 127 | ||
SYMBOL "arrow_wind" | ||
ANGLE [uv_angle] | ||
SIZE 12 | ||
END | ||
END | ||
END | ||
END |