Giter VIP home page Giter VIP logo

Comments (7)

brusspi avatar brusspi commented on August 22, 2024 1

Yes, now it works as expected. Great!

from appendfeaturestolayer.

gacarrillor avatar gacarrillor commented on August 22, 2024

Hello. It was simply to know if it was possible to save modifications toward a postgis table? (Postgresql Postgis serveur).

If you have been granted write access, yes.

If you find any trouble don't hesitate to let us know.

Regards

from appendfeaturestolayer.

brusspi avatar brusspi commented on August 22, 2024

Hi,

I am testing your plugin to integrate it into our workflow. Appending works fine. But when choosing update, then it gives an error, saying that the target layer does not support updating. But that's not true. See images with more info.
2023-07-13 11_19_08-Append Features to Layer

Table settings:

2023-07-13 11_20_02-DB Manager

from appendfeaturestolayer.

gacarrillor avatar gacarrillor commented on August 22, 2024

Hi, could you let me know what is the result of running the following Python code in the QGIS Python console?

(Before running it, make sure you have your target PostgreSQL layer selected in the "Layers panel")

caps = iface.activeLayer().dataProvider().capabilities()
bool(caps & QgsVectorDataProvider.ChangeAttributeValues)
bool(caps & QgsVectorDataProvider.ChangeGeometries)

You should get 2 boolean values.

from appendfeaturestolayer.

brusspi avatar brusspi commented on August 22, 2024

this is the result

caps = iface.activeLayer().dataProvider().capabilities()
bool(caps & QgsVectorDataProvider.ChangeAttributeValues)
True
bool(caps & QgsVectorDataProvider.ChangeGeometries)
False

from appendfeaturestolayer.

gacarrillor avatar gacarrillor commented on August 22, 2024

Great, that's what I was expecting.

Could you test the development version I'm attaching as ZIP and let me know if it fixes the issue you're reporting?

AppendFeaturesToLayer.zip

from appendfeaturestolayer.

gacarrillor avatar gacarrillor commented on August 22, 2024

Nice, we'll release soon a new public version with this fix included.
Closing now as fixed.

from appendfeaturestolayer.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.