[postgis-users] new WKT and WKB goodies in CVS

David Blasby dblasby at refractions.net
Wed Aug 6 13:16:35 PDT 2003


I've add a WKB parser to postgis, plus all the support functions around 
it.  I've also added/changed a few WKT functions. I've also changed the 
WKB 3d flag.

I might be making a few function name changes for OGC SF SQL 
conformance.  As far as I know, there are no longer any major 
conformance tasks to do - I just need to read the spec to make sure 
everything is there and

GEOS functionality is mostly complete - I'm just waiting on Yuri to do a 
CVS commit.

NOTE:   I'm now using the 'compliant' version of 3d WKB geometries 
pointed out by Frank Warmerdam.  That means 3d types have  0x80000000
added to them (instead of the old  0x8000).  If you want the old 
behavior, change line 67 of postgis_inout.c to 0x8000.

NEW FUNCTIONS  (WKB)
-------------

FUNCTION GeomFromWKB (wkb);
FUNCTION GeomFromWKB (wkb,int);
FUNCTION PointFromWKB (wkb,int);
FUNCTION PointFromWKB (wkb);
FUNCTION LineFromWKB (wkb,int);
FUNCTION LineFromWKB (wkb);
FUNCTION PolyFromWKB (wkb,int);
FUNCTION PolyFromWKB (wkb);
FUNCTION MPointFromWKB (wkb,int);
FUNCTION MPointFromWKB (wkb);
FUNCTION MLineFromWKB (wkb,int);
FUNCTION MLineFromWKB (wkb);
FUNCTION MPolyFromWKB (wkb,int);
FUNCTION MPolyFromWKB (wkb);
FUNCTION GeomCollFromWKB (wkb,int);
FUNCTION GeomCollFromWKB (wkb);

CHANGED/NEW FUNCTIONS (WKT)
---------------------

FUNCTION geometryfromtext (text,int4);
FUNCTION geometryfromtext (text);
FUNCTION geomfromtext (text,int4);
FUNCTION geomfromtext (text);
FUNCTION polyfromtext (text,int4);
FUNCTION mpolyfromtext (text,int4);
FUNCTION linefromtext (text,int4);
FUNCTION mlinefromtext (text,int4);
FUNCTION pointfromtext (text,int4);
FUNCTION mpointfromtext (text,int4);
FUNCTION geomcollfromtext (text,int4);
FUNCTION polyfromtext (text);
FUNCTION mpolyfromtext (text);
FUNCTION linefromtext (text);
FUNCTION mlinefromtext (text);
FUNCTION pointfromtext (text);
FUNCTION mpointfromtext (text);
FUNCTION geomcollfromtext (text);






More information about the postgis-users mailing list