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

✨ Add support to qgis 'postgresraster' layer #652

Merged
merged 2 commits into from
Nov 14, 2023
Merged

✨ Add support to qgis 'postgresraster' layer #652

merged 2 commits into from
Nov 14, 2023

Conversation

wlorenzetti
Copy link
Member

@wlorenzetti wlorenzetti commented Nov 12, 2023

Closes: #651

How to test

  1. get latest PostGIS

  2. create a database and add postgis_raster extension:

create extension postgis_raster;

image

  1. create a schema g3w_suite and run inside the database the following sql: bluemarble.zip

image

  1. open qgis and check that sql has created a simple bluemarble raster tif layer with EPSG:4326 into db:

Screenshot_20231113_092106

Additional notes

If you are working in a mixed setup (ie. a local postgis instance + a g3w-suite-docker container), you should add an extra_hosts directive within your docker-compose-dev.yml to make your local postgres databases accessible from both sides:

image

  g3w-suite:
    image: g3wsuite/g3w-suite:dev

    ...

    extra_hosts:
      - "postgis16:host-gateway"

taking care to edit your hosts file accordingly:

# Added for G3W-SUITE docker
127.0.0.1 postgis16

For more info:

@Raruto Raruto marked this pull request as ready for review November 13, 2023 15:01
@Raruto Raruto changed the title ✨ Add 'postgresraster' qgis layer type support. ✨ Add support to qgis 'postgresraster' layer Nov 13, 2023
@wlorenzetti wlorenzetti merged commit fd36fec into dev Nov 14, 2023
4 checks passed
@wlorenzetti wlorenzetti deleted the pgraster branch November 14, 2023 08:40
wlorenzetti added a commit that referenced this pull request Nov 15, 2023
* Add 'postgresraster' qgis layer type support.

* ⬆️ Client:
    g3w-client :g3w-suite/g3w-client#519

---------

Co-authored-by: wlorenzetti <[email protected]>
Co-authored-by: volterra79 <[email protected]>
wlorenzetti added a commit that referenced this pull request Nov 24, 2023
* Add GEOCODING_PROVIDERS setting.

* Add geocoding_providers to qdjango.project model.

* Update base settings GEOCODING_PROVIDERS.

* Add qdjango utility: get_geocoding_providers.

* Add geocoding_provider CRUD.

* Change initconfig API REST proeperty group.mapcontrols from list to dict.

* Fix for update projects with geocoding_providers empty or None.

* Check for geocoding_providers is empty.

* Update geoconding_providers qdjango.project field for backward compatibility.

* Fix test.

* Add sql to migration for change mapcontrol nominatim in geocoding

* Update mapcontrol structure

* Change from 'provider' to 'providers' inside the options of mapcontrol 'geocoding'.

* Change from 'provider' to 'providers' inside the options of mapcontrol 'geocoding'.

* ⬆️ Client:
    g3w-client : g3w-suite/g3w-client#505
    editing: g3w-suite/g3w-client-plugin-editing#72

* ⬆️ Client:
    g3w-client : g3w-suite/g3w-client@bf79291

* ⬆️ Client:
    g3w-client : g3w-suite/g3w-client@d610c3e

* Small fix.

* Typo.

* Add email exists check on recovery username form.

* Refactoring and add settings to reset password and user recovery email templates.

* ✨ Change password at first login (#650)

* Add PASSWORD_CHANGE_FIRST_LOGIN setting.

* Add change_password_first_login property to Userdata model.

* Create custom G3WSetPasswordForm and custom G3WLoginView to use for change password at first login workflow.

* Start testing.

* Testing.

* Split change password at first login from reset password workflow.

* Create a custom view for confirm reset password to split User rest password workflow from Change password at first login worflow.

* Override settings fix.

---------

Co-authored-by: wlorenzetti <[email protected]>

* ✨ Add support to qgis `'postgresraster'` layer (#652)

* Add 'postgresraster' qgis layer type support.

* ⬆️ Client:
    g3w-client :g3w-suite/g3w-client#519

---------

Co-authored-by: wlorenzetti <[email protected]>
Co-authored-by: volterra79 <[email protected]>

* Fix get filter layer saved with anonymous user. (#654)

Co-authored-by: wlorenzetti <[email protected]>

* Typo

* Fix importing project with RelationReference widget

* Fix migrations.

* ⬆️ Client:
    g3w-client : g3w-suite/g3w-client@1a8c128

* ⬆️ Client:
    g3w-client : g3w-suite/g3w-client#505

* ⬆️ Client:
    g3w-client : g3w-suite/g3w-client#505 Missing svg icon

* ⬆️ Client:
    g3w-client : g3w-suite/g3w-client@23227b6

* ⬆️ Client:
    g3w-client : g3w-suite/g3w-client@573bc3b

* ⬆️ Client:
    g3w-client :g3w-suite/g3w-client@bfd21d6
    g3w-client-plugin-editing: g3w-suite/g3w-client-plugin-editing@546be8b

* ⬆️ Client:
    g3w-client-plugin-editing: g3w-suite/g3w-client-plugin-editing@8e2a163

* ⬆️ Client:
    g3w-client-plugin-editing: g3w-suite/g3w-client-plugin-editing@bfc43de

* ⬆️ Client:
    g3w-client-plugin-editing: g3w-suite/g3w-client-plugin-editing@cfd558d

* ⬆️ Client:
    g3w-client: g3w-suite/g3w-client@7ac2a8c

* mispelling

* ⬆️ Client:
    g3w-client: g3w-suite/g3w-client@ad1b3c2
    g3w-client-plugin-editing: g3w-suite/g3w-client-plugin-editing@21cc247

* Remove 'Bing' from default value of 'GEOCODING_PROVIDERS' setting.

* ⬆️ Client:
    g3w-client: g3w-suite/g3w-client@b23276b

* ⬆️ Client:
    g3w-client: Add geocoding providers folder

---------

Co-authored-by: wlorenzetti <[email protected]>
Co-authored-by: volterra79 <[email protected]>
Co-authored-by: Raruto <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ Postgis Raster
2 participants