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>243 / 310SELECT ST_AsEWKT(the_geom)FROM(SELECT ST_Locate_Between_Measures(ST_GeomFromEWKT(’MULTILINESTRINGM((1 2 3, 3 4 2, 9 4 3),(1 2 3, 5 4 5))’),1.5, 3) As the_geom) As foo;st_asewkt-----------------------------------------------------------------GEOMETRYCOLLECTIONM(LINESTRING(1 2 3,3 4 2,9 4 3),POINT(1 2 3))--Geometry collections are difficult animals so dump them--to make them more digestableSELECT ST_AsEWKT((ST_Dump(the_geom)).geom)FROM(SELECT ST_Locate_Between_Measures(ST_GeomFromEWKT(’MULTILINESTRINGM((1 2 3, 3 4 2, 9 4 3),(1 2 3, 5 4 5))’),1.5, 3) As the_geom) As foo;st_asewkt--------------------------------LINESTRINGM(1 2 3,3 4 2,9 4 3)POINTM(1 2 3)See AlsoST_Dump, ST_Locate_Along_Measure7.10.6 ST_LocateBetweenElevationsST_LocateBetweenElevations — Return a derived geometry (collection) value with elements that intersect the specified range ofelevations inclusively. Only 3D, 4D LINESTRINGS and MULTILINESTRINGS are supported.Synopsisgeometry ST_LocateBetweenElevations(geometry geom_mline, float elevation_start, float elevation_end);DescriptionReturn a derived geometry (collection) value with elements that intersect the specified range of elevations inclusively. Only 3D,3DM LINESTRINGS and MULTILINESTRINGS are supported.Availability: 1.4.0This function supports 3d and will not drop the z-index.ExamplesSELECT ST_AsEWKT(ST_LocateBetweenElevations(ST_GeomFromEWKT(’LINESTRING(1 2 3, 4 5 6)’),2,4)) As ewelev;ewelev----------------------------------------------------------------MULTILINESTRING((1 2 3,2 3 4))SELECT ST_AsEWKT(ST_LocateBetweenElevations(

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

Saved successfully!

Ooh no, something went wrong!