kartoza / IGRAC-GGIS

https://ggis.un-igrac.org/
GNU Affero General Public License v3.0
4 stars 5 forks source link

Replace layer #605

Closed SterckxArnaud closed 9 months ago

SterckxArnaud commented 9 months ago

Hi Irwan, I need to update a layer in the GGIS. In GeoNode 3, I would simply replace the layer with the new one, but that functionality is no longer available. I could edit the layer in GeoNode, but I can only draw the features by hand, I can't assign the coordinates of the vertices. Another option would be to create a new layer and delete the old one, but then I would need to edit all the maps where the layer is contained, and the url address of the layer will not be the same (former url will be broken).

Could you please assist? Is there a chance that you can replace the layer in the back end?

The layer that I would liek to replace is https://ggis.un-igrac.org/catalogue/#/dataset/1810 Here is the updated layer: 20231130_GGIS_MAR.zip

meomancer commented 9 months ago

Hi @SterckxArnaud I'm not sure, i have asked @NyakudyaA to follow up this question

NyakudyaA commented 9 months ago

@SterckxArnaud Unfortunately it seems this option has been removed in GeoNode 4. The most likely method to use is

Alternatively, we can just use the backend to upload the layer and replace it in the DB. Please let me know if you want to try the first method otherwise I can do option 2

SterckxArnaud commented 9 months ago

Thank you Admire. I did try this but it doesn't work. I am not authorized to save the edits that I make to the layer. I don't see that the API client capabilities include something to actually modify vector layers. How shall I proceed?

image

NyakudyaA commented 9 months ago

@SterckxArnaud Can you try again? I have updated the WFS setting to be transactional

SterckxArnaud commented 9 months ago

it still does not work

NyakudyaA commented 9 months ago

let me replace it for you, then I can check the permissions for the layer for you

SterckxArnaud commented 9 months ago

Yes please

NyakudyaA commented 9 months ago

This is complete