[postgis-devel] Re: Implementing support for PostGIS spatial types in JPOX
Markus Schaber
schabi at logix-tt.com
Mon May 8 04:35:57 PDT 2006
Hi, Thomas and Stefan,
>>1.) org.postgis.Point (and other classes) use public fields to store all
>>their data! What's the reason for this rather odd design decision?
There's another discussion topic here:
At least for JTS, their general design approach is to treat all geometry
objects as unmodifiable, and instead of modifying a geometry in place,
operations create new geometries. I know that their code does not 100%
reflect his, but it is what they advise.
Having a similar model for PostGIS would mean to make all public fields
final, or to only provide getter methods and no setter methods. How
would this interfere with your plans?
Thanks,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
More information about the postgis-devel
mailing list