You describe GEOT-511. I abandoned it because I currently do what you currently do. If you want it, it's all yours.
Jesse Eichar <[EMAIL PROTECTED]> wrote on 11/03/2006 12:28:14 PM: > So my exact problem is this: > I have a map whose CRS was determined by the projection from a > Shapefile (WKT). I am adding a WMS layer which provides a set of > EPSG codes that it provides. I want to see if the CRS of the map > matches one of those EPSG codes. Currently we just hope that there > is an identifier indicating what CRS it is. We considered creating a > CRS for each EPSG code and creating the math transform, then checking > to see if it is an identity transform but that is too slow and > probably won't match as often as we want since its precision is most > likely very high. > > So I thought that maybe there was( or I could create) a loose > equals. For the comparison. If you would give me tips on how to do > this or (even better) provide me a better solution I'd appreciate it. > > Jesse > > > On 3-Nov-06, at 11:17 AM, Martin Desruisseaux wrote: > > > Paul Ramsey a écrit : > >> By "close enough" we generally mean "within the tolerances of > >> their serialized representation". > >> I could have two WKT representations, one with Origin (30.0, > >> 23.333333) and another with Origin (30.000001, 23.333333333333). > >> Yes, some definition of "close enough" would be required, but we > >> are really looking for "accidental" differences due to > >> serialization. > > > > There is no method performing this kind of "loose equals" for CRS > > at this time. This is something that we could add. But if > > "serialization" means "parsing WKT", then an other approach may be > > to add some (optional - yet an other hint?) intelligence into the > > WKT parser so that it understand that 30.000001 probably means > > 30.0. The layer may help when comparing two CRS parsed from WKT, > > but I'm not sure if it would help when one of those CRS come from > > EPSG database. > > > > Martin > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
