Hi Andrea again

You said:

* writing GML2 geometries in a WFS 1.1 transaction, or GML3 geometries in a WFS 
1.0 transaction

My Geoserver log says:

 service = WFS
 version = 1.0.0
 baseUrl = http://localhost:8080/geoserver/
 ...............
 idgen = GenerateNew
 inputFormat = text/xml; subtype=gml/3.1.1
 releaseAction = ALL

So if I am right, the reason is GML 3.11 against WFS 1.0.0 ?

How to change this? Some way to configure Geoserver?

Oiva



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

Ok, but what should be the solution? I am creating a point, and the table 
expects a point, so that is OK?

I don't know about GML-versions. I cannot affect how the app itself handles GML 
versions and WFS-transaction versions. The database is posgresql 9.1 with 
postgis 2. So what to do?

Oiva

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

On Thu, Oct 24, 2013 at 9:59 AM, Hakala Oiva (MTT) 
<[email protected]<mailto:[email protected]>> wrote:
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???

Ah ok, the most common reason for this is that you're posting the geometry in 
the wrong GML version, or the geometry is otherwise
incompatible with the type in the database. For example:
* writing GML2 geometries in a WFS 1.1 transaction, or GML3 geometries in a WFS 
1.0 transaction
* wriging a Point, when the database expects a Polygon

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