Andrea can you store it on the GeometryAttribute somehow? There may be a user map or something for you to record extra information in.
Jody On Fri, Oct 1, 2010 at 10:45 PM, Andrea Aime <[email protected]> wrote: > Hi, > the fancy app-schema I'm dealing with these days has the following twist: > > <gml:Polygon> > <gml:metaDataProperty> > <gml:GenericMetaData> > <extention> > <area uom="m2">8476875.000000</area> > <length uom="m">108.706000</length> > <width uom="m">13.863100</width> > </extention> > </gml:GenericMetaData> > </gml:metaDataProperty> > <gml:exterior> > <gml:LinearRing> > <gml:posList> > 31.214218 43.833347 31.215328 43.833862 31.216240 43.833717 ... > </gml:posList> > </gml:LinearRing> > </gml:exterior> > </gml:Polygon> > > See the metadata property? Well, GenericMetadata can contain xs:any. > And it's part > of the GML standard, not something made up for the occasion. > > I wondering how one can make the above parseable, WFS queriable, and of course > generate it as GML3 output too. And coming out empty handed if I only > consider what GeoTools > can offer me. > > One potential place to store those metadatas could be the geometry > user map... but it's > normally already busy with the CRS. > > Even assuming it was free, the encoder would normally just ignore it... > > And there would also be the issue of representing that nesting with > the complex data store > starting from the usual flat table. Does not seem to be doable either, > I mean, I see no > way to attach metadata read from a flat feature type into the geometries. > > I guess I'll have to skip the geotools parser, write my own > (thankfully the structure > is always going to be the same so it's not too hard), store those metadata as > a > property with multiplicity > 1, and when it's time to output, xlst it > into the right shape... > (and forget about making those metadata queriable) > > Any better suggestion? :) > > Cheers > Andrea > > > ----------------------------------------------------- > Ing. Andrea Aime > Senior Software Engineer > > GeoSolutions S.A.S. > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584962313 > fax: +39 0584962313 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.linkedin.com/in/andreaaime > http://twitter.com/geowolf > > ----------------------------------------------------- > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
