On Sat, Oct 2, 2010 at 7:45 PM, Justin Deoliveira <[email protected]> wrote:
> Again this is just an idea at this point but the idea would be to represent
> the geometry fully via the geotools feature model rather than a JTS
> geometry. So in very rough pseudo code:
> ComplexAttribute genericMetaData = createComplexAttribute(...)
> ComplexAttribute metadataProperty = createComplexAttribugte(...,
> genericMetadata)
> ...
> ComplexAttribute exterior = createCompexAttribute(...)
> ComplexAttribute polygon = createComplexAttribute(..., metadataProperty,
> polygon)
> And then pass the "polygon: ComplexAttribute to the encoder. And because the
> polygon is not a jts object the regualr GMLPolygonBinding would not execute.
> INstead processing would move up the binding chain to a binding that
> can generically encode any ComplexAttribute instance.
> Does that make any sense?

It does. At this point this begs the question of how I make the app schema
store generate such structure.
In the end I have to serve those as WFS 1.1, so on one side the
DescribeFeatureType should
report the schema with GML geoemtries, and on the GetFeature side there should
be the app schema somehow building that structure and a custom binding
generating
the expected GML result. Hummm... not quite sure how to do that.

As a backup plan I was thinking of creating a non GML structure with
app schema like I reported before (the <GeometryWithMetadata> one)
and then perform an XSLT transform towards the desired result.

Maybe using a dispatcher callback that intercepts the GetFeature input
and mangles the filters, its output to xslt it, and DescribeFeatureType to
lie about the schema (as the app schema would report the modified one
I'd use to drive the creation of <GeometryWithMetadata>.

Oh my poor head...

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

Reply via email to