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>121 / 310See AlsoST_Rotate, ST_Scale, ST_Translate, ST_TransScale7.5.3 ST_Force_2DST_Force_2D — Forces the geometries into a "2-dimensional mode" so that all output representations will only have the X andY coordinates.Synopsisgeometry ST_Force_2D(geometry geomA);DescriptionForces the geometries into a "2-dimensional mode" so that all output representations will only have the X and Y coordinates.This is useful for force OGC-compliant output (since OGC only specifies 2-D geometries).This method supports Circular Strings and CurvesExamplesSELECT ST_AsEWKT(ST_Force_2D(ST_GeomFromEWKT(’CIRCULARSTRING(1 1 2, 2 3 2, 4 5 2, 6 7 2, 56 2)’)));st_asewkt-------------------------------------CIRCULARSTRING(1 1,2 3,4 5,6 7,5 6)←↪SELECT ST_AsEWKT(ST_Force_2D(’POLYGON((0 0 2,0 5 2,5 0 2,0 0 2),(1 1 2,3 1 2,1 3 2,1 1 2)) ←↪’));st_asewkt----------------------------------------------POLYGON((0 0,0 5,5 0,0 0),(1 1,3 1,1 3,1 1))See AlsoST_Force_3D7.5.4 ST_Force_3DST_Force_3D — Forces the geometries into XYZ mode. This is an alias for ST_Force_3DZ.Synopsisgeometry ST_Force_3D(geometry geomA);

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

Saved successfully!

Ooh no, something went wrong!