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>133 / 310Examples--Version 1: scale X, Y, ZSELECT ST_AsEWKT(ST_Scale(ST_GeomFromEWKT(’LINESTRING(1 2 3, 1 1 1)’), 0.5, 0.75, 0.8));st_asewkt--------------------------------------LINESTRING(0.5 1.5 2.4,0.5 0.75 0.8)--Version 2: Scale X YSELECT ST_AsEWKT(ST_Scale(ST_GeomFromEWKT(’LINESTRING(1 2 3, 1 1 1)’), 0.5, 0.75));st_asewkt----------------------------------LINESTRING(0.5 1.5 3,0.5 0.75 1)See AlsoST_Affine, ST_TransScale7.5.20 ST_SegmentizeST_Segmentize — Return a modified geometry having no segment longer than the given distance. Distance computation isperformed in 2d only.Synopsisgeometry ST_Segmentize(geometry geomA, float max_length);DescriptionReturns a modified geometry having no segment longer than the given distance. Distance computation is performed in 2d only.Availability: 1.2.2NoteThis will only increase segments. It will not lengthen segments shorter than max lengthExamplesSELECT ST_AsText(ST_Segmentize(ST_GeomFromText(’MULTILINESTRING((-29 -27,-30 -29.7,-36 -31,-45 -33),(-45 -33,-46 -32))’),5));st_astext-------------------------------------------------------------------------------------------------- ←MULTILINESTRING((-29 -27,-30 -29.7,-34.886615700134 -30.758766735029,-36 -31,-40.8809353009198 -32.0846522890933,-45 -33),(-45 -33,-46 -32))(1 row)

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

Saved successfully!

Ooh no, something went wrong!