Hi all,
I'm using GWP WMS and I'm trying to highlight some features using custom GWP WMS parameter (HIGHLIGHT and HLCOLOR) but it seems does not works.
This is my GetMap request:
http://localhost:8087/519f6f0c-95ed-4bfc-b4f4-18e7fa363468.mapdef?TRANSPARENT=true&LAYERS=SDR_PDR&FORMAT=png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A3003&BBOX=1516637,5062636,1518480,5064480&WIDTH=1024&HEIGHT=1024&HIGHLIGHT=SDR_PDR:1301&HLCOLOR=ffff00
In order to be sure about the id value i've execute a GetFeatureInfo over the object and this is the result:
< GetFeatureInfoResponse > < FeatureKeysInLevel level="SDR_PDR" keys="1301"/ > < /GetFeatureInfoResponse > Some suggetions?
Thanks
Fabio
Hi Fabio. When you say it doesn't work, what do you get exactly? Does the server return an error or does it return the correct bitmap without the highlight applied ?
Did you check the GeoWebPublisher server log for possible error messages ?
Thanks,
Martin
Hi Martin,
I've not errors from my wms request. Bitmat is correctly rendered. The only problem is that the element is not highlighetd.
It's like i'm missing something...
Hi Fabio,
The id you need to send to the highlight argument is a rendition id. To get the rendition id from the feature key, you should execute a GetRenditionId command similar to this one:
http://localhost:8087/2fe1933d-79b3-47b7-8f33-b789fdf432fa.mapdef?cmd=GetRenditionId&layer=Parcel&graphicalids=2092
HTH
Sylvain