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:

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
    Jan 20, 2011 at 9:59
  • You don't use any PostGIS functions directly. Geoserver takes care of it.
    – underdark
    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
    Jan 20, 2011 at 15:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy