On Wed, Aug 29, 2012 at 5:48 PM, Justin Deoliveira <[email protected]>wrote:

> There is some stuff in the gml parser that kind of does this. I thought
> Jody may have broken this out into a utility method at some point but maybe
> not. Anyways, this method sort of does what you are looking for i think
> although i don't exactly.
>
>
> https://github.com/geotools/geotools/blob/master/modules/extension/xsd/xsd-gml2/src/main/java/org/geotools/gml2/bindings/GML2ParsingUtils.java#L210
>

Ah ha. But what I really need is one that builds complex features :-)

Here is the actual problem: the CSW records are going to be represented by
Features, so I need
to build the features and the feature types for those.
Even the basic dublin core record is a complex type, so I either have to
build it by hand (a legit
possibility) or parse it from xsd schema somehow.

The thing is actually quite fun, because the record contents are a list of
dc:SimpleElement, with
a long list of actual elements in that substition group (so you don't get
to know which actual
elements you have in the Record until you build its feature)

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/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to