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>197 / 310longest straight distance to travel from one part of an elegant city to the other Note the max distance = to the length of theline.SELECT ST_AsText(ST_LongestLine(c.the_geom, c.the_geom)) As llinewkt,ST_MaxDistance(c.the_geom,c.the_geom) As max_dist,ST_Length(ST_LongestLine(c.the_geom, c.the_geom)) As lenllFROM (SELECT ST_BuildArea(ST_Collect(the_geom)) As the_geomFROM (SELECT ST_Translate(ST_SnapToGrid(ST_Buffer(ST_Point(50 ,generate_series ←↪(50,190, 50)),40, ’quad_segs=2’),1), x, 0) As the_geomFROM generate_series(1,100,50) As x) AS foo) As c;llinewkt | max_dist | lenll---------------------------+------------------+------------------LINESTRING(23 22,129 178) | 188.605408193933 | 188.605408193933See AlsoST_MaxDistance, ST_ShortestLine, ST_LongestLine7.8.29 ST_OrderingEqualsST_OrderingEquals — Returns true if the given geometries represent the same geometry and points are in the same directionalorder.Synopsisboolean ST_OrderingEquals(geometry A, geometry B);DescriptionST_OrderingEquals compares two geometries and t (TRUE) if the geometries are equal and the coordinates are in the same order;otherwise it returns f (FALSE).

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

Saved successfully!

Ooh no, something went wrong!