On Sat, May 28, 2011 at 10:01 AM, <christian.muel...@nvoe.at> wrote: > Yep, I will examine this if I see the concrete differences. Another > question, > for jdbc database without spatial support the referencing info is stored in > 4 double attributes minx,miny,maxx,maxy. I have to generate a geometry with > a geometry descriptor within the feature type. Best practice ?
Uuh, hard question this one. We used to have a "geometryless" store that could do this job, as well as mapping x/y to points, working out of a generic jdbc connection, and I guess it's still there in unsupported. However, in my opinion it is quite far from a best practice, mapping 2/4 attributes to a geometry has nothing to do with the fact the source is a jdbc one, it could be done on top of any kind of existing store. So if I were to do that I would create a generic wrapper FeatureSource that working against another source is able to perform the attribute remapping while reading features, filter back-mapping when filtering, and if you really want to be thorough, also back map geometries while writing. <PipeDreamMode>enabled</PipeDreamMode> Actually this would be a specific case of a generic "transforming" data store wrapper that can apply generic, pluggable transformations on top of another store. Other interesting transformations would be renaming/retyping attributes, creating new attributes out of cql expressions or running wps processes on top of the original data. Each transformation would advertise itself as invertibile or not and would be able to map backwards filters, as well as transform back/forth data and feature types. <PipeDreamMode>disabled</PipeDreamMode> The above is nice, unfortunately it's also a large batch of work, it would probably require some funding. 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 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 ------------------------------------------------------- ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel