I don't think anything was going wrong; PrimitiFactoryImpl had a check for crs == otherCrs changing it to equals ignore metadata got us back in the game.
The question is should we look up in a ReferencingFactoryContainer WeakHash set to see if we can find a "local" CoordinateReferenceSystem with the same definition (in order to save on memory). Jody > Le mardi 11 septembre 2007 à 17:02 -0700, Jody Garnett a écrit : > >> How were we getting two equals but not identical >> CoordinateReferenceSystem objects in our JVM (especially after Martin >> goes to so much trouble to "intern" them in a WeakHashMap?) >> Serialization between client and server. >> > I noticed that "internalization" of a serialized CRS (in the sense of > java.io.Serializable) doesn't work as expected. The referencing module > contains serialization tests that I disabled a long time ago because I > didn't managed to find why it was not working. > > > >> Option: >> - store the identifier, mark the crs field as transient and look it up >> as needed? Only works if the client has access to the same authorities >> - store WKT? We just proved that that is lossy >> > > A third option is to investigate what is going wrong with CRS > serialization... > > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
