-
-
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: support layers with lon_wrap=180 projection (#5502)
- Loading branch information
Showing
10 changed files
with
178 additions
and
30 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
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
+33.1 KB
msautotest/wxs/expected/wms_uvraster_lonwrap180_accross_hemisphere.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,74 @@ | ||
# | ||
# Test WMS | ||
# | ||
# REQUIRES: INPUT=GDAL OUTPUT=PNG SUPPORTS=WMS | ||
# | ||
# RUN_PARMS: wms_uvraster_lonwrap180_whole_world.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=744&HEIGHT=372&LAYERS=test&STYLES=&FORMAT=image/png&DPI=120&MAP_RESOLUTION=120&TRANSPARENT=TRUE" > [RESULT_DEMIME] | ||
# | ||
# RUN_PARMS: wms_uvraster_lonwrap180_west_hemisphere.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,0&CRS=EPSG:4326&WIDTH=372&HEIGHT=372&LAYERS=test&STYLES=&FORMAT=image/png&DPI=120&MAP_RESOLUTION=120&TRANSPARENT=TRUE" > [RESULT_DEMIME] | ||
# | ||
# RUN_PARMS: wms_uvraster_lonwrap180_east_hemisphere.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,0,90,180&CRS=EPSG:4326&WIDTH=372&HEIGHT=372&LAYERS=test&STYLES=&FORMAT=image/png&DPI=120&MAP_RESOLUTION=120&TRANSPARENT=TRUE" > [RESULT_DEMIME] | ||
# | ||
# RUN_PARMS: wms_uvraster_lonwrap180_accross_hemisphere.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-90,90,90&CRS=EPSG:4326&WIDTH=372&HEIGHT=372&LAYERS=test&STYLES=&FORMAT=image/png&DPI=120&MAP_RESOLUTION=120&TRANSPARENT=TRUE" > [RESULT_DEMIME] | ||
|
||
MAP | ||
NAME uvraster_lonwrap | ||
EXTENT -180 -90 180 90 | ||
MAXSIZE 4096 | ||
SIZE 500 300 | ||
SHAPEPATH ./data | ||
|
||
PROJECTION | ||
"init=epsg:4326" | ||
END | ||
|
||
SYMBOL | ||
NAME "arrow" | ||
FILLED TRUE | ||
POINTS | ||
1.2 0 | ||
1.2 6 | ||
3 6 | ||
0 10 | ||
-3 6 | ||
-1.2 6 | ||
-1.2 0 | ||
1.2 0 | ||
END | ||
END | ||
|
||
WEB | ||
METADATA | ||
"ows_enable_request" "*" | ||
END | ||
END | ||
|
||
LAYER | ||
DATA "uvraster_lonwrap180.tif" | ||
NAME "test" | ||
TYPE POINT | ||
CONNECTIONTYPE uvraster | ||
|
||
EXTENT 0 -80.1 360 89.9 | ||
|
||
PROCESSING "BANDS=1,2" | ||
PROCESSING "UV_SPACING=17" | ||
|
||
PROJECTION | ||
"proj=longlat" | ||
"a=6371229" | ||
"b=6371229" | ||
"lon_wrap=180" | ||
END | ||
|
||
CLASS | ||
STYLE | ||
SYMBOL "arrow" | ||
COLOR 255 0 0 | ||
ANGLE [uv_angle] | ||
SIZE 10 | ||
END | ||
END | ||
|
||
END | ||
END |