[geos-devel]createEmptyGeometry()
Mateusz Łoskot
mateusz at loskot.net
Sun Apr 2 20:47:05 EDT 2006
strk at refractions.net wrote:
> Sorry for the confusion.
> I checked again and LineString *refuses* to construct
> w/out a CoordinateSequence pointer.
> If arg is NULL it creates an EMPTY CoordinateSequence.
> So there's no problem in the missing checks.
OK.
> About general plan. I'm adding assertion checking
> for Out-Of-Bounds condition in the random
> access operators. The idea is to abort on developers
> errors and throw exceptions on malformed input or
> when we can do something about it (like TopologyException
> case).
Good plan :-)
> Note that I'm not proceeding with full code scan, but
> adding assertions whenever I review a single file for
> some other reason.
OK.
Cheers
--
Mateusz Łoskot
http://mateusz.loskot.net
More information about the geos-devel
mailing list