I made progress and it works now for me, but I stumbled over some weird behaviour further posting is an dev-list see: http://n2.nabble.com/Adding-Feature-to-WFS-in-Vector-Layer---Copying-Features-tp3416461p3435981.html
Fabian Patzke wrote: > > I moved a bit further with my efforts. > My transaction is getting more and more > complete. But the Coordinates are still missing. > If anybody has an idea it would be great ;) > > <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 > http://www.FOO.BLA > http://FOO:8080/geoserver/wfs?Service=WFS&Request=DescribeFeatureType& > version=1.0.0&typename=foo:bla" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <wfs:Insert> > <feature:bla > xmlns:feature="http://FOO.BLA"> > <feature:the_geom> > <gml:MultiPolygon > xmlns:gml="http://www.opengis.net/gml" > srsName="EPSG:31467"/> > </feature:the_geom> > </feature:bla> > </wfs:Insert> > </wfs:Transaction> > > Before I try to commit a newly added feature I print out FID an geometry > of the > last features of the layer I added to. > As you can see below, I get the last > feature that has been in the layer before the add (FID: bla.203) and the > newly > added (FID: null). > So I do not get the reason why no geometry is in the transaction. > > FID: bla.203 #202: MULTIPOLYGON(((3440276.57 5791250.12,3440243.1 > 5791360.32,3440244.73 5791414.19,3440263.51 5791485.21,3440359.01 > 5791523.57,3440515.73 5791495.82,3440598.82 5791494.96,3440609.43 > 5791557.01,3440700.07 5791522.72,3440704.15 5791588.86,3440841.91 > 5791548.07,3440823.94 5791481.1,3440917.87 5791429.64,3440917.87 > 5791415.75,3440753.7 5791349.59,3440813.05 5791255.64,3440910.28 > 5791228.67,3440902.11 5791175.56,3440840.83 5791161.67,3440837.56 > 5791179.65,3440797.52 5791174.75,3440737.06 5791121.64,3440659.11 > 5791106.1,3440650.94 5791142.88,3440556.13 5791270.38,3440455.76 > 5791170.57,3440434.5 5791204.92,3440467.21 5791245.82,3440447.58 > 5791284.26,3440392.79 5791288.35,3440289.74 5791259.72, > 3440276.57 5791250.12))) > FID: null #203: MULTIPOLYGON(((3302091.4993788 5913241.9002485, > 3287274.8407132 5864558.5932041,3334547.0374084 5856797.486284, > 3360652.578867 5906891.9036775,3302091.4993788 5913241.9002485))) > > Any help would be nice. > > Greetings, > Fabian > > > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://n2.nabble.com/Adding-Feature-to-WFS-in-Vector-Layer---Copying-Features-tp3390769p3435995.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
