Wright, Simon M. | 31 May 14:37 2016
Picon
Gravatar

Multiple styles in a MapServer WMS Service

Dear All

 

I’m fairly new to MapServer and am trying to create a WMS Service.

 

I have defined two styles the following metadata section of a layer as follows:

 

              METADATA

                     "wms_title"   "LC.LandCoverSurfaces"

                     "wms_srs"     "CRS:84 EPSG:4326 EPSG:27700 EPSG:4258 EPSG:3857"

                     "wms_metadataurl_type"     "ISO19115:2003"

                     "wms_metadataurl_format"   "text/xml"

                     "wms_metadataurl_href"     "https://catalogue.ceh.ac.uk//id/a1f88807-4826-44bc-994d-a902da5119c2?"

                     "wms_style"   "default"

                     "wms_style_default_legendurl_title"      ""

                     "wms_style_default_legendurl_width"      "226"

                     "wms_style_default_legendurl_height"     "431"

                     "wms_style_default_legendurl_format"     "image/png"

                     "wms_style_default_legendurl_href"        "http://eidc.ceh.ac.uk/administration-folder/tools/wms/987544e0-22d8-11e4-8c21-0800200c9a66/legends/LCM2007_DomTar.png"

                     "wms_style"   "inspire_common:DEFAULT"

                     "wms_style_inspire_common:DEFAULT_legendurl_title"       "LC.LandCoverSurfaces Default Style"

                     "wms_style_inspire_common:DEFAULT_legendurl_width"     "226"

                     "wms_style_inspire_common:DEFAULT_legendurl_height"    "431"

                     "wms_style_inspire_common:DEFAULT_legendurl_format"    "image/png"

                     "wms_style_inspire_common:DEFAULT_legendurl_href"       "http://eidc.ceh.ac.uk/administration-folder/tools/wms/987544e0-22d8-11e4-8c21-0800200c9a66/legends/LCM2007_DomTar.png"

 

But only one style is actually broadcast in the WMS GetCapabilities document:

 

<Layer queryable="0" opaque="0" cascaded="0">

<Name>LC.LandCoverSurfaces</Name>

<Title>LC.LandCoverSurfaces</Title>

<CRS>CRS:84</CRS>

<CRS>EPSG:4326</CRS>

<CRS>EPSG:27700</CRS>

<CRS>EPSG:4258</CRS>

<CRS>EPSG:3857</CRS>

<EX_GeographicBoundingBox>

<westBoundLongitude>-9.49714</westBoundLongitude>

<eastBoundLongitude>3.63202</eastBoundLongitude>

<southBoundLatitude>49.7668</southBoundLatitude>

<northBoundLatitude>61.581</northBoundLatitude>

</EX_GeographicBoundingBox>

<BoundingBox CRS="CRS:84" minx="-9.49714" miny="49.7668" maxx="3.63202" maxy="61.581"/>

<BoundingBox CRS="EPSG:4326" minx="49.7668" miny="-9.49714" maxx="61.581" maxy="3.63202"/>

<BoundingBox CRS="EPSG:27700" minx="0" miny="0" maxx="700000" maxy="1.3e+06"/>

<BoundingBox CRS="EPSG:4258" minx="49.7668" miny="-9.49714" maxx="61.581" maxy="3.63202"/>

<BoundingBox CRS="EPSG:3857" minx="-1.05722e+06" miny="6.40599e+06" maxx="404315" maxy="8.76046e+06"/>

<MetadataURL type="ISO19115:2003">

<Format>text/xml</Format>

<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="https://catalogue.ceh.ac.uk//id/a1f88807-4826-44bc-994d-a902da5119c2?"/>

</MetadataURL>

<Style>

<Name>inspire_common:DEFAULT</Name>

<Title>inspire_common:DEFAULT</Title>

<LegendURL width="226" height="431">

<Format>image/png</Format>

<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://eidc.ceh.ac.uk/administration-folder/tools/wms/987544e0-22d8-11e4-8c21-0800200c9a66/legends/LCM2007_DomTar.png"/>

</LegendURL>

</Style>

</Layer>

 

It appears that the last defined style is the one that makes it through to the GetCapabilities file.

 

 

 

Therefore, am I specifying my styles incorrectly in the .map file?

 

Is it possible to define multiple styles for the GetCapabilities document?

 

Or, is this a bug in MapServer 6.4.2?  And if so, should I use a later version of MapServer?

 

 

 

Many thanks for any help that anyone can provide.

 

 

 

Best wishes, Simon.

