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>79 / 310DescriptionCreates a BOX2D defined by the given point geometries. This is useful for doing range queriesExamples--Return all features that fall reside or partly reside in a US national atlas coordinate ←↪bounding box--It is assumed here that the geometries are stored with SRID = 2163 (US National atlas ←↪equal area)SELECT feature_id, feature_name, the_geomFROM featuresWHERE the_geom && ST_SetSRID(ST_MakeBox2D(ST_Point(-989502.1875, 528439.5625),ST_Point(-987121.375 ,529933.1875)),2163)See AlsoST_MakePoint, ST_Point, ST_SetSRID, ST_SRID7.3.20 ST_MakeBox3DST_MakeBox3D — Creates a BOX3D defined by the given 3d point geometries.Synopsisbox3d ST_MakeBox3D(geometry point3DLowLeftBottom, geometry point3DUpRightTop);DescriptionCreates a BOX3D defined by the given 2 3D point geometries.This function supports 3d and will not drop the z-index.ExamplesSELECT ST_MakeBox3D(ST_MakePoint(-989502.1875, 528439.5625, 10),ST_MakePoint(-987121.375 ,529933.1875, 10)) As abb3d--bb3d----------BOX3D(-989502.1875 528439.5625 10,-987121.375 529933.1875 10)See AlsoST_MakePoint, ST_SetSRID, ST_SRID7.3.21 ST_MakeLineST_MakeLine — Creates a Linestring from point geometries.

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

Saved successfully!

Ooh no, something went wrong!