[OpenLayers-Users] [WFS] Error insert in geoserver

Andreas Hocevar ahocevar at opengeo.org
Thu Jan 7 03:35:08 EST 2010


Looking again, it seems that you forgot to provide the schema option to
the protocol or format. For the Transaction to validate, the WFS needs
to know the schemaLocation of your featuretype.

In your case, this should be something like
http://path/to/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureTyp&typename=faqd:SAGR_V3

Regards,
Andreas.

On 2010-01-07 09:26, Andreas Hocevar wrote:
> 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"
>> 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.




More information about the Users mailing list