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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>125 / 310DescriptionConverts the geometry into a GEOMETRYCOLLECTION. This is useful for simplifying the WKB representation.Availability: 1.2.2, prior to 1.3.4 this function will crash with Curves. This is fixed in 1.3.4+This function supports 3d and will not drop the z-index.This method supports Circular Strings and CurvesExamplesSELECT ST_AsEWKT(ST_Force_Collection(’POLYGON((0 0 1,0 5 1,5 0 1,0 0 1),(1 1 1,3 1 1,1 3 ←↪1,1 1 1))’));st_asewkt----------------------------------------------------------------------------------GEOMETRYCOLLECTION(POLYGON((0 0 1,0 5 1,5 0 1,0 0 1),(1 1 1,3 1 1,1 3 1,1 1 1)))SELECT ST_AsText(ST_Force_Collection(’CIRCULARSTRING(220227 150406,2220227 150407,220227150406)’));st_astext--------------------------------------------------------------------------------GEOMETRYCOLLECTION(CIRCULARSTRING(220227 150406,2220227 150407,220227 150406))(1 row)←↪See AlsoST_AsEWKT, ST_Force_2D, ST_Force_3DM, ST_Force_3D, ST_GeomFromEWKT7.5.9 ST_ForceRHRST_ForceRHR — Forces the orientation of the vertices in a polygon to follow the Right-Hand-Rule.Synopsisboolean ST_ForceRHR(geometry g);DescriptionForces the orientation of the vertices in a polygon to follow the Right-Hand-Rule. In GIS terminology, this means that the areathat is bounded by the polygon is to the right of the boundary. In particular, the exterior ring is orientated in a clockwise directionand the interior rings in a counter-clockwise direction.This function supports 3d and will not drop the z-index.

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

Saved successfully!

Ooh no, something went wrong!