This line: SELECT geom FROM myLayer.geom
will return a hex value, i'm wondering how would it be possible to get decimal values, a result that look likes human-readable coordination?
Regards,
|
This line: Regards, |
|||
|
|
|
In addition to ST_AsText (which returns geometry as WKT / Well Known Text), there are several additional output formats, like ST_AsGeoJSON(). Take a look in http://postgis.org/documentation/manual-2.0/reference.html#Geometry_Outputs and choose, what fits your needs best. |
|||
|
|
Source: Beginner PostGIS question: getting geometry from multiple tables |
|||
|
|
|
use this:
and viewing X,Y and geom object:
i hope it helps you... |
|||
|
|