Hi, Just a guess but perhaps it is using the default style because it does not know what other style to use? I would try to add NamedStyle somehow like in this example:
http://osdir.com/ml/gis.geoserver.user/2005-09/msg00099.html -Jukka Rahkonen- David Alda Fernandez de Lezea wrote: > > Hi list, > > I've found a strange issue while performing a getMap over a > group of layers. I have a layer called "toponimia", which is > formed by two layers, "topo1" and "topo2". All of them are > points. While configuring the layer group, I set the style to > be applied to those two layers, and when I preview them in > geoserver user interface, I can see everything OK, but if I > make a POST request, which is something I really need to do, > I get the image of the layer group but without the previously > set style. I mean it uses the default style, a red square to > draw the points. Do I have to add something else to the POST request?? > > My request > > <?xml version='1.0' encoding='UTF-8'?><ogc:GetMap xmlns:ogc = > 'http://www.opengis.net/ows' xmlns:gml = > 'http://www.opengis.net/gml' version='1.1.1' > service='WMS'><StyledLayerDescriptor > version='1.0.0'><NamedLayer><Name>toponimia</Name></NamedLayer ></StyledLayerDescriptor><BoundingBox > >srsName='http://www.opengis.net/gml/srs/epsg.xml#23030'><gml:c oord><gml:X>538293.48457493</gml:X><gml:Y>4743746.17418806</gml:Y></> gml:coord><gml:coord><gml:X>540093.48457493</gml:X><gml:Y>4745 > 546.17418806</gml:Y></gml:coord></BoundingBox><Output><Format> > image/png</Format><Size><Width>787</Width><Height>787</Height> > </Size><Transparent>true</Transparent></Output><Exceptions>app lication/vnd.ogc.se+xml</Exceptions></ogc:GetMap> > > Any ideas what could be happening? > > Any help is appreciated. > > Thanks in advance. > > Regards, > > Un saludo, > > ······························································ > ···················· > > David Alda Fernández de Lezea > Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y > Biodiversidad > > IKT > Granja Modelo s/n · 01192 · Arkaute (Araba) > > ······························································ > ···················· > Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 > ······························································ > ···················· > email: [email protected] web: www.ikt.es > ······························································ > ···················· > > -------------------------------------------------------------- > ---------------- > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft > developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, > CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
