Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for the use of tile_map_edge_buffer when using WMS with…
… tiled=true vendor specific parameter (WMS-C) This is a rebase of #5199 on top of latest main, with the addition of a test. Comments of #5199 (comment) have been only adressed by adding appropriate TODOs in the code. Co-authored-by: deduikertjes <deduikertjes@xs4all.nl>
- Loading branch information
1 parent
e69561e
commit 31d255a
Showing
4 changed files
with
169 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,80 @@ | ||
# | ||
# Test WMS-C TILED=TRUE | ||
# | ||
# REQUIRES: INPUT=GDAL OUTPUT=PNG SUPPORTS=WMS | ||
|
||
# RUN_PARMS: wms_tiled_tiled_disabled.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG%3A4326&BBOX=44.1,-65.755,47.3,-58.375&WIDTH=400&HEIGHT=400&LAYERS=popplace&STYLES=&FORMAT=image%2Fpng" > [RESULT_DEMIME] | ||
|
||
# RUN_PARMS: wms_tiled_tiled_enabled.png [MAPSERV] QUERY_STRING="map=[MAPFILE]&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG%3A4326&BBOX=44.1,-65.755,47.3,-58.375&WIDTH=400&HEIGHT=400&LAYERS=popplace&STYLES=&FORMAT=image%2Fpng&TILED=TRUE" > [RESULT_DEMIME] | ||
|
||
MAP | ||
|
||
NAME WMS_TILED | ||
STATUS ON | ||
SIZE 400 300 | ||
UNITS DD | ||
IMAGECOLOR 255 255 255 | ||
SHAPEPATH ./data | ||
SYMBOLSET etc/symbols.sym | ||
FONTSET etc/fonts.txt | ||
|
||
OUTPUTFORMAT | ||
NAME GDPNG | ||
DRIVER "GD/PNG" | ||
MIMETYPE "image/png" | ||
EXTENSION "png" | ||
END | ||
|
||
|
||
# | ||
# Start of web interface definition | ||
# | ||
WEB | ||
|
||
IMAGEPATH "/tmp/ms_tmp/" | ||
IMAGEURL "/ms_tmp/" | ||
|
||
METADATA | ||
"wms_title" "Test simple wms" | ||
"wms_onlineresource" "http://localhost/path/to/wms_simple?" | ||
"wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" | ||
"ows_schemas_location" "http://ogc.dmsolutions.ca" | ||
"wms_sld_enabled" "false" | ||
"ows_enable_request" "*" | ||
"tile_map_edge_buffer" "50" | ||
END | ||
END | ||
|
||
PROJECTION | ||
"init=epsg:4326" | ||
END | ||
|
||
|
||
# | ||
# Start of layer definitions | ||
# | ||
|
||
|
||
LAYER | ||
NAME popplace | ||
DATA popplace | ||
METADATA | ||
"wms_title" "popplace" | ||
"wms_description" "Cities of I.P.E." | ||
END | ||
TYPE POINT | ||
STATUS ON | ||
PROJECTION | ||
"init=./data/epsg2:42304" | ||
END | ||
DUMP TRUE | ||
CLASS | ||
SYMBOL 2 | ||
SIZE 40 | ||
NAME "Cities" | ||
COLOR 0 0 0 | ||
END | ||
END # Layer | ||
|
||
|
||
END # Map File |