On Sat, Dec 8, 2012 at 10:04 PM, <[email protected]> wrote:
> **
> Hi,
> Great analysis, it works when I change the attribute to something like
> "geom". Any suggestions on how to build a xpath like feature since xpath is
> used in my fiter object?
>
What you want is a "complex feature", represented by the Feature class.
There is no good support in terms of creating one of these, something is
moving on trunk right now
but I'm not sure if 9.0 will have support on part with simple features or
not.
In the meantime, still on trunk, I needed to build complex features to
support the CSW work
in GeoServer so I've picked and adapted a few classes here:
https://github.com/geoserver/geoserver/tree/master/src/community/csw/csw-api/src/main/java/org/geotools/feature
Even with those building a particular type of feature is still a lot of
work, so I also created specialized
builders helping with the job. Here is some code the CSW dublin core
feature type, and
a builder to simplify the construction of one of its features:
https://github.com/geoserver/geoserver/blob/master/src/community/csw/csw-api/src/main/java/org/geoserver/csw/records/CSWRecordDescriptor.java
https://github.com/geoserver/geoserver/blob/master/src/community/csw/csw-api/src/main/java/org/geoserver/csw/records/CSWRecordBuilder.java
Hope this helps
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 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users