[Mapbender-users] WMS loads in gui with different EPSG

Samson, Marko Marko.Samson at wald-und-holz.nrw.de
Fri Dec 14 05:16:18 EST 2007


Hi Karsten,

seems, that your first (master or 0) wms is configured to use epsg:4326.
As you already said, he is the master of the wmss;-).
He defines the bounding box and the epsg. You have to configure the
"master" wms with EDIT GUI-WMS at admin1 or "WMS GUI Einstellungen" at
admin2_de.
Just this wms has the dropdown menu to change the epsg for the gui and
defines the main epsg for all the other wms of your gui.

There is no value to configure the bbox at the database.

Greetings,
Marko Samson
 
-----Original Message-----
From: mapbender_users-bounces at lists.osgeo.org
[mailto:mapbender_users-bounces at lists.osgeo.org] On Behalf Of karsten
vennemann
Sent: Friday, December 14, 2007 10:30 AM
To: mapbender_users at lists.osgeo.org
Subject: [Mapbender-users] WMS loads in gui with different EPSG

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

_______________________________________________
Mapbender_users mailing list
Mapbender_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_users


More information about the Mapbender_users mailing list