Thanks Andrea

There is a field gid, which is the primary key. Geoserver adds an empty record 
to my database with this problematic app. And if I put temporarily some extra 
code to the handler

feature.attributes.city_name = "new";
feature.attributes.admin_name = "something";

those attributes are saved to a new record ok, but not the location. Strange???

Oiva

________________________________
Lähettäjä: [email protected] [[email protected]] käyttäjän Andrea Aime 
[[email protected]] puolesta
Lähetetty: 24. lokakuuta 2013 10:39
Vastaanottaja: Hakala Oiva (MTT)
Kopio: GeoServer Mailing List List
Aihe: Re: [Geoserver-users] WFS-T and database?

On Thu, Oct 24, 2013 at 9:29 AM, Hakala Oiva (MTT) 
<[email protected]<mailto:[email protected]>> wrote:
Geoserver comes with a simple wfs-t example (wfs-t.html). I tested it, and it 
works when those layers it calls are shapefiles. However, when I move layers to 
a postgis database and make some fixes to code (namespace etc), location 
information does not go to database, although I get SUCCES-feedback from 
transaction. Can anyone explain why this happens. I can add data to the same 
layer (tasmania_cities) with another wfst-t app, but not with the one, that 
comes with Geoserver.

Not sure, we run WFS-T tests against postgis every night as part of the OGC WFS 
compliance tests, they appear to be working.
Do you have a primary key in that table?

Cheers
Andrea

--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more 
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to