Wrapper Functions for PostGIS geography

Having done a lot of work with PostGIS geometry and geography I decided that I needed some wrapper functions to force more consistency in my use.

The wrapper functions are as follows are are available at GitHub

ST_AddMeasure(geography,float8,float8);
ST_AddPoint(geography,geography);
ST_AddPoint(geography,geography,integer);
ST_CoordDim(geography,geography);
ST_Dimension(geography);
ST_EndPoint(geography);
ST_ExteriorRing(geography);
ST_FlipCoordinates(geography);
ST_GeometryN(geography,integer);
ST_GeometryType(geography);
ST_InteriorRingN(geography,integer);
ST_IsClosed(geography);
ST_IsEmpty(geography);
ST_IsValid(geography);
ST_IsValid(geography,integer);
ST_IsValidDetail(geography);
ST_IsValidDetail(geography,integer);
ST_IsValidReason(geography);
ST_IsValidReason(geography,integer);
ST_M(geography);
ST_NPoints(geography);
ST_NumGeometries(geography);
ST_NumInteriorRings(geography);
ST_NumPoints(geography);
ST_PointN(geography,integer);
ST_Points(geography);
ST_RemovePoint(geography,integer);
ST_SetPoint(geography,integer,geography);
ST_StartPoint(geography);
ST_X(geography);
ST_Y(geography);
ST_Z(geography);

Leave a Reply

Your email address will not be published. Required fields are marked *