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>77 / 310See AlsoST_GeomFromText7.3.17 ST_LineFromWKBST_LineFromWKB — Makes a LINESTRING from WKB with the given SRIDSynopsisgeometry ST_LineFromWKB(bytea WKB);geometry ST_LineFromWKB(bytea WKB, integer srid);DescriptionThe ST_LineFromWKB function, takes a well-known binary representation of geometry and a Spatial Reference System ID(SRID) and creates an instance of the appropriate geometry type - in this case, a LINESTRING geometry. This function playsthe role of the Geometry Factory in SQL.If an SRID is not specified, it defaults to -1. NULL is returned if the input bytea does not represent a LINESTRING.NoteOGC SPEC 3.2.6.2 - option SRID is from the conformance suite.NoteIf you know all your geometries are LINESTRINGs, its more efficient to just use ST_GeomFromWKB. This functionjust calls ST_GeomFromWKB and adds additional validation that it returns a linestring.This method implements the OpenGIS Simple Features Implementation Specification for SQL 1.1. s3.2.6.2This method implements the SQL/MM specification. SQL-MM 3: 7.2.9ExamplesSELECT ST_LineFromWKB(ST_AsBinary(ST_GeomFromText(’LINESTRING(1 2, 3 4)’))) AS aline,ST_LineFromWKB(ST_AsBinary(ST_GeomFromText(’POINT(1 2)’))) IS NULL AS null_return;aline| null_return------------------------------------------------010200000002000000000000000000F ... | tSee AlsoST_GeomFromWKB, ST_LinestringFromWKB7.3.18 ST_LinestringFromWKBST_LinestringFromWKB — Makes a geometry from WKB with the given SRID.

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

Saved successfully!

Ooh no, something went wrong!