Hi Andrea, Jukka,

 

Thanks for the help and I tried it. It works

 

My next question, is it possible to highlight a tree from the Layer
MV1461 with the coordinates 4672447.001,5676440.448  bigger as the
others? 

 

I do this with SLD_BODY for one layer:

 

http://172.24.51.124:8080/TestGS/ows?&SERVICE=wms&VERSION=1.1.1&Transpar
ent=true&layers=MV1461&REQUEST=GetMap&bbox=4672312,5676305,4672582,56765
75&SRS=EPSG:31468&styles=,,&WIDTH=350&HEIGHT=200&FORMAT=image/png&Filter
=(<Filter><DWithin><PropertyName>GEOM</PropertyName><Point><coordinates>
4672447.001,5676440.448</coordinates></Point><Distance
units='m'>50</Distance></DWithin></Filter>)&

SLD_BODY=<StyledLayerDescriptor
version='1.0.0'><NamedLayer><Name>fisbaum:MV1461</Name><UserStyle><Featu
reTypeStyle><Rule><Filter><PropertyIsEqualTo><PropertyName>ID</PropertyN
ame><Literal>2104012752</Literal></PropertyIsEqualTo></Filter><PointSymb
olizer><Graphic><Mark><WellKnownName>circle</WellKnownName><Fill><CssPar
ameter name='fill'>0x4DFF4D</CssParameter><CssParameter
name='fill-opacity'>1</CssParameter></Fill></Mark><Opacity>1</Opacity><S
ize>10</Size><Rotation>0</Rotation></Graphic></PointSymbolizer></Rule><R
ule><ElseFilter/><PointSymbolizer><Graphic><Mark><WellKnownName>circle</
WellKnownName><Fill><CssParameter
name='fill'>0x00FFFF</CssParameter><CssParameter
name='fill-opacity'>1</CssParameter></Fill></Mark><Opacity>1</Opacity><S
ize>5</Size><Rotation>0</Rotation></Graphic></PointSymbolizer></Rule></F
eatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>

 

But I need a request with more layers. The Style for the other Layers
should remain.

Any ideas for the request?

 

http://172.24.51.124:8080/TestGS/ows?&SERVICE=wms&VERSION=1.1.1&Transpar
ent=true&layers=Strassennetz,Nullpunkte,MV1461&REQUEST=GetMap&bbox=46723
12,5676305,4672582,5676575&SRS=EPSG:31468&styles=,,&WIDTH=350&HEIGHT=200
&FORMAT=image/png&Filter=(<Filter><DWithin><PropertyName>GEOM</PropertyN
ame><Point><coordinates>4672447.001,5676440.448</coordinates></Point><Di
stance units='m'>50</Distance></DWithin></Filter>)&

SLD_BODY=<StyledLayerDescriptor
version='1.0.0'><NamedLayer><Name>fisbaum:MV1461</Name><UserStyle><Featu
reTypeStyle><Rule><Filter><PropertyIsEqualTo><PropertyName>ID</PropertyN
ame><Literal>2104012752</Literal></PropertyIsEqualTo></Filter><PointSymb
olizer><Graphic><Mark><WellKnownName>circle</WellKnownName><Fill><CssPar
ameter name='fill'>0x4DFF4D</CssParameter><CssParameter
name='fill-opacity'>1</CssParameter></Fill></Mark><Opacity>1</Opacity><S
ize>10</Size><Rotation>0</Rotation></Graphic></PointSymbolizer></Rule><R
ule><ElseFilter/><PointSymbolizer><Graphic><Mark><WellKnownName>circle</
WellKnownName><Fill><CssParameter
name='fill'>0x00FFFF</CssParameter><CssParameter
name='fill-opacity'>1</CssParameter></Fill></Mark><Opacity>1</Opacity><S
ize>5</Size><Rotation>0</Rotation></Graphic></PointSymbolizer></Rule></F
eatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor>

 

Thanks a lot

Regards, Stephan

 

________________________________

Von: [email protected]
[mailto:[email protected]] Im Auftrag von
Andrea Aime
Gesendet: Donnerstag, 29. September 2011 15:53
An: Rahkonen Jukka
Cc: Klemm, Stephan - LIST; [email protected]
Betreff: Re: [Geoserver-users] getMap with multiple filter

 

On Thu, Sep 29, 2011 at 3:24 PM, Rahkonen Jukka
<[email protected]> wrote:

Hi,

 

I fear I can't help much with this but noticed two things which may be
worth checking.

- WMS version 1.0.0 is very rarely used so I would use version 1.1.1
instead

- You have Filter KVP two times as &Filter=.....&Filter=  I believe it
is wrong and WMS server takes only one, either the first or the latter.
Try to insert them into one &Filter=.  Comma is used as a separator in
other places in WMS.

 

If you use the XML sytanx for filter (instead of cql filter), that comes
from WFS,

and the structure of a filter list is a bit odd:

(<Filter>...</Filter>)(<Filter>...</Filter>) 

and so on

 

Cheers

Andrea

 

 

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to