I have a point layer (shapefile) insert to PostGIS. I'm using MapServer and OpenLayers to display layer on map. Now, I want get lon/lat of all features of the layer.
Hope somebody can help me.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
To extract lon/lat in text format from a database table, you can do something like:
SELECT ST_X(geom), ST_Y(geom) FROM yourgeospatialtable;
geom is the spatially enabled column.
There probably is also an OpenLayers function to do that, but I am not exactly sure where you want to do it (server/client?)