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>147 / 310SELECT ST_AsGML(3, ST_GeomFromText(’POINT(5.234234233242 6.34534534534)’,4326), 5, 17);st_asgml--------6.34535 5.23423See AlsoST_GeomFromGML7.6.6 ST_AsHEXEWKBST_AsHEXEWKB — Returns a Geometry in HEXEWKB format (as text) using either little-endian (NDR) or big-endian (XDR)encoding.Synopsistext ST_AsHEXEWKB(geometry g1, text NDRorXDR);text ST_AsHEXEWKB(geometry g1);DescriptionReturns a Geometry in HEXEWKB format (as text) using either little-endian (NDR) or big-endian (XDR) encoding. If noencoding is specified, then NDR is used.NoteAvailability: 1.2.2This function supports 3d and will not drop the z-index.This method supports Circular Strings and CurvesExamplesSELECT ST_AsHEXEWKB(ST_GeomFromText(’POLYGON((0 0,0 1,1 1,1 0,0 0))’,4326));which gives same answer asSELECT ST_GeomFromText(’POLYGON((0 0,0 1,1 1,1 0,0 0))’,4326)::text;st_ashexewkb--------0103000020E61000000100000005000000000000000000000000000000000000000000000000000000000000000000F03F000000000000F03F000000000000F03F000000000000F03F000000000000000000000000000000000000000000000000

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

Saved successfully!

Ooh no, something went wrong!