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>143 / 310NoteST_AsEWKB is the reverse of ST_GeomFromEWKB. Use ST_GeomFromEWKB to convert to a postgis geometry fromST_AsEWKB representation.This function supports 3d and will not drop the z-index.This method supports Circular Strings and CurvesExamplesSELECT ST_AsEWKB(ST_GeomFromText(’POLYGON((0 0,0 1,1 1,1 0,0 0))’,4326));st_asewkb--------------------------------\001\003\000\000 \346\020\000\000\001\000\000\000\005\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\360?\000\000\000\000\000\000\360?\000\000\000\000\000\000\360?\000\000\000\000\000\000\360?\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000(1 row)SELECT ST_AsEWKB(ST_GeomFromText(’POLYGON((0 0,0 1,1 1,1 0,0 0))’,4326), ’XDR’);st_asewkb--------------------------------\000 \000\000\003\000\000\020\346\000\000\000\001\000\000\000\005\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000?\360\000\000\000\000\000\000?\360\000\000\000\000\000\000?\360\000\000\000\000\000\000?\360\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000See AlsoST_AsBinary, ST_AsEWKT, ST_AsText, ST_GeomFromEWKT, ST_SRID7.6.3 ST_AsEWKTST_AsEWKT — Return the Well-Known Text (WKT) representation of the geometry with SRID meta data.Synopsistext ST_AsEWKT(geometry g1);DescriptionReturns the Well-Known Text representation of the geometry prefixed with the SRID.

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

Saved successfully!

Ooh no, something went wrong!