Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDAL Import vector into PostGIS #27279

Closed
qgib opened this issue Jul 20, 2018 · 4 comments
Closed

GDAL Import vector into PostGIS #27279

qgib opened this issue Jul 20, 2018 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Jul 20, 2018

Author Name: Stephen Knox (Stephen Knox)
Original Redmine Issue: 19451
Affected QGIS version: 3.3(master)
Redmine category:processing/gdal


When using seemingly any vector layer in v3 the data source is not automatically populated, and instead path_to_data_file layer_name are populated in the GDAL command which is the default.

I've investigated this and come up with a patch which I will share, probably on GitHub, but I don't know enough about the "right" way to do it.

@qgib
Copy link
Contributor Author

qgib commented Jul 20, 2018

Author Name: Giovanni Manghi (@gioman)


What exact tool is this ticket about? Patches are welcome, and the right place where to submit them is on Github. Thanks!


  • status_id was changed from Open to Feedback
  • category_id was changed from Python plugins to Processing/GDAL

@qgib
Copy link
Contributor Author

qgib commented Jul 20, 2018

Author Name: Stephen Knox (Stephen Knox)


Sorry, that will teach me to write tickets in the early hours. It should say GDAL Import vector into PostGIS. Can someone change the title?

But it is specifically the code in python/plugins/processing/algs/gdal/GdalAlgorithm.py getOgrCompatibleSource(...) that I think needs changing as it doesn't return addressable data source objects for layers so obviously can't write those out in text format for ogr2ogr. I think that probably affects multiple plugins.

@qgib
Copy link
Contributor Author

qgib commented Jul 20, 2018

Author Name: Giovanni Manghi (@gioman)


  • subject was changed from GDAL Import vector into QGIS to GDAL Import vector into PostGIS
  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Jul 24, 2018

Author Name: Nyall Dawson (@nyalldawson)


Applied in changeset ed94b69.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Jul 24, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant