Hi Benjamin,

We had similar problems whit the WFS-T
Some stuff to concider:
1- Our DB is Postgres/Postgis. By default you cant modify using WFS-T. You
need alter the tables. Check this link
https://gist.github.com/springmeyer/1521679
2- We remove xsi:schemaLocation
3- Check the srsName property we use a different way. (Im not sure how
works whit links)
4- Geoserver 2.4.0

I added our request as example. I hope you can solve it.

Cheers

<wfs:Transaction service="WFS" version="1.0.0"
xmlns:wfs="http://www.opengis.net/wfs";
xmlns:workspace="http://www.comp.com/comp";
xmlns:gml="http://www.opengis.net/gml";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <wfs:Insert>
        <workspace:db_point>
            <workspace:sensor_label>123</workspace:sensor_label>
            <workspace:sensor>Temperature</workspace:sensor>
            <workspace:role>admin</workspace:role>
            <workspace:floor>3</workspace:floor>
            <workspace:way>
                <gml:Point srsDimension="2"
srsName="urn:x-ogc:def:crs:EPSG:3857">
                    <gml:coordinates decimal="." cs="," ts="
">-7147126.389859418,-3676545.5192351174</gml:coordinates>
                </gml:Point>
            </workspace:way>
        </workspace:db_point>
    </wfs:Insert>
</wfs:Transaction>



Emilio Recio
Cell: 549-351-2445659
Cordoba,Argentina

<http://ar.linkedin.com/in/emiliorecio>
 emilio.recio


On 11 December 2013 11:15, BenjaminPross <[email protected]> wrote:

> Hi Yolanda,
>
> The example request did not work for me as well. I made some modifications
> (based on the request from  this post
> <
> http://osgeo-org.1560.x6.nabble.com/WFS-error-performing-insert-java-lang-String-cannot-be-cast-to-com-vividsolutions-jts-geom-Geometry-td3787417.html
> >
> ) and this seems to work:
>
> <wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs"; service="WFS"
> version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> <wfs:Insert>
>     <feature:tasmania_roads xmlns:feature="topp">
>       <feature:the_geom>
>         <gml:MultiLineString xmlns:gml="http://www.opengis.net/gml";
> srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
>           <gml:lineStringMember>
>             <gml:LineString>
>               <gml:coordinates decimal="." cs="," ts="
> ">145.3417139606355,-42.8405577982561
> 144.3016869680161,-43.30159419600177</gml:coordinates>
>             </gml:LineString>
>           </gml:lineStringMember>
>         </gml:MultiLineString>
>       </feature:the_geom>
>       <feature:TYPE>alley</feature:TYPE>
>     </feature:tasmania_roads>
>   </wfs:Insert>
> </wfs:Transaction>
>
> I am not sure, what the problem is with the shipped example insert request,
> it seems to be some issue with namspace resolving. The logs do not show any
> errors, the appllcation seems to hang trying to perform a
> DescribeFeatureType operation after/during the insert operation.
>
> Hope the modified request is useful for you.
>
> Cheers,
>
> Benjamin
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/help-me-geoserver2-4-2-can-t-transaction-insert-tp5091842p5093762.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to