Code Monkey home page Code Monkey logo

lizmap-pgrouting-module's Introduction

lizmap-pgrouting-module's People

Contributors

dependabot[bot] avatar gustry avatar laurentj avatar lhirlimann avatar mdouchin avatar nboisteault avatar pdrillin avatar rldhont avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lizmap-pgrouting-module's Issues

Add "TRONCON_DE_ROUTE.shp" to the sample project

While following

https://github.com/3liz/lizmap-pgrouting-module/blob/master/docs/configuration.md

the queries to create the nodes and edges tables are depending on having imported the line vector contained in the mentioned shapefile, but this vector is not found inside

https://demo.lizmap.com/lizmap/index.php/view/media/getMedia?repository=modules&project=pgrouting&path=/media/pgrouting.zip

That zip file contains indeed the SQL with the INSERT statements for the nodes and edges tables, but there aren't the CREATE TABLE ones to create the necessary structure for this tables.

enhancement: support for time as cost

It seems to me (correct if I'm wrong) that at the moment the module is especially targeted to use distance/length as cost.

It would be nice to support a second set of cost columns for time in minutes, or have the function compute this cost using the length column and a column that would hold the speed value.

Possible to override the default symbology

For now, the symbology is hard-coded in the JS files :

new Style({
stroke: new Stroke({
color: 'black',
width: 11,
}),
}),
new Style({
stroke: new Stroke({
color: 'purple',
width: 9,
}),
}),
];
geometry.forEachSegment((start, end) => {
const dx = end[0] - start[0];
const dy = end[1] - start[1];
const rotation = Math.atan2(dy, dx);
// arrows
styles.push(
new Style({
geometry: new Point(end),
text: new Text({
text: '>',
font: 'normal 16px sans-serif',
rotateWithView: true,
rotation: -rotation,
stroke: new Stroke({
color: 'white',
width: 2,
}),
fill: new Fill({
color: 'white',
})

It would be nice to have the possibility to override these default symbology for the Lizmap administrator.

Check pgrouting is installed

Add a class to check the pg routing config:

  1. Check that pgrouting is installed in the database, even if an error message in logs
  2. Check that the project is well configured

ERROR 500 I Just upgrade my module to 1.0.6 I've received this error on LWC 3.6.4

Error 500. A technical error has occured. Sorry for this trouble.

mapBuilder/urls.xml: include file urls.xml of the module pgrouting does not exist ()

I've tried to reconfigure mapBuilder, mapBuilderAdmin and LCW but the result is the same
php configurator.php mapBuilder
Configuration migration is starting
Configuration migration is finished
Configuration is starting
All modules dependencies are ok
Configuration starts
Modules are configured
Configuration is finished

php configurator.php mapBuilderAdmin
Configuration migration is starting
Configuration migration is finished
Configuration is starting
All modules dependencies are ok
Configuration starts
Modules are configured
Configuration is finished

sudo php installer.php
Installation is starting
All modules dependencies are ok
Installation starts
Module mapBuilder upgraded to the version 2.1.1
Module mapBuilderAdmin upgraded to the version 2.1.1
All modules are installed or upgraded
Installation is finished

php configurator.php
Configuration migration is starting
Configuration migration is finished
Configuration is starting
All modules dependencies are ok
Configuration starts
Configuration of the module jelix
Configuration of the module jcommunity
Configuration of the module jacl2
Configuration of the module jacl2db
Configuration of the module master_admin
Configuration of the module jauthdb_admin
Configuration of the module jacl2db_admin
Configuration of the module admin
Configuration of the module lizmap
Configuration of the module mapBuilder
Configuration of the module mapBuilderAdmin
Configuration of the module wps
Configuration of the module pgrouting
SRID your are using? (default is '32633') >
PostgreSQL group of user to grant access on the schema pgrouting ? > lizmap
Which is the type of your database? (default is 'pgsql')
[0] mssql
[1] mysqli
[2] oci
[3] pgsql
[4] sqlite3
[5] sqlsrv

Use a PDO to connect to the database? ( 'y' or 'n', default is n) > y
For all tables accessible from this connection, are they name prefixed? ( 'y' or 'n', default is n) > n
Configuration of the module view
Configuration of the module action
Configuration of the module proj4php
Configuration of the module dynamicLayers
Configuration of the module filter
Configuration of the module dataviz
Modules are configured
Configuration is finished

Installation is starting
All modules dependencies are ok
Installation starts
All modules are installed or upgraded
Installation is finished

Question: what is the role of the "edition" table in the "pgrouting_demo" schema?

As part of the installation/configuration it is created also a "pgrouting_demo" schema, with a "edition" table in it.

This table is part of the sample projects here

https://demo.lizmap.com/lizmap/index.php/view/media/getMedia?repository=modules&project=pgrouting&path=/media/pgrouting.zip

and here

https://github.com/3liz/lizmap-pgrouting-module/tree/master/tests/lizmap/instances/pgrouting

anyway is unclear its function, as I can't see any mention in docs, and also I can't see any change in the table content when/after using lizmap/pgrouting.

Bonus question 1: what is the function of the JS file in media/js/pgrouting? is it mandatory? why its content is different here

https://demo.lizmap.com/lizmap/index.php/view/media/getMedia?repository=modules&project=pgrouting&path=/media/pgrouting.zip

and here

https://github.com/3liz/lizmap-pgrouting-module/tree/master/tests/lizmap/instances/pgrouting/media/js/pgrouting

?

Bonus question 2: what is the function of the "qgis_plugin" table also created inside the "pg_routing" schema?

Problems installing and configuring the module

Trying to follow documentation here

https://github.com/3liz/lizmap-pgrouting-module/blob/master/docs/installation.md

  1. while trying to install the module without using composer an error is returned
php lizmap/install/configurator.php pgrouting
Configuration migration is starting
Configuration migration is finished

In ModuleInfos.php line 113:

  No module.xml file into /home/gmanghi/www/naturalgis_demo/lizmap/lizmap-modules/pgrouting/


configure [-p|--parameters PARAMETERS] [-r|--remove] [-f|--force] [-e|--entry-points ENTRY-POINTS] [--] [<module>]
  1. installation with composer seems to work, anyway running the "configurator.php" script as described here

https://github.com/3liz/lizmap-pgrouting-module/blob/master/docs/installation.md#launching-the-installer-with-lizmap-web-client-36

do not ask "all parameters for the PostgreSQL database access", just the other infos (SRID, role, etc.), so the next step

php lizmap/install/installer.php

fails with

Installation is starting
All modules dependencies are ok
Installation starts
[error] An error occured during the installation of the module pgrouting: error during the connection localhost
Installation is finished

I'm using LMWC 3.6.9 and PHP 8.1 and the doubt is if the path to follow is the one described in "Launching the installer with Lizmap Web Client 3.6"

https://github.com/3liz/lizmap-pgrouting-module/blob/master/docs/installation.md#launching-the-installer-with-lizmap-web-client-36

or in "Launching the installer with Lizmap 3.5"

https://github.com/3liz/lizmap-pgrouting-module/blob/master/docs/installation.md#launching-the-installer-with-lizmap-35

because the latter also says "If you are using Lizmap Web Client 3.6 or higher..." as the former, but maybe this just an error in the docs(?).

Any help is much appreciated.

Add a button to reset start and end point

If you already have set start and end point, you only be able to move these points.

If you move the map, you are not able to get the points and move it, you prefer to restart the operation.

Aide pg routing

Bonjour, j'utilise pgrouting pour un de mes projet (version Lizmap Web Client 3.6). J'ai suivi la documentation avec une Installation manuelle du module (la dernière archive ZIP ) . Mais dès que je procède à l'installation et imprt de la couche route dans ma table pgrouting dans postgis, mon serveur ne marche plus, il me met "This web site is closed" .
Journal :
2023-12-12T08:21:45 WARNING Récupération du HTTP http://localhost/lizmap36/lizmap/www/index.php/view/app/metadata échouée avec l'erreur Error transferring http://localhost/lizmap36/lizmap/www/index.php/view/app/metadata - server replied: Application not available
2023-12-12T08:22:08 INFO État de l'application
variable d'environnement QGIS_PREFIX_PATH : C:/PROGRA1/QGIS321.0/apps/qgis
Préfixe: C:/PROGRA1/QGIS321.0/apps/qgis
Chemin des extensions: C:/PROGRA1/QGIS321.0/apps/qgis/plugins
Chemin des paquets de données: C:/PROGRA1/QGIS321.0/apps/qgis/.
Nom du thème actif: default
Chemin du thème actif: C:/PROGRA1/QGIS321.0/apps/qgis/./resources/themes\default\icons/
Chemin du thème par défaut: :/images/themes/default/
Chemins de recherche SVG: C:/PROGRA1/QGIS321.0/apps/qgis/./svg/
C:/Users/gakou/AppData/Roaming/QGIS/QGIS3\profiles\default/svg/
Chemin de la BD utilisateur: C:/PROGRA1/QGIS321.0/apps/qgis/./resources/qgis.db
Chemin de la BD d'authentification: C:/Users/gakou/AppData/Roaming/QGIS/QGIS3\profiles\default/qgis-auth.db .
Pourriez-vous m'aider s'il vous plait ?

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.