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>81 / 310Examples: Using Array versionSELECT ST_MakeLine(ARRAY(SELECT ST_Centroid(the_geom) FROM visit_locations ORDER BYvisit_time));←↪--Making a 3d line with 3 3-d pointsSELECT ST_AsEWKT(ST_MakeLine(ARRAY[ST_MakePoint(1,2,3),ST_MakePoint(3,4,5), ST_MakePoint(6,6,6)]));st_asewkt-------------------------LINESTRING(1 2 3,3 4 5,6 6 6)See AlsoST_AsEWKT, ST_AsText, ST_GeomFromText, ST_MakePoint7.3.22 ST_MakeEnvelopeST_MakeEnvelope — Creates a rectangular Polygon formed from the given minimums and maximums. Input values must be inSRS specified by the SRID.Synopsisgeometry ST_MakeEnvelope(double precision xmin, double precision ymin, double precision xmax, double precision ymax,integer srid);DescriptionCreates a rectangular Polygon formed from the minima and maxima. by the given shell. Input values must be in SRS specifiedby the SRID.Availability: 1.5Example: Building a bounding box polygonSELECT ST_AsText(ST_MakeEnvelope(10, 10, 11, 11, 4326));st_asewkt-----------POLYGON((10 10, 10 11, 11 11, 11 10, 10 10))See AlsoST_MakePoint, ST_MakeLine, ST_MakePolygon7.3.23 ST_MakePolygonST_MakePolygon — Creates a Polygon formed by the given shell. Input geometries must be closed LINESTRINGS.Synopsisgeometry ST_MakePolygon(geometry linestring);geometry ST_MakePolygon(geometry outerlinestring, geometry[] interiorlinestrings);

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

Saved successfully!

Ooh no, something went wrong!