[OpenLayers-Users] Rép. : Re: [WFS] Error insert in geoserver

Patrick Mayrand Patrick.Mayrand at fadq.qc.ca
Thu Jan 7 08:49:26 EST 2010


Hi,
 
my layer definition:
 
        olWFSParcelle = new OpenLayers.Layer.Vector("Parcelle - WFS-T", {
            projection: new OpenLayers.Projection("EPSG:32198"),
            strategies: [new OpenLayers.Strategy.BBOX(), oSaveStrategy],
            protocol: new OpenLayers.Protocol.WFS({
                version:       "1.1.0",
                url:           "http://sig.fool.qc/geoserver/wfs ( http://mrsig.fadq.qc/geoserver/wfs )",
                featureType:   "SAGR_V3",
                srsName:       "EPSG:32198",
                featurePrefix:  "fadq",
                featureNS:     "http://sig.fool.qc/fadq ( http://mrsig.fadq.qc/fadq )",
                geometryName:  "GEOM",
                schema:        "http://sig.fool.qc/geoserver/ ( http://mrsig.fadq.qc/geoserver/wfs/DescribeFeatureType?version=1.1.0&srsName=EPSG:32198&TypeName=fadq:SAGR_V3 )wfs?service=WFS&version=1.1.0&request=DescribeFeatureTyp&srsName=EPSG:32198&typename=faqd:SAGR_V3 ( http://path/to/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureTyp&typename=faqd:SAGR_V3 )"
            })
        });

>>> Andreas Hocevar <ahocevar at opengeo.org> 01/07/10 3:26 am >>>
Hi,

I do not see how the request below would make any difference if the
order was changed. According to the schema, the Transaction children are
a 0..* choice, not a sequence.

Can you please also paste the server response to the failing transaction
request?

Regards,
Andreas.

The only problem I see with the xml you pasted is that the
On 2010-01-06 22:34, Patrick Mayrand wrote:
> Hi,
>  
> with OL i use the edition of polygon. A transaction with several
> operation does not work
>  
> GML generate by Openlayers:
>  
> <wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
> version="1.1.0"
> xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" ( 'http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"' )
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <wfs:Delete typeName="fadq:SAGR_V3"
> xmlns:fadq="http://sig.fool.qc/fadq"><ogc:Filter (
> 'http://mrsig.fadq.qc/fadq" )
> xmlns:ogc="http://www.opengis.net/ogc"><ogc:FeatureId (
> 'http://www.opengis.net/ogc" )
> fid="SAGR_V3.17"/></ogc:Filter></wfs:Delete>
> <wfs:Insert><feature:SAGR_V3
> xmlns:feature="http://sig.fool.qc/fadq"><feature:GEOM><gml:MultiSurface (
> 'http://sig.fool.qc/fadq" ) xmlns:gml="http://www.opengis.net/gml"
> srsName="EPSG:32198"><gml:surfaceMember><gml:Polygon><gml:exterior><gml:LinearRing><gml:posList>-206413.01818846
> 292765.09570319 -206182.22900389 292089.51281744 -205745.8276367
> 292269.94799811 -205917.87048338 292479.75634772 -206413.01818846
> 292765.09570319</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></feature:GEOM></feature:SAGR_V3></wfs:Insert>
>
> </wfs:Transaction>
>  
>  
> The order is:
>  
> DELETE - INSERT
>  
>  
> but the order should be reversed and it works
>  
> INSERT - DELETE
>  
>  
> It this normal?? a bug??
>  
>  
> regards,
>  
>  
> Pat
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org 
> http://openlayers.org/mailman/listinfo/users 
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/ 
Expert service straight from the developers.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100107/1269cf3a/attachment.html


More information about the Users mailing list