I am working on project that we create one map ant editing toolbar. Then by using that editing tool bar we can draw point, line, polygon on the map. Next we are converting the line, point, polygon objects into coordinates using geometry.toString() function. After that i want to save that coordinates in postgres. I am not able to come out from this dig. If you know the route please let me know. I will follow the steps.
Regards, Kiran
1 Answer 1
If you are using OpenLayers I'd suggest using Geoserver for handling the connection to Postgis.
Related questions:
- I want to edit corresponding postgresql data of a vector from openlayers- how to do it?
- How many WFS-T clients exist?
Here is a how the architecture would look like (just with Geoserver in the Middle Tier):
alt text
-
k but which function we have to use in postgis?kiran– kiran2011年01月20日 09:59:15 +00:00Commented Jan 20, 2011 at 9:59
-
You don't use any PostGIS functions directly. Geoserver takes care of it.underdark– underdark2011年01月20日 11:42:15 +00:00Commented Jan 20, 2011 at 11:42
-
with the advantage that if you decide to switch databases or WFS-T servers later you don't need to change the client. Open Standards - got to love them.Ian Turton– Ian Turton2011年01月20日 15:09:37 +00:00Commented Jan 20, 2011 at 15:09