Dear all
I'm making a WFS request with multiple CQL_FILTERs - one for each layer -
along the following lines, and it works a treat:
request: 'GetFeature',
service: 'WFS',
version: '1.1.0',
layers: 'layer1,layer2',
typename: 'layer1,layer2',
cql_filter: 'thing between 1 and 10;otherthing between 2 and 20',
srs: 'EPSG:27700',
format: 'text/xml'
So 'thing between 1 and 10' gets applied to 'layer1'.
Similarly, 'otherthing between 2 and 20' is applied to 'layer2'.
I'd like to use the propertyname parameter to reduce the size of the
response from the server, but I don't know how to delimit layer-specific
fields. For example, the following doesn't work:
propertyname: 'id,thing;id,otherthing'
Any ideas on what the delimiter should be, or whether this is even possible?
Many thanks
Stuart
--
View this message in context: http://www.nabble.com/WFS-request-with-PROPERTYNAMEs-for-multiple-layers-tp23853132p23853132.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hi Stuart,
The following syntax should work:
propertyName: '(id,thing)(id,otherthing)'
-Justin
gingerbbm wrote:
Dear all
I'm making a WFS request with multiple CQL_FILTERs - one for each layer -
along the following lines, and it works a treat:
request: 'GetFeature',
service: 'WFS',
version: '1.1.0',
layers: 'layer1,layer2',
typename: 'layer1,layer2',
cql_filter: 'thing between 1 and 10;otherthing between 2 and 20',
srs: 'EPSG:27700',
format: 'text/xml'
So 'thing between 1 and 10' gets applied to 'layer1'.
Similarly, 'otherthing between 2 and 20' is applied to 'layer2'.
I'd like to use the propertyname parameter to reduce the size of the
response from the server, but I don't know how to delimit layer-specific
fields. For example, the following doesn't work:
propertyname: 'id,thing;id,otherthing'
Any ideas on what the delimiter should be, or whether this is even possible?
Many thanks
Stuart
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
Perfect! Thanks so much 
--
View this message in context: http://www.nabble.com/WFS-request-with-PROPERTYNAMEs-for-multiple-layers-tp23853132p23866250.html
Sent from the GeoServer - User mailing list archive at Nabble.com.