[OpenLayers-Users] how to save polygon in database (postgresql)

Phil Scadden p.scadden at gns.cri.nz
Thu Oct 25 13:10:33 PDT 2012


> I want to save the polygon which I draw on a layer permanently. I am using
> postgresql, postgis 2.0 openlayers and geoserver. please guide me.
>
> Also I don't know how to use <insert> tag as i am a newbie.
> plz guide me through some sample code so that it will be easy for me
> understand.
Imran has given you some good links - wfs-t is what you want. The OL 
code should generate the insert code for you but you can learn a lot by 
looking at what it is generating. You want to look in firebug for the 
request (will be a POST) generated by your code when you try to save the 
polygon.

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.



More information about the Users mailing list