12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>118 / 310Synopsissmallint ST_Zmflag(geometry geomA);DescriptionReturns ZM (dimension semantic) flag of the geometries as a small int. Values are: 0=2d, 1=3dm, 2=3dz, 3=4d.This function supports 3d and will not drop the z-index.This method supports Circular Strings and CurvesExamplesSELECT ST_Zmflag(ST_GeomFromEWKT(’LINESTRING(1 2, 3 4)’));st_zmflag-----------0SELECT ST_Zmflag(ST_GeomFromEWKT(’LINESTRINGM(1 2 3, 3 4 3)’));st_zmflag-----------1SELECT ST_Zmflag(ST_GeomFromEWKT(’CIRCULARSTRING(1 2 3, 3 4 3, 5 6 3)’));st_zmflag-----------2SELECT ST_Zmflag(ST_GeomFromEWKT(’POINT(1 2 3 4)’));st_zmflag-----------3See AlsoST_CoordDim, ST_NDims, ST_Dimension7.5 Geometry Editors7.5.1 ST_AddPointST_AddPoint — Adds a point to a LineString before point (0-based index).Synopsisgeometry ST_AddPoint(geometry linestring, geometry point);geometry ST_AddPoint(geometry linestring, geometry point, integer position);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!