Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-23 Thread Rahkonen Jukka (MML)
@fleetroute.com> Kopio: geoserver-users <mailto:geoserver-users@lists.sourceforge.net> Aihe: Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T Hi, I think this is a programming problem rather than a Geoserver problem. From my experience the issue shou

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-23 Thread Vikram
eers, Graham *From:*Vikram [mailto:vikram.es...@fleetroute.com] *Sent:* Wednesday, 22 January 2020 9:10 PM *To:* geoserver-users@lists.sourceforge.net *Subject:* [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T HI all, I am trying to update features using WFS-T upda

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-23 Thread Vikram
*Vastaanottaja:* Rahkonen Jukka (MML) ; Vitor Fonseca *Kopio:* geoserver-users *Aihe:* Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T Yes, I have tried this. It is an update request though. It gives me the same result. -Vikram On 22/01/2020 18:35, Rahkonen

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-23 Thread Vikram
request application that comes with Geoserver? -Jukka Rahkonen- *Lähettäjä:* Vitor Fonseca *Lähetetty:* keskiviikko 22. tammikuuta 2020 12.59 *Vastaanottaja:* Vikram *Kopio:* geoserver-users *Aihe:* Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T Hi, I think

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-23 Thread Rahkonen Jukka (MML)
What is “same result”? Success or no success? -Jukka Rahkonen- Lähettäjä: Vikram Lähetetty: torstai 23. tammikuuta 2020 11.29 Vastaanottaja: Rahkonen Jukka (MML) ; Vitor Fonseca Kopio: geoserver-users Aihe: Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Humphries, Graham
GeoServer update an array of features using WFS-T HI all, I am trying to update features using WFS-T update. I am sending the request from my website (OpenLayers) by passing an array of features. However, I have noticed that the attributes and geometry of last feature in the array is copied to

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Rahkonen Jukka (MML)
Vastaanottaja: Vikram Kopio: geoserver-users Aihe: Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T Hi, I think this is a programming problem rather than a Geoserver problem. From my experience the issue should be with the clone functionality. Check this https

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Vikram
Tried it too, same result. But if the featureNS is wrong, I should get an error which I don't. ___ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of bu

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Vitor Fonseca
well i suggest you check the payload on the wfs request (using developer tools) should be something like *http://www.openplans.org/topp " xmlns:ogc="http://www.opengis.net/ogc " xmlns:wfs="http://www.opengis.net/wfs

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Vitor Fonseca
Ok got it. have you tried creating the clone with var clone = new ol.Feature( featureProperties); instead of the clone function? Vikram escreveu no dia quarta, 22/01/2020 à(s) 13:01: > It is basically creating a copy of the feature which looks exactly the > same except for the boundedBy propert

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Vitor Fonseca
Yes. But cloning creates new features right? You are trying to update features that did not exist in the first place, and that GeoServer is not aware...i'm a bit confused now :) A quarta, 22/01/2020, 12:53, Vikram escreveu: > No I am trying to update features. If you look at the example that

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Vitor Fonseca
Wait a minute. Shouldn't you be making insert's instead of update's? You are creating new features after all... Vikram escreveu no dia quarta, 22/01/2020 à(s) 12:14: > Yes I have seen this example. Gives me the same result. > > Now, I don't get the assertion error anymore, I create the feature w

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Vitor Fonseca
The browser console should give you a little bit more detail on the error...(expand all the error lines...) what's the OL version? check this example: https://medium.com/@goldrydigital/wfs-t-with-openlayers-3-16-6fb6a820ac58 see the new feature created with... var clone = new ol.Feature(featurePr

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Vikram
It says assertion failed at this line of code : node = formatWFS.writeTransaction(null, f, null, formatGML); Well I am not able to see where the fid is.. I can only see id_ and ol_uid on the console. They are different for every clone. On 22/01/2020 12:33, Vitor Fonseca wrote: I have stru

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Vitor Fonseca
I have struggle in the past with the clone feature too. You have different id's in the clones or differente fid's? Because you're setting "clone.setId(feature.getId());" and that's not the "internal" feature ID. BTW what exactly is the assertion error? Vikram escreveu no dia quarta, 22/01/202

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Vikram
Hi Vitor, Thanks for your reply. The clone approach works fine for one feature ie. when I try to update one feature. I have checked the console and the clones have different IDs. I tried creating feature with WKT, but got an assertion error while passing the created feature to the writeTrans

Re: [Geoserver-users] OpenLayers GeoServer update an array of features using WFS-T

2020-01-22 Thread Vitor Fonseca
Hi, I think this is a programming problem rather than a Geoserver problem. >From my experience the issue should be with the *clone* functionality. Check this https://gis.stackexchange.com/questions/46730/openlayers-cloned-features-get-style-from-original-feature Someone mentions "I have noticed