WMS Capabilities: LatLonBoundingBox
Angus Dickey
angusd at MIDWESTSURVEYS.COM
Thu Jun 15 14:39:59 PDT 2006
Thanks for the response Ross...makes sense.
If anybody is interested what I ended up doing was running this:
SELECT extent(geom_column) FROM layer_name;
On my spatial layer and using the output in the wms_extent tag in a mapfile:
"wms_extent" "-120.154159545898 48.9968566894531 -101.362113952637 60.0001945495605"
~Angus
-----Original Message-----
From: Ross Elliott [mailto:ross.elliott at infoterra-global.com]
Sent: June 15, 2006 3:23 PM
To: Angus Dickey
Subject: RE: [UMN_MAPSERVER-USERS] WMS Capabilities: LatLonBoundingBox
Mapserver will not calculate the extent for postgis layers as this operation can take a very long time on large layers.
-----Original Message-----
From: UMN MapServer Users List on behalf of Angus Dickey
Sent: Thu 6/15/2006 7:04 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] WMS Capabilities: LatLonBoundingBox
I am having a similar problem. Apparently Mapserver will automatically calculate the bounding box if you define it using epsg codes in the map file ex:
PROJECTION
"init=epsg:4269"
END
This works for me when I use shapefiles, i.e. it calculates the correct bounding box in the right coordinates, however all my Postgis layers end up with a bounding box of:
minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" maxy="2.5e+07"
Are youusing postgis layers? Does anybody know how to get mapserver to calculate the correct bounding box for postgis layers?
Thanks for any help,
~Angus
-----Original Message-----
From: Arnaud Diederen [mailto:ad at IONICSOFT.COM]
Sent: June 15, 2006 7:17 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] WMS Capabilities: LatLonBoundingBox
Hello,
I'm absolutely new to mapserver, so I downloaded the demo for the 4.x
version (I'm using Debian GNU/Linux).
The demo pages work ok, but when I do a GetCapabilities operation
(http://localhost/cgi-bin/mapserv?service=WMS&version=1.3&map=/var/www/workshop/itasca.map&request=GetCapabilities
- local intranet, sorry :( ), I get the attached XML document.
What I'm wondering is why the LatLonBoundingBox tags holds those values,
since they are supposed to be in 4326, if I read the WMS spec right.
Am I doing something wrong?
I looked the archives, and googled the internet, but I couldn't find any
help on this exact topic.
I would definitely appreciate if somebody could provide any kind of
help; would it be just pointers on what I have to do/fix.
Best regards,
Arnaud
More information about the MapServer-users
mailing list