Git Product home page Git Product logo

demo_geomapfish's Introduction

GeoMapFish demo project

Read the Documentation

Checkout

git clone [email protected]:camptocamp/demo_geomapfish.git
cd demo_geomapfish

Build

Follow the README of https://github.com/camptocamp/geospatial-ci-pass#install-gopass-locally to install gopass and init gopass with the store gs/ci. Then run:

make secrets
./build

Run locally

docker-compose up -d

The demo is accessible at https://localhost:8484/ or (https://localhost:8484/<interface>)

Notes

If you use the default database (as configured in the env.project file), you must enable the Camptocamp VPN.

If you modify the content of the geoportal folder and want to use these changes, you must comment this line to use the correct image with you local composition:

image: camptocamp/geomapfish-geoportal:${DOCKER_TAG}

Backup database

./build
scripts/db-backup --arg=--schema='edit' edit.backup
scripts/db-backup --arg=--schema='edit21781' edit21781.backup
scripts/db-backup --arg=--schema='geodata' geodata.backup
scripts/db-backup --arg=--schema='geodata21781' geodata21781.backup
scripts/db-backup --arg=--schema='main_2_7' main_2_7.backup
scripts/db-backup --arg=--schema='static_2_7' static_2_7.backup

demo_geomapfish's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demo_geomapfish's Issues

Error with GPG

I get the next error with Arch Linux x64:

c2c-template --cache /build/c2ctemplate-cache.json --engine mako \
	--runtime-environment-pattern '${{{}}}' --files project.yaml.mako
gpg --output secrets.tar.bz2 --decrypt secrets.tar.bz2.gpg
gpg: encrypted with ELG key, ID D9010D0CA556AE3D
gpg: encrypted with RSA key, ID BE23B0FBB8DD9EC1
gpg: encrypted with RSA key, ID AFF1775584631A50
gpg: encrypted with RSA key, ID D0C01D4F8D5B5440
gpg: encrypted with RSA key, ID 19A11C7FF22639F2
gpg: encrypted with RSA key, ID F9026FB0EB2DABD3
gpg: encrypted with ELG key, ID 8DACDB8A862F75DC
gpg: decryption failed: No secret key
make: *** [secrets] Error 2
CONST_Makefile:768: recipe for target 'secrets' failed

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: .github/renovate.json5
Error type: The renovate configuration file contains some invalid settings
Message: packageRules[2]: Each packageRule must contain at least one match* or exclude* selector. Rule: {"fileMatch":["custom/.*"],"enabled":true}

add "wmsUrl" metadata for the Admin interface

In the Admin interface, I cannot choose "wmsUrl" in the dropdown of the metadata.

I think this is used for configuring WMS layers for WMTS layers (f.e. for printing), therefore I need that dropdown entry.

Arbres "Children" des groupes de couches et thèmes

Les arbres de couches pour séléctionner les éléments des thèmes et des groupes de couches sont devenus des listes à points statiques.

Ceci est bloquant, puisque plus aucune couche n'est sélectionnable dans un nouveau groupe.

(PostGIS 2.1) login dans l'interface Main échoue

[Thu Jan 08 15:41:38 2015] [error] [client 10.27.71.4] File "/home/gmilani/demo_geomapfish/demo/templates/viewer.js", line 35, in render_body
[Thu Jan 08 15:41:38 2015] [error] [client 10.27.71.4] % if user and user.role.extent:
[Thu Jan 08 15:41:38 2015] [error] [client 10.27.71.4] File "/home/gmilani/demo_geomapfish/buildout/eggs/SQLAlchemy-0.9.8-py2.7-linux-x86_64.egg/sqlalchemy/sql/elements.py", line 538, in bool
[Thu Jan 08 15:41:38 2015] [error] [client 10.27.71.4] raise TypeError("Boolean value of this clause is not defined")
[Thu Jan 08 15:41:38 2015] [error] [client 10.27.71.4] TypeError: Boolean value of this clause is not defined

