Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GetFeatureInfo: fix for layers using a lon_wrap PROJECTION and reques…
…ted in the wrapped part of the raster
- Loading branch information
Showing
4 changed files
with
109 additions
and
0 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
11 changes: 11 additions & 0 deletions
11
msautotest/wxs/expected/wms_getfeatureinfo_lon_wrap_180_left_part_raster.xml
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,11 @@ | ||
GetFeatureInfo results: | ||
|
||
Layer 'test' | ||
Feature 0: | ||
x = '49.4' | ||
y = '-4.5' | ||
value_0 = '127' | ||
value_list = '127' | ||
red = '127' | ||
green = '127' | ||
blue = '127' |
11 changes: 11 additions & 0 deletions
11
msautotest/wxs/expected/wms_getfeatureinfo_lon_wrap_180_right_part_raster.xml
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,11 @@ | ||
GetFeatureInfo results: | ||
|
||
Layer 'test' | ||
Feature 0: | ||
x = '-40.6' | ||
y = '-4.5' | ||
value_0 = '63' | ||
value_list = '63' | ||
red = '63' | ||
green = '63' | ||
blue = '63' |
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,59 @@ | ||
# | ||
# Test WMS GetfeatureInfo with a layer with lon_wrap=180 | ||
# | ||
# REQUIRES: SUPPORTS=WMS | ||
# | ||
# RUN_PARMS: wms_getfeatureinfo_lon_wrap_180_right_part_raster.xml [MAPSERV] "QUERY_STRING=map=[MAPFILE]&service=WMS&request=GetFeatureInfo&version=1.3.0&CRS=EPSG:4326&width=200&height=200&layers=test&bbox=-90,-90,90,90&format=image/png&query_layers=test&i=50&j=100" > [RESULT_DEMIME] | ||
# RUN_PARMS: wms_getfeatureinfo_lon_wrap_180_left_part_raster.xml [MAPSERV] "QUERY_STRING=map=[MAPFILE]&service=WMS&request=GetFeatureInfo&version=1.3.0&CRS=EPSG:4326&width=200&height=200&layers=test&bbox=-90,-90,90,90&format=image/png&query_layers=test&i=150&j=100" > [RESULT_DEMIME] | ||
|
||
MAP | ||
|
||
NAME TEST | ||
STATUS ON | ||
SIZE 40 20 | ||
EXTENT -180 -90 180 90 | ||
IMAGECOLOR 0 0 0 | ||
|
||
PROJECTION | ||
"init=epsg:4326" | ||
END | ||
|
||
OUTPUTFORMAT | ||
NAME "png" | ||
DRIVER AGG/PNG | ||
MIMETYPE "image/png" | ||
IMAGEMODE RGBA | ||
EXTENSION "png" | ||
END | ||
|
||
WEB | ||
METADATA | ||
"ows_enable_request" "*" | ||
"ows_srs" "EPSG:4326" | ||
"ows_title" "WMS Getfeatureinfo" | ||
"wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=mymap.map" | ||
END | ||
IMAGEPATH '/tmp/ms_tmp/' | ||
IMAGEURL '/ms_tmp/' | ||
END | ||
|
||
LAYER | ||
NAME test | ||
TYPE RASTER | ||
STATUS ON | ||
DATA "../gdal/data/lon_wrap_180.asc" | ||
METADATA | ||
"wms_title" "test" | ||
"ows_srs" "EPSG:4326" | ||
"ows_include_items" "all" | ||
END | ||
PROJECTION | ||
"proj=longlat" | ||
"datum=WGS84" | ||
"lon_wrap=180" | ||
"no_defs" | ||
END | ||
TEMPLATE 'blank.html' | ||
END | ||
|
||
END # of map file |