Some clarifications:

A and B are Postgis layers and not Geoserver layers. sqlViewLayer is a
GeoServer sql view layer.

I think the style parameter of my query is not right. It sholud be
STYLES=polygon,polygon



2011/6/24 Fernando Barbat <[email protected]>

> I have three questions about SQL Views:
>
> 1 - Is it posible to show a SQL View layer more than once in a WMS request
> using different sets of parameters?
> I've read this from SQL Views documentation:
>
> "The viewparams can be also specified on a layer per layer basis using the
> syntax viewparams=l1p1:v1;l1p2:v2,l2p1:v1;l2p2:v2,..., that is, separating
> each layer map with a comma. In this case the number of parameter maps must
> match the number of layers (or feature types) included in the request."
>
> Let's suppose I have to simple polygon layers A and B, and a SQL View layer
> named sqlViewLayer defined by this query: "select the_geom from
> %parameter%".
>
> However, the following query returns an error.
>
>
> http://localhost:8080/geoserver/wms?strict=true&LAYERS=sqlViewLayer,sqlViewLayer&VIEWPARAMS=parameter:A,parameter:B&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=polygon&FORMAT=image%2Fpng&WIDTH=2205&HEIGHT=822&SRS=...&BBOX=.
> ..
>
> <ServiceExceptionReport version="1.1.1">
> <ServiceException>
>       java.lang.IllegalArgumentException: Invalid key-value pair length (3
> elements). Invalid key-value pair length (3 elements).
> </ServiceException>
> </ServiceExceptionReport>
>
> What could be happening?
>
> 2 - Is it possible to apply different styles to each instance of the layer?
> 3 - Are SQL Views optimized to use the spatial index a backing Postgis
> table?
>
> Thanks
>
>
>
------------------------------------------------------------------------------
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-d2d-c1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to