Impossible d'éditer une aire de restriction

File '/home/gmilani/demo_geomapfish/buildout/eggs/c2cgeoportal-1.6.0dev_20141211-py2.7.egg/c2cgeoportal/forms.py', line 262 in render_organisational_item
[Thu Jan 08 15:17:05 2015] [error] [client 10.27.10.186] result += "%(label)s" % {'label': item.name}
[Thu Jan 08 15:17:05 2015] [error] [client 10.27.10.186] AttributeError: 'LayergroupTreeitem' object has no attribute 'name'

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update dependency sqlalchemy to v1.4.52 (prod-2-7)
  • Update dependency sqlalchemy to v1.4.52 (prod-2-7-advance)
  • Update all patch versions (prod-2-8) (patch) (redis, sqlalchemy, vite)
  • Update dependency poetry to v1.8.2 (prod-2-8)
  • Update all minor versions (prod-2-8) (minor) (requests-oauthlib, sentry-sdk, typescript, vite)
  • Lock file maintenance (prod-2-8)
  • Update all patch versions (prod-2-8-advance) (patch) (redis, sqlalchemy, vite)
  • Update dependency poetry to v1.8.2 (prod-2-8-advance)
  • Update all minor versions (prod-2-8-advance) (minor) (requests-oauthlib, sentry-sdk, typescript, vite)
  • Lock file maintenance (prod-2-8-advance)

Detected dependencies

Branch prod-2-7
docker-compose
docker-compose-db.yaml
docker-compose-qgis.yaml
docker-compose.override.acceptance-test.yaml
docker-compose.override.sample.yaml
docker-compose.yaml
dockerfile
Dockerfile
custom/Dockerfile
  • osgeo/gdal ubuntu-small-3.4.3
github-actions
.github/workflows/backport.yaml
  • ubuntu 22.04
.github/workflows/main.yaml
  • actions/checkout v2
  • camptocamp/initialise-gopass-summon-action v2
  • getsentry/action-release v1
  • ubuntu 22.04
.github/workflows/pull-request-automation.yaml
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • ubuntu 22.04
.github/workflows/test.yaml
  • actions/checkout v2
  • actions/checkout v2
  • ubuntu 22.04
.github/workflows/update_l10n.yaml
  • actions/checkout v2
  • ubuntu 22.04
.github/workflows/upgrade-25.yaml
  • actions/checkout v2
  • ubuntu 22.04
.github/workflows/upgrade-26.yaml
  • actions/checkout v2
  • ubuntu 22.04
.github/workflows/upgrade-27.yaml
  • actions/checkout v2
  • ubuntu 22.04
npm
package.json
  • lit 2.2.8
  • typescript 4.6.4
  • vite 2.8.6
pip_requirements
custom/requirements.txt
  • poetry ==1.3.2
  • poetry-plugin-export ==1.5.0
poetry
custom/pyproject.toml
  • gunicorn 20.1.0
  • plaster-pastedeploy 0.7
  • pyramid 2.0.2
  • pyramid-mako 1.1.0
  • pyramid-debugtoolbar 4.9
  • waitress 2.1.2
  • alembic 1.7.7
  • pyramid-retry 2.1.1
  • pyramid-tm 2.5
  • sqlalchemy 1.4.51
  • transaction 3.0.1
  • zope.sqlalchemy 1.6
  • cornice 6.0.1
  • requests 2.27.1
  • psycopg2 2.9.9
  • c2cwsgiutils 5.0.2
  • cee-syslog-handler 0.6.0
  • PyJWT 2.4.0
  • redis 4.3.6
  • PyYAML 6.0.1
  • sentry-sdk 1.5.12
  • requests-oauthlib 1.3.1
  • ujson 5.3.0
  • prospector 1.7.7
Branch prod-2-7-advance
docker-compose
docker-compose-db.yaml
docker-compose-qgis.yaml
docker-compose.override.acceptance-test.yaml
docker-compose.override.sample.yaml
docker-compose.yaml
dockerfile
Dockerfile
custom/Dockerfile
  • osgeo/gdal ubuntu-small-3.4.3
geoportal/Dockerfile
github-actions
.github/workflows/backport.yaml
  • ubuntu 22.04
.github/workflows/main.yaml
  • actions/checkout v2
  • camptocamp/initialise-gopass-summon-action v2
  • ubuntu 22.04
.github/workflows/pull-request-automation.yaml
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • ubuntu 22.04
.github/workflows/test.yaml
  • actions/checkout v2
  • actions/checkout v2
  • ubuntu 22.04
.github/workflows/update_l10n.yaml
  • actions/checkout v2
  • ubuntu 22.04
.github/workflows/upgrade-25.yaml
  • actions/checkout v2
  • ubuntu 22.04
.github/workflows/upgrade-26.yaml
  • actions/checkout v2
  • ubuntu 22.04
.github/workflows/upgrade-27.yaml
  • actions/checkout v2
  • ubuntu 22.04
.github/workflows/uptodate.yaml
  • actions/checkout v2
  • actions/checkout v2
  • ubuntu 22.04
npm
package.json
  • lit 2.2.8
  • typescript 4.6.4
  • vite 2.8.6
pip_requirements
custom/requirements.txt
  • poetry ==1.3.2
  • poetry-plugin-export ==1.5.0
poetry
custom/pyproject.toml
  • gunicorn 20.1.0
  • plaster-pastedeploy 0.7
  • pyramid 2.0.2
  • pyramid-mako 1.1.0
  • pyramid-debugtoolbar 4.9
  • waitress 2.1.2
  • alembic 1.7.7
  • pyramid-retry 2.1.1
  • pyramid-tm 2.5
  • sqlalchemy 1.4.51
  • transaction 3.0.1
  • zope.sqlalchemy 1.6
  • cornice 6.0.1
  • requests 2.27.1
  • psycopg2 2.9.9
  • c2cwsgiutils 5.0.2
  • cee-syslog-handler 0.6.0
  • PyJWT 2.4.0
  • redis 4.3.6
  • PyYAML 6.0.1
  • sentry-sdk 1.5.12
  • requests-oauthlib 1.3.1
  • ujson 5.3.0
  • prospector 1.7.7
Branch prod-2-8
docker-compose
docker-compose-db.yaml
docker-compose-qgis.yaml
docker-compose.override.sample.yaml
docker-compose.yaml
dockerfile
Dockerfile
custom/Dockerfile
  • osgeo/gdal ubuntu-small-3.6.3
github-actions
.github/workflows/backport.yaml
  • ubuntu 22.04
.github/workflows/delete-old-workflows-run.yaml
  • MajorScruffy/delete-old-workflow-runs v0.3.0
  • ubuntu 22.04
.github/workflows/main.yaml
  • actions/checkout v4
  • actions/checkout v4
  • camptocamp/initialise-gopass-summon-action v2
  • ubuntu 22.04
.github/workflows/pull-request-automation.yaml
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • ubuntu 22.04
.github/workflows/rebuild-2-6.yaml
  • actions/checkout v4
  • camptocamp/initialise-gopass-summon-action v2
  • actions/checkout v4
  • camptocamp/initialise-gopass-summon-action v2
  • ubuntu 22.04
  • ubuntu 22.04
.github/workflows/rebuild.yaml
  • actions/checkout v4
  • camptocamp/initialise-gopass-summon-action v2
  • ubuntu 22.04
.github/workflows/update_l10n.yaml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/upgrade-2-5.yaml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/upgrade-2-6.yaml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/upgrade-2-7.yaml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/upgrade-2-8.yaml
  • actions/checkout v4
  • ubuntu 22.04
npm
package.json
  • lit 3.1.2
  • typescript 5.3.3
  • vite 5.1.4
pip_requirements
custom/requirements.txt
  • poetry ==1.8.1
  • pip ==24.0
poetry
custom/pyproject.toml
  • gunicorn 21.2.0
  • plaster-pastedeploy 1.0.1
  • pyramid 2.0.2
  • pyramid-mako 1.1.0
  • pyramid-debugtoolbar 4.12.1
  • waitress 3.0.0
  • alembic 1.13.1
  • pyramid-retry 2.1.1
  • pyramid-tm 2.5
  • sqlalchemy 2.0.27
  • transaction 4.0
  • zope.sqlalchemy 3.1
  • cornice 6.1.0
  • requests 2.31.0
  • psycopg2 2.9.9
  • c2cwsgiutils 6.0.7
  • cee-syslog-handler 0.6.0
  • PyJWT 2.8.0
  • redis 5.0.2
  • PyYAML 6.0.1
  • sentry-sdk 1.40.6
  • requests-oauthlib 1.3.1
  • ujson 5.9.0
  • prospector 1.10.3
Branch prod-2-8-advance
docker-compose
docker-compose-db.yaml
docker-compose-qgis.yaml
docker-compose.override.sample.yaml
docker-compose.yaml
dockerfile
Dockerfile
custom/Dockerfile
  • osgeo/gdal ubuntu-small-3.6.3
geoportal/Dockerfile
github-actions
.github/workflows/backport.yaml
  • ubuntu 22.04
.github/workflows/main.yaml
  • actions/checkout v4
  • actions/checkout v4
  • camptocamp/initialise-gopass-summon-action v2
  • ubuntu 22.04
.github/workflows/pull-request-automation.yaml
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • ubuntu 22.04
.github/workflows/update_l10n.yaml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/upgrade-25.yaml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/upgrade-26.yaml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/upgrade-27.yaml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/uptodate.yaml
  • actions/checkout v4
  • actions/checkout v4
  • ubuntu 22.04
npm
package.json
  • lit 3.1.2
  • typescript 5.3.3
  • vite 5.1.4
pip_requirements
custom/requirements.txt
  • poetry ==1.8.1
poetry
custom/pyproject.toml
  • gunicorn 21.2.0
  • plaster-pastedeploy 1.0.1
  • pyramid 2.0.2
  • pyramid-mako 1.1.0
  • pyramid-debugtoolbar 4.12.1
  • waitress 3.0.0
  • alembic 1.13.1
  • pyramid-retry 2.1.1
  • pyramid-tm 2.5
  • sqlalchemy 2.0.27
  • transaction 4.0
  • zope.sqlalchemy 3.1
  • cornice 6.1.0
  • requests 2.31.0
  • psycopg2 2.9.9
  • c2cwsgiutils 6.0.7
  • cee-syslog-handler 0.6.0
  • PyJWT 2.8.0
  • redis 5.0.2
  • PyYAML 6.0.1
  • sentry-sdk 1.40.6
  • requests-oauthlib 1.3.1
  • ujson 5.9.0
  • prospector 1.10.3

  • Check this box to trigger a request for Renovate to run again on this repository

Incorrect printing of static images in the generated PDF

For instance when printing the following page:
https://geomapfish-demo.camptocamp.net/2.2?lang=fr&tree_group_layers_Transport=fuel&baselayer_ref=OSM%20map&map_crosshair=true&tree_groups=Transport

The crosshair (a static PNG file served using a "proj/" URL) is rejected (and replaced by a black square) because of an error similar to

java.lang.IllegalArgumentException:
http://127.0.0.1/main/wsgi/proj/5d3163d34b894bb5b49ff07c48ff2116/images/crosshair.png is denied.

capture du 2017-10-24 14-55-21

This seems to be related to the print config at https://github.com/camptocamp/demo_geomapfish/blob/2.2/print/print-apps/demo/config.yaml.mako#L38-L76

