[Geoserver-users] Modify Shapefile with WFS-T

I have a problem when I try to modify Shapefile with geoserver.

I do the update transaction:


<wfs:Transaction version=“1.0.0” service=“WFS”
xmlns=“http://www.someserver.com/myns
xmlns:ogc=" http://www.opengis.net/ogc"
xmlns:wfs=“http://www.opengis.net/wfs
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance "
xsi:schemaLocation=“http://www.opengis.net/wfs …/wfs/1.0.0/WFS-transaction.xsd”>
<wfs:Update typeName=“Countries”>
wfs:Property
wfs:Namethe_geom</wfs:Name>
wfs:Value
<gml:MultiPolygon
xmlns:gml=“http://www.opengis.net/gml “>
gml:polygonMember
gml:Polygon
gml:outerBoundaryIs
gml:LinearRing
<gml:coordinates decimal=”.” cs=”,"
ts=" ">
-7.43185484,37.25319112 -7.89778184,50.00889112 -8.98923684,50.02631812 -8.79586384,50.44250912 -8.80249984,50.37444512 -8.67333684,50.41389112 -8.76889084,38.51721812 -9.18389084,38.41971812 -9.27423684,38.66874512 -8.91974584,38.76589112 -8.99430884 ,38.94061812 -9.11847284,38.71721812 -9.47604584,38.70527312 -9.35958184,39.35666412 -9.08555484,39.61500012 -8.66013684,40.69110912 -8.88083684,41.75166412 -8.74500884,41.95250012 -8.19783684,42.15067312 -8.13610884,41.80916412 -6.60229084,41.94916412 -6.54562684,41.68700912 -6.19045484,41.57963612 -6.92440884,41.03096412 -6.79610884,40.52443612 -7.02721784,40.18777312 -6.87069084,40.01597312 -7.01721784,39.67500012 -7.53250884,39.66941812 -6.95587284 ,39.02319112 -7.31708184,38.44471812 -6.94152684,38.17041812 -7.44694584,37.69943612 -7.43185484,37.25319112
</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>

</gml:MultiPolygon>
</wfs:Value>
</wfs:Property>
ogc:Filter
<ogc:FeatureId fid=“Countries.82” />
</ogc:Filter>
</wfs:Update>
</wfs:Transaction>


The transaction is correct and when I send to POST-DATA the request also is correct.

And my problem is: Only I can do one update transaction, when I try to do another transaction

I do not get response and the server crashes. I think that the Shapefile it stays open and when Geoserver finish the transaction don’t close the file.

Anybody has an idea??

The shapefile transaction stuff is really more of a proof of concept, so people can play with transactions when they download the server. Sometime soon we should have a real embedded database that will work much better.

Until then, you should put your data in a spatial database. PostGIS is about the best option right now, there are really easy conversion tools to get your shapefiles in to postgis.

best regards,

Chris

jose luis nuñez alcazar wrote:

I have a problem when I try to modify Shapefile with geoserver.

I do the update transaction:

---------------------------------------------------------------------------------------------------------------------------------------------

<wfs:Transaction version="1.0.0" service="WFS"
    xmlns="http://www.someserver.com/myns&quot;
    xmlns:ogc=" http://www.opengis.net/ogc&quot;
    xmlns:wfs="http://www.opengis.net/wfs&quot;
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
    xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.0.0/WFS-transaction.xsd">
    <wfs:Update typeName="Countries">
        <wfs:Property>
            <wfs:Name>the_geom</wfs:Name>
            <wfs:Value>
                <gml:MultiPolygon
                    xmlns:gml="http://www.opengis.net/gml&quot;&gt;
                    <gml:polygonMember>
                        <gml:Polygon>
                            <gml:outerBoundaryIs>
                                <gml:LinearRing>
                                    <gml:coordinates decimal="." cs=","
                                        ts=" ">
                                        -7.43185484,37.25319112 -7.89778184,50.00889112 -8.98923684,50.02631812 -8.79586384,50.44250912 -8.80249984,50.37444512 -8.67333684,50.41389112 -8.76889084,38.51721812 -9.18389084,38.41971812 -9.27423684,38.66874512 -8.91974584,38.76589112 -8.99430884 ,38.94061812 -9.11847284,38.71721812 -9.47604584,38.70527312 -9.35958184,39.35666412 -9.08555484,39.61500012 -8.66013684,40.69110912 -8.88083684,41.75166412 -8.74500884,41.95250012 -8.19783684,42.15067312 -8.13610884,41.80916412 -6.60229084,41.94916412 -6.54562684,41.68700912 -6.19045484,41.57963612 -6.92440884,41.03096412 -6.79610884,40.52443612 -7.02721784,40.18777312 -6.87069084,40.01597312 -7.01721784,39.67500012 -7.53250884,39.66941812 -6.95587284 ,39.02319112 -7.31708184,38.44471812 -6.94152684,38.17041812 -7.44694584,37.69943612 -7.43185484,37.25319112
                                    </gml:coordinates>
                                </gml:LinearRing>
                            </gml:outerBoundaryIs>
                        </gml:Polygon>
                    </gml:polygonMember>

                </gml:MultiPolygon>
            </wfs:Value>
        </wfs:Property>
        <ogc:Filter>
            <ogc:FeatureId fid="Countries.82" />
        </ogc:Filter>
    </wfs:Update>
</wfs:Transaction>

------------------------------------------------------------------------------------------------------------------------------------------------

The transaction is correct and when I send to POST-DATA the request also is correct.

And my problem is: Only I can do one update transaction, when I try to do another transaction
I do not get response and the server crashes. I think that the Shapefile it stays open and when Geoserver finish the transaction don't close the file.

Anybody has an idea??

!DSPAM:4005,4731801d93892085621377!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

!DSPAM:4005,4731801d93892085621377!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4005,4731801d93892085621377!