On Fri, Sep 7, 2012 at 4:21 PM, Biyan Li <[email protected]> wrote:
> Just wondering if anybody has some sample source codes in java that uses
> Geoserver’s WFS operations to retrieve spatial features and their
> attributes.
>
GeoTools has a WFSDataStore plugin, which is unsupported (no maintainer)
but it's working and that's
what GeoServer uses for WFS cascading.
Being a data store you can use it pretty much the same way as any other
geotools store.
This is old and might not work out of the box, but should give you an hint
to get started:
http://svn.osgeo.org/geotools/tags/2.7.1/demo/example/src/main/java/org/geotools/demo/QuickstartWFS.java
And here some hints on how to apply filters:
http://docs.geotools.org/stable/tutorials/filter/query.html
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users