On Thu, Mar 31, 2011 at 8:29 AM, Ben Caradoc-Davies <[email protected]> wrote: > Andrea, > > I don't have any good solutions for you, just a couple of observations: > > (1) app-schema never deals with feature arrays because delivers a stream of > features that the existing encoder FeatureCollection infrastructure deals > with. I'm suspect that any attempt to use feature arrays with app-schema may > have problems because of the need to remove duplicate ids and convert to > xlink:href. I have never seen app-schema used with arrays other than the top > level, and we always deploy GeoServer to use featureMember not > featureMembers.
The funny thing is, after days of banging my head on the desk, feature array was the only thing that worked. I asked how to set it up like app-schema (whatever that is, I could not figure it out), but got no answer. > (2) I see you used ApplicationSchemaXSD/ApplicationSchemaConfiguration; > these are not from app-schema. We use custom > AppSchemaXSD/AppSchemaConfiguration to hook into gt-app-schema-resolver and > have better resource path handling behaviour for cross-package schema > resolution. I don't think this makes any difference in your case. > > Anyway, I feel that the ability to encode complex features is hanging by a > thread, and it took us years to get to this point! It is very complicated, > and nailed into place by a gigantic unit test infrastructure. I am not > surprised that you have suffered getting this example to work. Yeah, that's the problem, app-schema was built without laying down the foundations: there are no decent type builders, feature builders, the various collection wrappers to retype, reproject, gml encoding works on the specific case generated by app-schema but there is nothing telling what structure might that be, and so on. My conclusion working with complex features is that if app-schema store fits the bill and the target schema follows the same rules as gml there is a chance to put togheter somethin , otherwise one should really assume complex features are not really there and plan accordingly. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
