Hi,
How can I get a limited results in WFS using url? For example, http://localhost:8080/geoserver/wfs?request=GetFeature&typeName=cite:road&version=1.1.0&CQL_FILTER=name%20like%‘road’. It may find hundreds of results. But if I want the GML contains no more than 50 results, how can I change the cql filter to achieve this goal?
2011/5/14 龙龙 <463487397@anonymised.com>:
Hi,
How can I get a limited results in WFS using url? For example,
http://localhost:8080/geoserver/wfs?request=GetFeature&typeName=cite:road&version=1.1.0&CQL_FILTER=name%20like%'road'\. It
may find hundreds of results. But if I want the GML contains no more than 50
results, how can I change the cql filter to achieve this goal?
Add &maxFeatures=50 to the request
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
-------------------------------------------------------
Try with maxfeatures=1
From: 龙龙 [mailto:463487397@anonymised.com]
Sent: Sunday, 15 May 2011 1:44 AM
To: geoserver-users
Subject: [Geoserver-users] How can I get a limited results in WFS [SEC=Unclassified]
Hi,
How can I get a limited results in WFS using url? For example, http://localhost:8080/geoserver/wfs?request=GetFeature&typeName=cite:road&version=1.1.0&CQL_FILTER=name%20like%‘road’. It may find hundreds of results. But if I want the GML contains no more than 50 results, how can I change the cql filter to achieve this goal?
Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
Visit our web site at http://www.antarctica.gov.au/