[Mapbender-users] WMS loads in gui with different EPSG
karsten vennemann
karsten at terragis.net
Fri Dec 14 04:30:08 EST 2007
I defined my WMS for use in mapbender with a SRID (SRS) of 2285. I actually
couldn't get the WMS working when defining that projection as "wms_srs"
"EPSG:2285" in the mapserver map file.
However, it works when adding EPSG:4326-
"wms_srs" "EPSG:2285 EPSG:4326"
Any thoughts why ?
When load the gui it loads the data in geographic "projection" (EPSG 4326).
How can I make it load them as EPSG 2285 by default?
I thought that would be determined from the WMS directly. Is it somehow
stored with the gui?
The capabilities statement lists
gui_wms_epsg: EPSG:4326
I don't know where that value comes from?
But can I change that? And if yes where?
Also I couldn't solve how to set the initial default bounding box of my
application (gui). In the documentation I found that that is set by the
"first wms loaded". Another option seems to be to use 'mb_myBBOX' to define
the extent of the map at startup. Thus, my understanding is that there is no
default value that could be defined in the database? Is that correct?
More infos below
Thanks
Karsten
Capability statement:
version: 1.1.0
title: ocla
abstract:
maprequest: http://localhost/mapserver/mapserv.exe?map=ok.map&
capabilitiesrequest: http://localhost/mapserver/mapserv.exe?map=ok.map&
featureinforequest: http://localhost/mapserver/mapserv.exe?map=ok.map&
gui_wms_mapformat: image/png
gui_wms_featureinfoformat: text/plain
gui_wms_exceptionformat: application/vnd.ogc.se_inimage
gui_wms_epsg: EPSG:4326
wms_srs: EPSG:2285 EPSG:4326
gui_wms_visible: 1
map -> image/gif
map -> image/png
map -> image/png; mode=24bit
map -> image/jpeg
map -> image/wbmp
map -> image/tiff
featureinfo -> text/plain
featureinfo -> application/vnd.ogc.gml
exception -> application/vnd.ogc.se_xml
exception -> application/vnd.ogc.se_inimage
exception -> application/vnd.ogc.se_blank
******************************************************************
******************************************************************
Mapfile:
# Start of map file
NAME "ocla"
EXTENT 600000 -800000 2750000 1000000
# EXTENT -125 45 -116 49
SIZE 400 400
UNITS FEET
IMAGECOLOR 204 221 255
IMAGETYPE PNG
INTERLACE OFF
#### Start of projection definition ###################
# NAD83 / Washington North (ftUS) EPSG <2285>
PROJECTION
"init=epsg:2285"
END
# Start of web interface definition##############################
WEB
IMAGEPATH "D:/web/sites/mapserver/tmp/"
METADATA
"wms_onlineresource"
"http://localhost/mapserver/mapserv.exe?map=ok.map"
"wms_srs" "EPSG:2285 EPSG:4326"
END
END
# Start of layer definitions##################################
LAYER
NAME "People1"
TYPE POLYGON
DATA "D:/web/sites/mapserver/wsba/mapdata/layers/tracts"
metadata
"wms_srs" "EPSG:2285"
"wms_title" "people"
"wms_exceptions_format" "application/vnd.ogc.se_xml"
"wms_server_version" "1.1.1"
"wms_formatlist" "image/png"
"wms_format" "image/png"
end
dump true
PROJECTION
"init=epsg:2285"
END
TEMPLATE "template"
TOLERANCE 3
STATUS ON
CLASS
COLOR 240 240 230
END
END
#################################
END # Map File
More information about the Mapbender_users
mailing list