Gis Mage <gismage@...> writes:
>
> Hi list!
>
> I would like to know if anyone has any luck editing wfs layers
> published with geoserver?
>
> I have the following situation:
> First I connect to a geoserver wfs service and get a list of layers.
> Then I add a layer topp:states to the map (this is one of the
> shapefiles, which comes by default with geoserver)
> I turn on editing and add one polygon to the layer. The poly is added
> ok and the attributes are filled ok to.
> When I hit Save edits QGIS freezes forever with 100% processor load
> and nothing happens.
>
> Looking through geoserver log I don't see any request for wfs
> transaction. So I assume it's a qgis bug.
> When I'm editing the same layer with uDig, transactions work ok and I
> see the corresponding messages in the geoserver log.
I can repeat your error exactly. I made a fresh Geoserver 2.1.2 install on
Windows and tried to edit the States layer. QGis is sending the POST GetFeature
request but it is never coming to the Geoserver side and Jetty server does not
show a new line in the request log. Qgis process is taking 100% of the
processor time.
I cannot say if the POST request created by QGIS is OK or not but it looks
strongly that there is something in the request that makes it to fail. I tried
to send the same request with Poster and with the demo application that comes
with Geoserver installation and the result is the same with these two methods
as well. Nothing appears into Geoserver and Jetty logs. Perhaps QGIS WSF
developers could have a look at the attached request and if it seems to be a
valid WFS 1.0.0 POST request, forward it to Geoserver users list. The request
is what QGIS 1.7.0 is sending and it is captured by using Fiddler2 software as
a local proxy between QGIS and Geoserver.
I would quess the trouble has something to do with namespaces and schema
validation. The other file "geoserver_demo_update.txt" is a WFS-T example that
comes with Geoserver installation and it works OK.
-Jukka Rahkonen-
POST /geoserver/wfs HTTP/1.1
Content-Type: text/xml
Content-Length: 8868
Connection: Keep-Alive
Accept-Encoding: gzip
Accept-Language: fi-FI,en,*
User-Agent: Mozilla/5.0
Host: localhost:8080
<Transaction xmlns="http://www.opengis.net/wfs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0"
xmlns:topp="http://www.openplans.org/topp" service="WFS"
xsi:schemaLocation="http://www.openplans.org/topp
http://localhost:8080/geoserver/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=topp:states&SRSNAME=EPSG:4326"><Update
xmlns="http://www.opengis.net/wfs" typeName="topp:states"><Property
xmlns="http://www.opengis.net/wfs"><Name
xmlns="http://www.opengis.net/wfs">the_geom</Name><Value
xmlns="http://www.opengis.net/wfs"><MultiPolygon
xmlns="http://www.opengis.net/gml" srsName="EPSG:4326"><polygonMember
xmlns="http://www.opengis.net/gml"><Polygon
xmlns="http://www.opengis.net/gml"><outerBoundaryIs
xmlns="http://www.opengis.net/gml"><LinearRing
xmlns="http://www.opengis.net/gml"><coordinates
xmlns="http://www.opengis.net/gml" cs="," ts=" ">-111.53486006,45.60566083
-111.54023906,45.59491483 -111.52012806,45.57352183 -111.51770206,45.55605483
-111.52960406,45.54420983 -111.56712506,45.54118883 -111.56118206,45.51947183
-111.57396106,45.49669783 -111.55233906,45.45469083 -111.52226406,45.45344283
-111.51876206,45.44142283 -111.54200906,45.43964483 -111.54967706,45.43219883
-111.62666506,45.45636883 -111.66468206,45.44649283 -111.74429506,45.45425583
-111.77643006,45.43726483 -111.82634906,45.42232983 -111.85203706,45.42196783
-111.86726506,45.40748683 -111.93192406,45.45977183 -111.99980306,45.45323283
-112.03723306,45.43318283 -112.08302506,45.43855083 -112.08648806,45.42635083
-112.11877606,45.43211883 -112.15930306,45.42173883 -112.18359506,45.43175983
-112.25905806,45.43495683 -112.27716206,45.44200283 -112.28979606,45.46299883
-112.31607206,45.46347983 -112.34173706,45.44521083 -112.40190306,45.42860883
-112.39997306,45.40068983 -112.42698106,45.35278083 -112.48015006,45.35279583
-112.51791506,45.37234583 -112.56123506,45.36650983 -112.59871806,45.38100983
-112.71257906,45.38431283 -112.77371406,45.40044583 -112.79310006,45.38782983
-112.83925006,45.37743083 -112.85561506,45.36151983 -112.88607906,45.32459383
-112.87809906,45.29832983 -112.87678706,45.26771283 -112.90366506,45.25714983
-112.93017006,45.27348883 -112.94669506,45.29636183 -112.99766706,45.31070083
-113.04463406,45.33904783 -113.07139706,45.34122183 -113.06604206,45.35612283
-113.07969106,45.38528183 -113.06709406,45.41411683 -113.09720006,45.43646383
-113.09903906,45.45979783 -113.14241206,45.48618483 -113.11366406,45.52779183
-113.13251706,45.57902683 -113.15832706,45.59941583 -113.16107306,45.61867283
-113.18680006,45.64087783 -113.19764106,45.66493783 -113.29969906,45.71533683
-113.31651506,45.71398283 -113.37803806,45.68372483 -113.39998806,45.68249683
-113.40938006,45.71106483 -113.48073006,45.73719583 -113.50492306,45.75473583
-113.55553606,45.83416483 -113.54669306,45.84306883 -113.52276006,45.84426983
-113.50811206,45.85301683 -113.50037506,45.90168883 -113.51819806,45.93094383
-113.51478006,45.94684383 -113.54564806,45.96181583 -113.54950106,45.97471383
-113.57995006,45.98555883 -113.56956606,46.01133083 -113.61161206,46.01104483
-113.63371406,46.02120683 -113.63092206,46.03804183 -113.65343606,46.05323883
-113.66026506,46.08448883 -113.70492706,46.11028783 -113.74945206,46.16578083
-113.74804106,46.18128683 -113.79841006,46.22502983 -113.80063806,46.28588583
-113.83435206,46.31367283 -113.84498806,46.34913383 -113.82849306,46.38120783
-113.83162806,46.41055383 -113.84025706,46.42036583 -113.89303706,46.41840883
-113.86307706,46.48722983 -113.88180706,46.50413683 -113.91134806,46.51306283
-113.96262506,46.51699183 -113.96151906,46.54075383 -113.98285106,46.55862583
-113.98601706,46.57471183 -114.02346206,46.58287983 -114.03046606,46.60087683
-114.06878806,46.58983383 -114.07919506,46.57587983 -114.07030606,46.55601283
-114.07734806,46.54427483 -114.11583106,46.52864583 -114.14228206,46.48988083
-114.17745406,46.47462983 -114.19136206,46.45388583 -114.23198106,46.44742683
-114.25412106,46.43142083 -114.30130906,46.43879483 -114.30719206,46.40644983
-114.32155006,46.38936383 -114.38574406,46.36092883 -114.40955506,46.36688783
-114.43076506,46.38924583 -114.47835706,46.40251283 -114.49286006,46.43113883
-114.52201206,46.45135283 -114.55589506,46.45015483 -114.58669406,46.46169783
-114.62022606,46.45224483 -114.60025906,46.49990183 -114.62397906,46.52777583
-114.56104406,46.55589783 -114.57000906,46.57756183 -114.55686306,46.59790583
-114.59427806,46.62650083 -114.60125906,46.64950283 -114.62284206,46.66590283
-114.57667706,46.71357083 -114.55846606,46.74618683 -114.53310606,46.74297083
-114.50253506,46.75612383 -114.46682906,46.74995583 -114.45214206,46.77438883
-114.47283306,46.81415283 -114.48876306,46.82497883 -114.46459406,46.85748083
-114.47175006,46.87547483 -114.54375606,46.89330783 -114.53383006,46.91326683
-114.55362106,46.92691183 -114.52505606,46.95431683 -114.51532906,46.98573083
-114.53666806,47.01085783 -114.56586606,47.01964283 -114.57824106,47.03956383
-114.56891006,47.06091783 -114.52631506,47.05876283 -114.50017706,47.07246883
-114.49885006,47.12375383 -114.53212906,47.14728283 -114.53309006,47.15646083
-114.49109006,47.18821083 -114.46908706,47.29641083 -114.45630806,47.30304483
-114.44331506,47.33167783 -114.47000306,47.39087083 -114.41975606,47.40962383
-114.40940206,47.42088783 -114.40260506,47.49137983 -114.38399706,47.52633783
-114.39396806,47.55772583 -114.44330006,47.56509483 -114.50081806,47.54921483
-114.54400006,47.52707383 -114.59967206,47.54139083 -114.67010706,47.53254883
-114.70401906,47.56432483 -114.70431706,47.57442183 -114.68520506,47.59060783
-114.73316306,47.63822283 -114.75770706,47.63726183 -114.80738206,47.59863383
-114.84219506,47.60654183 -114.83710606,47.65921883 -114.85330406,47.67003383
-114.90006406,47.67904083 -114.92587406,47.70054783 -114.96159506,47.70293583
-115.00767706,47.75594883 -114.99983406,47.79438883 -114.98339206,47.81066683
-115.02399606,47.82871383 -115.06083806,47.86230983 -115.09659706,47.86650183
-115.11490006,47.87685883 -115.14059606,47.93002483 -115.19476506,47.96704983
-115.20794106,47.99524083 -115.23175206,48.00106983 -115.25232906,48.02752483
-115.35548606,48.08304683 -115.38447706,48.14864483 -115.40291006,48.15851683
-115.46745506,48.16708883 -115.48588706,48.17786883 -115.56117406,48.18513983
-115.58230706,48.19547783 -115.61476306,48.23810683 -115.65877706,48.27349583
-115.69802206,48.28353683 -115.72571706,48.30265983 -115.80956406,48.32596683
-115.80934306,48.33745683 -115.79171906,48.34879483 -115.71532606,48.35266983
-115.70242506,48.36128383 -115.69938106,48.37872483 -115.75200806,48.39302983
-115.76075906,48.42438283 -115.80206506,48.43718083 -115.75132106,48.49421083
-115.75751706,48.51957083 -115.79329806,48.54337083 -115.79289406,48.59904583
-115.83495506,48.61322583 -115.84976406,48.64833183 -115.89596706,48.65977583
-115.90854806,48.70867683 -115.92903306,48.73094683 -115.96314406,48.74456883
-115.99706406,48.77061983 -116.05815306,48.82863783 -116.08453506,48.86843583
-116.11271106,48.87968983 -116.11472506,49.11196983 -116.11590706,49.40214683
-116.12272806,49.90341683 -114.78856106,49.90342083 -114.12272806,49.90342083
-112.24772806,49.90341683 -111.34210406,49.90342083 -110.81022806,49.90342083
-109.56022806,49.90341683 -108.31022806,49.90341683 -107.24772806,49.90341683
-106.18522806,49.90341683 -105.12272806,49.90341683 -104.12272806,49.90342083
-104.11205406,49.54921883 -104.11184806,49.29441583 -104.10816306,48.90348183
-104.10705006,48.30342283 -104.10566906,48.23723783 -104.10717906,47.54635783
-104.10644706,47.44595083 -104.10757606,47.18429683 -104.10864406,46.84641383
-104.10925406,46.78647383 -104.10358606,46.11630783 -104.10280806,45.90123883
-104.11957706,45.90076983 -105.10148806,45.90451183 -105.14469306,45.90325283
-106.08080406,45.90064783 -106.31887206,45.89959483 -107.95394306,45.90323383
-108.31879606,45.90358083 -108.68480106,45.90106383 -109.85888106,45.90300083
-110.05501706,45.90627383 -110.45223406,45.90210883 -110.48912206,45.89576883
-111.11287806,45.89918683 -111.11107006,45.56798283 -111.11101706,45.37681683
-111.15408506,45.38961883 -111.18837106,45.40425283 -111.19381106,45.43139783
-111.22969206,45.44868183 -111.23821406,45.46834683 -111.27895506,45.47666683
-111.29368006,45.50605883 -111.27924506,45.52147783 -111.28341806,45.53040483
-111.33011006,45.54570883 -111.32965206,45.57729883 -111.35511206,45.58643483
-111.37491806,45.60868983 -111.37866406,45.63136083 -111.40941806,45.62967483
-111.43174906,45.64858383 -111.44439906,45.64119083 -111.45452306,45.61236683
-111.50306906,45.61667783
-111.53486006,45.60566083</coordinates></LinearRing></outerBoundaryIs></Polygon></polygonMember></MultiPolygon></Value></Property><Filter
xmlns="http://www.opengis.net/ogc"><FeatureId
xmlns="http://www.opengis.net/ogc"
fid="states.25"/></Filter></Update></Transaction>
<wfs:Transaction service="WFS" version="1.0.0"
xmlns:topp="http://www.openplans.org/topp"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wfs="http://www.opengis.net/wfs">
<wfs:Update typeName="topp:tasmania_roads">
<wfs:Property>
<wfs:Name>TYPE</wfs:Name>
<wfs:Value>street</wfs:Value>
</wfs:Property>
<ogc:Filter>
<ogc:FeatureId fid="tasmania_roads.1"/>
</ogc:Filter>
</wfs:Update>
</wfs:Transaction>_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user