Just a quick email to go over a design question for anyone interested .... Mark Leslie has added Curve to PostGIS (just the data structure; it converts itself into a LineString or Polygon at drop of a hat in order to do geometry operations) and would like to show this in WMS for the PostGIS codesprint.
As such I would like to tech geotools about this WKT/WKB representation and hook it up to the rendering system. So the question is how to represent this data structrure in Java code: - Make my own JTS GeometryFactory with an extra create method and subclass Geometry (the Geometry subclass would delegate to an internal LineString that would be lazily created as needed - something I would not expect is needed when rendering). I would arrange the JTSGeometryFactoryFinder to return one of these and keep going from there. - Make use of the unsupported/geometry module and go through similar motions (write Geometry -> Shape and modify the WKT reader (I think I only have a WKT reader for that geometry module). This has the advantage of the data structures already being in order; the disadvantage is any code assuming JTS Geometry Any input on this idea; it is mostly proof of concept work that would take place on a branch. Jody ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
