[mirror] PostGIS spatial database extension to PostgreSQL https://postgis.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Welcome to the Initial version of LWGEOM.
More information is available on the PostGIS user's mailing list and
the PostGIS developer's mailing list.
The LWGEOM is very much like the original PostGIS GEOMETRY type. The
main differences are:
a) LWGEOMs are much smaller than the PostGIS GEOMETRY
b) LWGEOMs natively support 2d, 3d, and 4d points
c) LWGEOMs are indexed using single-precision bounding boxes. This
make the indexes significantly smaller than PostGIS GEOMETRY
d) LWGEOMs are internally very similar to OGC WKB
e) The "normal" view of LWGEOMs is OGC WKB - PostGIS GEOMETRY is OGC WKT
f) PostGIS geometries have a built-in BOX3D. LWGEOMs have an *optional*
BOX2D (see below).
Also included with the LWGEOMs is a type called 'box2d'. This is
very similar to PostGIS BOX3D type:
a) BOX2Ds are 2D - BOX3D is 3D
b) BOX2Ds are represented by single-precision floating point numbers,
while BOX3Ds are double-precision floating point numbers.
c) BOX2Ds will