[OpenLayers-Users] how to save polygon in database (postgresql)
Tobias Reinicke
ramotswa at gmail.com
Thu Oct 25 01:29:00 PDT 2012
A pit painful to have to go through your code.
Can you look at your firebug / chrome dev tools requests.
Check that:
a: when you click "save" a wfst request is being sent? (Show us a copy of
that request)
b: what sort of response you are getting back from that request (again,
lets see it).
Also, make sure that the table you are writing to has been set up to be the
right geometry type.
Toby
On 25 October 2012 10:26, aaliya <goyaladiti10 at gmail.com> wrote:
> I had a look to both of them but it is still not working. here is my code
> do have a look.
> Problem is that whatever line, polygon and point i draw I do get a alert
> msg saying saved but as soon as I relod the application all the polygons,
> line or points vanishes.
>
> On Thu, Oct 25, 2012 at 1:51 PM, Imran Rajjad [via OSGeo.org] <[hidden
> email] <http://user/SendEmail.jtp?type=node&node=5011122&i=0>> wrote:
>
>> Hi,
>>
>> Take a look at following
>>
>> http://openlayers.org/dev/examples/wfs-protocol-transactions.html
>>
>> http://www.gistutor.com/openlayers/22-advanced-openlayers-tutorials/47-openlayers-wfs-t-using-a-geoserver-hosted-postgis-layer.html
>>
>> regards,
>> Imran
>>
>> On Thu, Oct 25, 2012 at 9:41 AM, aaliya <[hidden email]<http://user/SendEmail.jtp?type=node&node=5011121&i=0>>
>> wrote:
>>
>> > hi,
>> > I m newbie to open layers I have developed an application and in that I
>> have
>> > added WFS layers and options to draw point, polygon and line. Now I
>> want to
>> > save this polygon in database which is postgresql 9.0. i used save
>> > strategy() but it doesn't save polygon to database. I am using
>> openlayers
>> > 2.12, geoserver and postgis 2.0.
>> >
>> > Basically I want to do WFS-T please guide how can I do this.
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://osgeo-org.1560.n6.nabble.com/What-is-the-featurePrefix-tp5010713p5011044.html
>> > Sent from the OpenLayers Users mailing list archive at Nabble.com.
>> > _______________________________________________
>> > Users mailing list
>> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5011121&i=1>
>> > http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>>
>>
>> --
>> I.R
>> _______________________________________________
>> Users mailing list
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=5011121&i=2>
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://osgeo-org.1560.n6.nabble.com/how-to-save-polygon-in-database-postgresql-tp5011044p5011121.html
>> To unsubscribe from how to save polygon in database (postgresql), click
>> here.
>> NAML<http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
> --
> Thanks and Regards
>
> Aditi Goyal
> B.tech (EC) IV Year
> Banasthali University
>
>
> *Aditi.js* (51K) Download Attachment<http://osgeo-org.1560.n6.nabble.com/attachment/5011122/0/Aditi.js>
>
> ------------------------------
> View this message in context: Re: how to save polygon in database
> (postgresql)<http://osgeo-org.1560.n6.nabble.com/how-to-save-polygon-in-database-postgresql-tp5011044p5011122.html>
> Sent from the OpenLayers Users mailing list archive<http://osgeo-org.1560.n6.nabble.com/OpenLayers-Users-f3910695.html>at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121025/fa675e6c/attachment.html>
More information about the Users
mailing list