Le mardi 11 septembre 2007 à 10:35 -0700, Jody Garnett a écrit : > Other than this the two look very similar... it is absolutely killing me > to have to cast to AbstractCRS in order to perform this check; we can do > this in all the GeometryFactory methods but I cannot do it in client > code - we need to figure out a way to make this functionality available > through the interfaces.
You means a way to invoke CRS.equalsIgnoreMetadata(...) without the current requirement (in "equalsIgnoreMetadata" implementation) that both CRS are GeoTools implementations? Yes I realize that we have a strong limitation here. I see to possible approachs: 1) Wraps non-geotools implementations into geotools ones under the hood. Hopefully the cost would not be that high. 2) Promote the current AbstractIdentifiedObject.equals(..., boolean) method to GeoAPI. But I would be reluctant to do that since it would require defining its behavior in the contract for every IdentifiedObject subclasses, and can't pretend that we got them right in GeoTools implementation. Martin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel