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>68 / 310This method implements the OpenGIS Simple Features Implementation Specification for SQL 1.1. s3.2.6.2This method implements the SQL/MM specification.ExamplesSELECT ST_GeomCollFromText(’GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(1 2, 3 4))’);See AlsoST_GeomFromText, ST_SRID7.3.7 ST_GeomFromEWKBST_GeomFromEWKB — Return a specified ST_Geometry value from Extended Well-Known Binary representation (EWKB).Synopsisgeometry ST_GeomFromEWKB(bytea EWKB);DescriptionConstructs a <strong>PostGIS</strong> ST_Geometry object from the OGC Extended Well-Known binary (EWKT) representation.NoteThe EWKB format is not an OGC standard, but a <strong>PostGIS</strong> specific format that includes the spatial reference system(SRID) identifierThis function supports 3d and will not drop the z-index.This method supports Circular Strings and CurvesExamplesline string binary rep 0f LINESTRING(-71.160281 42.258729,-71.160837 42.259113,-71.161144 42.25932) in NAD 83 long lat(4269).NoteNOTE: Even though byte arrays are delimited with \ and may have ’, we need to escape both out with \ and ”. So it doesnot look exactly like its AsEWKB representation.SELECT ST_GeomFromEWKB(E’\\001\\002\\000\\000 \\255\\020\\000\\000\\003\\000\\000\\000\\344 ←↪J=\\013B\\312Q\\300n\\303(\\010\\036!E@’’\\277E’’K\\312Q\\300\\366{b\\235*!E@\\225|\\354.P\\312Q\\300p\\231\\323e1!E@’);

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

Saved successfully!

Ooh no, something went wrong!