Changes between Version 44 and Version 45 of DevWikiEmptyGeometry


Ignore:
Timestamp:
07/29/21 14:57:33 (3 years ago)
Author:
pramsey
Comment:

Change return type for GeometryN(empty) to NULL, as that results in consistency with NumGeometries and also InteriorRingN.

Legend:

Unmodified
Added
Removed
Modified
  • DevWikiEmptyGeometry

    v44 v45  
    4242 * ST_NRings(empty) == 0
    4343 * ST_NumPoints(empty) == 0
    44  * ST_GeometryN(empty, n) == empty
    45  * ST_InteriorRingN(empty, n) == empty
    46   * NOTE that manual page says that an out-of-range n triggers a return of NULL, so maybe this should be NULL, being any n out of the empty range (strk said)
     44 * ST_GeometryN(empty, n) == NULL
     45 * ST_InteriorRingN(empty, n) == NULL
    4746 * ST_ExteriorRing(empty) == empty
    4847 * ST_Area(empty) == 0