[mapserver-users] WMS Client changes slightly BBOX
Peter Hopfgartner
peter.hopfgartner at r3-gis.com
Thu Jul 24 03:49:15 PDT 2014
I'm generating dynamically Map Object, with with a certain extent, in
the concrete example
629396.05065523,4984079.9894638,655192.92565523,5019084.3644638
In generated Map object uses the WMS client functionality to call WMS
services. Anyway, the BBOX get's slightly changed, so that the original
scale of 1:100000 gets changed to approx 1:100103, since it calls the
WMS services with
629382.807906257,4984062.02007212,655206.168404203,5019102.33385548
as can be taken from the web server log files:
mmm.mmm.mmm.mmm - - [24/Jul/2014:12:25:58 +0200] "GET
/author/services/ows.php?PROJECT=ancitel&MAP=catasto_reti&LANG=xw&OGSTAT=ot3cp0i7qmph4guuof75702m70&RESOLUTION=96&LAYERS=dtm,uso_lombardia,strade_lombardia,g_limiti_amministrativi,g_label,g_0707,g_0704&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/png%3B+mode%3D8bit&STYLES=,,,,,,&HEIGHT=1323&VERSION=1.1.1&SRS=EPSG:32632&WIDTH=975&BBOX=629382.807906257,4984062.02007212,655206.168404203,5019102.33385548&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage
HTTP/1.1" 200 678803 "-" "MapServer/6.4.1 libcurl/7.19.7"
This change in scale is beyound te axpected tolerance in this particular
use case, where technical data must be plotted in a PDF file.
Any help is appreciated. Obvioulsly, I can fetch the WMS services in my
code and overlay them "by hand". Anyway, for a couple of reasons this
was the preferred approach.
Regards,
Peter
--
Peter Hopfgartner
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
web : www.r3-gis.com
mail : peter.hopfgartner at r3-gis.com
phone: +39 0473 494949
fax : +39 0473 069902
ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente è vietata e può violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail.
ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verstößt gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrtümlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschließend die Mitteilung zu vernichten.
WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003)
-------------- next part --------------
MAP
CONFIG "MS_ERRORFILE" "/data/sites/ancitel.r3-gis.com/author/config/debug//mapfile.debug"
DEBUG 5
EXTENT 629396.05065523 4984075.26282109 655192.92565523 5019089.09110651
FONTSET "../../fonts/fonts.list"
IMAGETYPE "png"
NAME "MS"
RESOLUTION 96
SIZE 975 1323
STATUS ON
UNITS METERS
OUTPUTFORMAT
NAME "PNG"
MIMETYPE "image/png"
DRIVER "AGG/PNG"
EXTENSION "png"
IMAGEMODE RGBA
TRANSPARENT TRUE
FORMATOPTION "INTERLACE=OFF"
END # OUTPUTFORMAT
PROJECTION
"init=epsg:32632"
END # PROJECTION
LEGEND
KEYSIZE 20 10
KEYSPACING 5 5
LABEL
SIZE MEDIUM
OFFSET 0 0
SHADOWSIZE 1 1
TYPE BITMAP
END # LABEL
STATUS OFF
END # LEGEND
QUERYMAP
SIZE -1 -1
STATUS OFF
STYLE HILITE
END # QUERYMAP
SCALEBAR
BACKGROUNDCOLOR 100 100 100
COLOR 250 250 250
IMAGECOLOR 255 255 255
INTERVALS 4
LABEL
FONT "verdana"
SIZE 9
OFFSET 0 0
SHADOWSIZE 1 1
TYPE TRUETYPE
END # LABEL
OUTLINECOLOR 0 0 0
POSTLABELCACHE TRUE
SIZE 267 4
STATUS OFF
TRANSPARENT TRUE
UNITS METERS
END # SCALEBAR
WEB
IMAGEPATH "/tmp/"
IMAGEURL "/tmp/"
END # WEB
LAYER
CONNECTION "http://ancitel.r3-gis.com/author/services/ows.php?PROJECT=ancitel&MAP=catasto_reti&LANG=xw&OGSTAT=ot3cp0i7qmph4guuof75702m70&RESOLUTION=96"
CONNECTIONTYPE WMS
DEBUG 5
METADATA
"wms_srs" "EPSG:32632"
"wms_name" "dtm"
"wms_format" "image/png; mode=8bit"
"wms_server_version" "1.1.1"
END # METADATA
NAME "print_layer_0"
PROCESSING "CLOSE_CONNECTION=NORMAL"
PROJECTION
"init=epsg:32632"
END # PROJECTION
STATUS ON
TILEITEM "location"
TRANSFORM FALSE
TYPE RASTER
UNITS METERS
END # LAYER
LAYER
CONNECTION "http://ancitel.r3-gis.com/author/services/ows.php?PROJECT=ancitel&MAP=catasto_reti&LANG=xw&OGSTAT=ot3cp0i7qmph4guuof75702m70&RESOLUTION=96"
CONNECTIONTYPE WMS
DEBUG 5
METADATA
"wms_srs" "EPSG:32632"
"wms_name" "uso_lombardia"
"wms_format" "image/png; mode=8bit"
"wms_server_version" "1.1.1"
END # METADATA
NAME "print_layer_1"
PROJECTION
"init=epsg:32632"
END # PROJECTION
STATUS ON
TILEITEM "location"
TYPE RASTER
UNITS METERS
END # LAYER
LAYER
CONNECTION "http://ancitel.r3-gis.com/author/services/ows.php?PROJECT=ancitel&MAP=catasto_reti&LANG=xw&OGSTAT=ot3cp0i7qmph4guuof75702m70&RESOLUTION=96"
CONNECTIONTYPE WMS
DEBUG 5
METADATA
"wms_srs" "EPSG:32632"
"wms_name" "strade_lombardia"
"wms_format" "image/png; mode=8bit"
"wms_server_version" "1.1.1"
END # METADATA
NAME "print_layer_2"
PROJECTION
"init=epsg:32632"
END # PROJECTION
STATUS ON
TILEITEM "location"
TYPE RASTER
UNITS METERS
END # LAYER
LAYER
CONNECTION "http://ancitel.r3-gis.com/author/services/ows.php?PROJECT=ancitel&MAP=catasto_reti&LANG=xw&OGSTAT=ot3cp0i7qmph4guuof75702m70&RESOLUTION=96"
CONNECTIONTYPE WMS
DEBUG 5
METADATA
"wms_srs" "EPSG:32632"
"wms_name" "g_limiti_amministrativi"
"wms_format" "image/png; mode=8bit"
"wms_server_version" "1.1.1"
END # METADATA
NAME "print_layer_3"
PROJECTION
"init=epsg:32632"
END # PROJECTION
STATUS ON
TILEITEM "location"
TYPE RASTER
UNITS METERS
END # LAYER
LAYER
CONNECTION "http://ancitel.r3-gis.com/author/services/ows.php?PROJECT=ancitel&MAP=catasto_reti&LANG=xw&OGSTAT=ot3cp0i7qmph4guuof75702m70&RESOLUTION=96"
CONNECTIONTYPE WMS
DEBUG 5
METADATA
"wms_srs" "EPSG:32632"
"wms_name" "g_label"
"wms_format" "image/png; mode=8bit"
"wms_server_version" "1.1.1"
END # METADATA
NAME "print_layer_4"
PROJECTION
"init=epsg:32632"
END # PROJECTION
STATUS ON
TILEITEM "location"
TYPE RASTER
UNITS METERS
END # LAYER
LAYER
CONNECTION "http://ancitel.r3-gis.com/author/services/ows.php?PROJECT=ancitel&MAP=catasto_reti&LANG=xw&OGSTAT=ot3cp0i7qmph4guuof75702m70&RESOLUTION=96"
CONNECTIONTYPE WMS
DEBUG 5
METADATA
"wms_srs" "EPSG:32632"
"wms_name" "g_0707"
"wms_format" "image/png; mode=8bit"
"wms_server_version" "1.1.1"
END # METADATA
NAME "print_layer_5"
PROJECTION
"init=epsg:32632"
END # PROJECTION
STATUS ON
TILEITEM "location"
TYPE RASTER
UNITS METERS
END # LAYER
LAYER
CONNECTION "http://ancitel.r3-gis.com/author/services/ows.php?PROJECT=ancitel&MAP=catasto_reti&LANG=xw&OGSTAT=ot3cp0i7qmph4guuof75702m70&RESOLUTION=96"
CONNECTIONTYPE WMS
DEBUG 5
METADATA
"wms_srs" "EPSG:32632"
"wms_name" "g_0704"
"wms_format" "image/png; mode=8bit"
"wms_server_version" "1.1.1"
END # METADATA
NAME "print_layer_6"
PROJECTION
"init=epsg:32632"
END # PROJECTION
STATUS ON
TILEITEM "location"
TYPE RASTER
UNITS METERS
END # LAYER
END # MAP
More information about the MapServer-users
mailing list