On Sat, Sep 3, 2011 at 2:14 PM, Jody Garnett <[email protected]> wrote: > I'm inclined to treat geometry as a special case and declare we cannot > actually sort on it, what do you think? > > I am trying to sort out what sorting on geometry means? Would that end up > being kind of like a spatial index? Suppose I would need to look what the > geometry > compare does.
Look no further than the javadoc: http://www.vividsolutions.com/jts/javadoc/com/vividsolutions/jts/geom/Geometry.html#compareTo(java.lang.Object) Does not appear to be very useful to me, seems to sort them by geometry type. > The case I have in mind for this functionality is simply as a backup plan > for to allow a general case FeatureCollection.sort method to work - so that > we can do a good dissolve. Avoiding sorting geometry will not effect this > case one way or another. Yep, it won't be affected > If I understand your statement earlier; for the DBMS case the sorting would > be done by the database and the case you describe would not come up? If we explicitly forbid sorting on geometry, yep, it would not come up. 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 ------------------------------------------------------- ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
