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>67 / 310Synopsisgeography ST_GeogFromWKB(bytea geom);DescriptionThe ST_GeogFromWKB function, takes a well-known binary representation (WKB) of a geometry or <strong>PostGIS</strong> Extended WKBand creates an instance of the appropriate geography type. This function plays the role of the Geometry Factory in SQL.If SRID is not specified, it defaults to 4326 (WGS 84 long lat).This method supports Circular Strings and CurvesExamples--Although bytea rep contains single \, these need to be escaped when inserting into a ←↪tableSELECT ST_AsText(ST_GeogFromWKB(E’\\001\\002\\000\\000\\000\\002\\000\\000\\000\\037\\205\\353Q ←↪\\270~\\\\\\300\\323Mb\\020X\\231C@\\020X9\\264\\310~\\\\\\300)\\\\\\217\\302\\365\\230 ←↪C@’));st_astext------------------------------------------------------LINESTRING(-113.98 39.198,-113.981 39.195)(1 row)See AlsoST_GeogFromText, ST_AsBinary7.3.6 ST_GeomCollFromTextST_GeomCollFromText — Makes a collection Geometry from collection WKT with the given SRID. If SRID is not give, itdefaults to -1.Synopsisgeometry ST_GeomCollFromText(text WKT, integer srid);geometry ST_GeomCollFromText(text WKT);DescriptionMakes a collection Geometry from the Well-Known-Text (WKT) representation with the given SRID. If SRID is not give, itdefaults to -1.OGC SPEC 3.2.6.2 - option SRID is from the conformance suiteReturns null if the WKT is not a GEOMETRYCOLLECTIONNoteIf you are absolutely sure all your WKT geometries are collections, don’t use this function.ST_GeomFromText since it adds an additional validation step.It is slower than

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

Saved successfully!

Ooh no, something went wrong!