赞
踩
ST_GeomFromText
ST_GeomFromWKB
ST_AsText
ST_AsEWKB
postgres=# select ST_AsEWKB(ST_GeomFromWKB ('\x0101000020e6100000dfc0e44691145d40e355d636c5fb4340', 4326 )); 警告: OGC WKB expected, EWKB provided - use GeometryFromEWKB() for this st_asewkb ------------------------------------------------------ \x0101000020e6100000dfc0e44691145d40e355d636c5fb4340 (1 行记录) postgres=# select ST_AsText(ST_GeomFromWKB ('\x0101000020e6100000dfc0e44691145d40e355d636c5fb4340', 4326 )); 警告: OGC WKB expected, EWKB provided - use GeometryFromEWKB() for this st_astext ----------------------------- POINT(116.321367 39.966956) (1 行记录) postgres=# select ST_AsEWKB(ST_GeomFromText ('POINT(116.321367 39.966956)', 4326 )); st_asewkb ------------------------------------------------------ \x0101000020e6100000dfc0e44691145d40e355d636c5fb4340 (1 行记录) postgres=# select ST_AsText(ST_GeomFromText ('POINT(116.321367 39.966956)', 4326 )); st_astext ----------------------------- POINT(116.321367 39.966956)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。