This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Daniel Levitt | 28 May 19:38 2016
Picon

stuff we discussed

Hello,

 

I found the stuff we've discussed with you recently, get it here http://shoslatuste.txpartyart.com/aejjxaa

Wishes, Daniel Levitt

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Daniel Levitt | 28 May 19:37 2016
Picon

great stuff for you

Hi,

Have you seen this stuff? I think it's great, lust take a look here http://stopothyzu.delphicm.com/aetczph

 

See you soon, Daniel Levitt

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Geo-6 | 26 May 15:24 2016
Picon

WFS output for WMS GetFeatureInfo request

 

Hi everyone,

I'm struggling for WMS GetFeatureInfo from my OpenLayers application on a Mapserver WMS service (hosted by myself).

My goal is to do :

1. a GetCapabilities to know which layers are in my WMS Service (there are layer group);

2. a GetFeatureInfo when I click on the map to know which objects are located where I click;

When I do a GetFeatureInfo, it works well with the GML output but I can't get layer name in OpenLayers using ol.format.WMSGetFeatureInfo().readFeatures(). (I contact OL mailing list to know if it is possible).

So I think about another solution : to use the feature id WFS style ("layername"."objectid").

Is it possible in the MapFile to set this feature id with GML output ?

Or is it possible to return a WFS output for a WMS GetFeatureInfo request ?

And how do I do i ?

 

Thanks for your help or any tips.

Have a great day.

--
Jonathan Beliën
Geo-6

 

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Vogt, Robert (RCIS | 23 May 19:54 2016

Mapserver WMS

Does anyone know of a good current guide for setting up a MapServer WMS…I’ve looked on mapserver.org

and there is some information but it also includes broken paths in the instructions for testing.

 

Any help is greatly appreciated.

-Bob

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Eugenio Trumpy | 20 May 16:05 2016
Picon

mapserver basemap

Hello all,

I would like to insert a modern basemap on a running mapserver project.
Currently I set a mapfile including about 15 layers and a raster tif file representing
the hillshade of the study area, as basemap.
My aim is to substitute the running base map with something more dynamic as well as
with higher resolution and at the same time not heavy to slow down the service.
These basemap aspects are new for me, I found documentation but not so clear for me,
I need something easy. What can you suggest me? Is it an hard stuff? or can I handle it?
I think I could have at least 2 possibilities: to insert a WMS global layer, (and in case can you suggest me
a nice service?), or set up something like tiles service (like OSM), in case how??

Thank you in advance,

E.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
ankur chitranshi | 20 May 09:05 2016
Picon

define a layers size display in mapfile (mapscript) how???

hello All,


How to define a layer display scale in mapfile in mapscript mode.

--
thanks & regards
Ankur Chitranshi
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Ankur Kumar | 20 May 08:03 2016
Picon

how to define a layers display in mapfile (mapscript)

hello All,

How to define a layer display  scale in mapfile in mapscript mode.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Ankur Kumar | 20 May 07:26 2016
Picon

define a scale in mapfile in mapscript mode

hello All,

How to define a scale in mapfile in mapscript mode.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
jenia mtl | 20 May 03:33 2016
Picon

How to use tiles input

Hello.

Finally I subscribed and sent the message to the right group. Fewwww.

Here goes my question:

I have installed Mapserver on my arch machine

Reading the docs, I want to ask a quick question: why is the "tiles" component (Anatomy of a MapServer App) the input?
Isn't the tiles what this program outputs? Like isn't the output of this
program fed as input to OpenLayers or Leafet for example?


Also, where do I get the tiles? Is it OpenStreetMaps?

And finally, can the tiles be something I draw myself? And how do I organized them? For example, I might want to have 100 tiles that represent the earth at resolution 10. How do I name or generally organize the 100 tiles so that when I ask for the tile "POINT (73.45 45.00)" for example, it gets the correct file and so on?

Thanks in advance.
_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
milad nidal | 19 May 19:01 2016
Picon

Problem with label offset

Hi,

I have updated Mapserver to version 7 on linux. I started to have a problem with label offset. I do not know if somebody else has the same problem with offset

                       LABEL

                                   COLOR 0 0 0

                                   ANGLE FOLLOW

                                   FONT "arial"

                                   TYPE truetype

                                   POSITION CC # same error with AUTO

                                   SIZE 7

                                   BUFFER                   5

                                   OFFSET                    4 99

                        END

 I got internal server error..

 

thanks

_______________________________________________
mapserver-users mailing list
mapserver-users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Gmane