Sorry, I’m a newbee getting desperate.
I’m trying to setup the Geoserver on my computer. I started wit ver 1.4 but now I have upgraded to 1.5.
I’m beginning to think that Geoserver is not capabel of taking care of the parameter “default” in the getmap request “…STYLE=default…”
Is it so that when ever you shall send a request to the Geoserver you must know and send the correct style name in the request fraze?
I’ve tried to connect to the demodata tasmania:roads, Tiger:roads etc. but I can only get an image if I enter the correct “Style name” instead of “default” in the request. The Geoserver DEMO, and uDig and QGIS shows it correct!
I’ve seen that for example the viz.globe.gov WMS can interpret “default” as a STYLE… there must be some way to get it to work with Geoserver to.
Kind regards,
Paul
Paul, if you leave all style information off, you’ll get the defined “Default” style:
Works:
http://64.119.128.70/geoserver/wms?request=getmap&version=1.1.0&service=wms&layers=massgis:GISDATA.AIRPORTS_PT&styles=&bbox=209899,874160,266889,932123&format=image/png&width=234&height=239&SRS=EPSG%3A26986
Or, if you specify the name of the layer along with Default:
Works:
http://64.119.128.70/geoserver/wms?request=getmap&version=1.1.0&service=wms&layers=massgis:GISDATA.AIRPORTS_PT&styles=GISDATA.AIRPORTS_PT::Default&bbox=209899,874160,266889,932123&format=image/png&width=234&height=239&SRS=EPSG%3A26986
But just Default by itself doesn’t work:
http://64.119.128.70/geoserver/wms?request=getmap&version=1.1.0&service=wms&layers=massgis:GISDATA.AIRPORTS_PT&styles=Default&bbox=209899,874160,266889,932123&format=image/png&width=234&height=239&SRS=EPSG%3A26986
At least that is our current experience with our setup. Our default style for this layer is named GISDATA.AIRPORTS_PT::Default
We’ve decided to put together the name of the layer and the word “Default” along with a separator.
If you named your default style Default maybe it would work. But how would you be able to have more than one layer have a style called simply Default?
Aleda Freeman
MassGIS
Office of Geographic and Environmental Information
251 Causeway St. 5th floor
Boston, MA 02114
phone: 617-626-1193
fax: 617-626-1249
http://www.mass.gov/mgis - MassGIS
http://lyceum.massgis.state.ma.us - Webservices Wiki
http://maps.massgis.state.ma.us/biodiversity - EOEA Biodiversity Days