For project SZ, @marionb has applied the following fix: https://github.com/camptocamp/schwyz_geoportal/pull/345/files
making sure the URLs of files in the "proj/" dir are not converted to localhost URLs.

Should we apply the fix to demo_geomapfish? If yes for what banch(es)? 2.2? master?

Should we apply the fix to the GMF scaffolds at https://github.com/camptocamp/c2cgeoportal/blob/master/geoportal/c2cgeoportal_geoportal/scaffolds/create/print/print-apps/%2Bpackage%2B/config.yaml.mako#L38 (+ in some change log file?)? If yes for what branch(es)?

(PostGIS 2.1) Edition des géométries

[Thu Jan 08 16:26:20 2015] [error] [client 10.27.71.4] InternalError: (InternalError) Operation on two GEOMETRIES with different SRIDs
[Thu Jan 08 16:26:20 2015] [error] [client 10.27.71.4]
[Thu Jan 08 16:26:20 2015] [error] [client 10.27.71.4] 'SELECT edit.line.id AS edit_line_id, edit.line.name AS edit_line_name, ST_AsBinary(edit.line.geom) AS edit_line_geom \nFROM edit.line \nWHERE ST_DWITHIN(edit.line.geom, ST_GeomFromWKB(%(ST_GeomFromWKB_1)s, %(ST_GeomFromWKB_2)s), %(ST_DWITHIN_1)s)' {'ST_DWITHIN_1': 0.0, 'ST_GeomFromWKB_1': <read-only buffer for 0x7f4cba39ce00, size -1, offset 0 at 0x7f4c942e1f30>, 'ST_GeomFromWKB_2': -1}

new make

[Wed Jan 28 12:45:01 2015] [error] 2015-01-28 12:45:01,758 WARNI [py.warnings][MainThread] /home/gmilani/demo_geomapfish/.build/venv/lib/python2.7/site-packages/sqlahelper.py:47: SAWarning: At least one scoped session is already present. configure() can not affect sessions that have already been created.
[Wed Jan 28 12:45:01 2015] [error] _session.configure(bind=engine)
[Wed Jan 28 12:45:01 2015] [error]
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] mod_wsgi (pid=2083): Target WSGI script '/home/gmilani/demo_geomapfish/apache/application.wsgi' cannot be loaded as Python module.
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] mod_wsgi (pid=2083): Exception occurred processing WSGI script '/home/gmilani/demo_geomapfish/apache/application.wsgi'.
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] Traceback (most recent call last):
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/demo_geomapfish/apache/application.wsgi", line 6, in
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] application = get_app(configfile, 'main')
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/demo_geomapfish/.build/venv/lib/python2.7/site-packages/pyramid/paster.py", line 31, in get_app
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] global_conf=options)
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/demo_geomapfish/.build/venv/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] return loadobj(APP, uri, name=name, *_kw)
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/demo_geomapfish/.build/venv/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] return context.create()
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/demo_geomapfish/.build/venv/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] return self.object_type.invoke(self)
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/demo_geomapfish/.build/venv/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 203, in invoke
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] app = context.app_context.create()
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/demo_geomapfish/.build/venv/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] return self.object_type.invoke(self)
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/demo_geomapfish/.build/venv/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] return fix_call(context.object, context.global_conf, *_context.local_conf)
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/demo_geomapfish/.build/venv/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] val = callable(_args, *_kw)
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/demo_geomapfish/demo/init.py", line 46, in main
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] add_interface(config, 'mobile', INTERFACE_TYPE_SENCHA_TOUCH)
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/c2cgeoportal/c2cgeoportal/init.py", line 108, in add_interface
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] add_interface_senchatouch(config, interface_name, **kwargs)
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] File "/home/gmilani/c2cgeoportal/c2cgeoportal/init.py", line 174, in add_interface_senchatouch
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] package = config.get_settings()['project']
[Wed Jan 28 12:45:01 2015] [error] [client 10.27.10.186] KeyError: 'project'

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.