- #817 Renaming old 3D functions to the convention ST_3D (Nicklas Avén)
- #548 (sorta), ST_NumGeometries,ST_GeometryN now returns 1 (or the geometry)
instead of null for single geometries (Sandro Santilli, Maxime van Noppen)
+ - #287, #288 ST_AsText and ST_AsBinary don't force 2d anymore, using SQL/MM
+ notation for higher dimensions
* New Features *
(Regina Obe, Leo Hsu / Paragon Corporation /
funding provided by Hunter Systems Group)
- Overall Documentation proofreading and corrections. (Kasif Rasul)
- - ST_AsText support for higher dimensions (#287)
* Bug Fixes *
- #1335 ST_AddPoint returns incorrect result on Linux (Even Rouault)
uint8_t *wkb;
size_t wkb_size;
bytea *result;
- /* By default we are currently emitting OGC WKB (2D) only */
- uint8_t variant = WKB_SFSQL;
+ uint8_t variant = WKB_ISO;
/* Get a 2D version of the geometry */
geom = (GSERIALIZED*)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
lwgeom = lwgeom_from_gserialized(geom);
- /* Get a 2D version of the geometry if necessary */
- if ( lwgeom_ndims(lwgeom) > 2 )
- {
- LWGEOM *lwgeom2d = lwgeom_force_2d(lwgeom);
- lwgeom_free(lwgeom);
- lwgeom = lwgeom2d;
- }
-
/* If user specified endianness, respect it */
if ( (PG_NARGS()>1) && (!PG_ARGISNULL(1)) )
{