Full documentation : https://terravisu.readthedocs.io/
Install : https://github.com/Terralego/TerraVisu/releases/latest/download/install.zip
Import et visualize geographic data
Home Page: https://demo-terravisu-territoires.makina-corpus.com/
License: MIT License
Full documentation : https://terravisu.readthedocs.io/
Install : https://github.com/Terralego/TerraVisu/releases/latest/download/install.zip
LayerTree cache management is not working
Logos come from django configuration (INSTANCE_LOGO and INSTANCE_SPLASHSCREEN)
We don't want these logos in the print.
URL instance : https://demo-collectivite-territoires.makina-corpus.com
When we edit an existing postgis source, password doesn't show again, and it's a good thing.
But this empty value is used to check connection, so edition is not available without retyping password
Change layer duplication at backend / API level
Refresh status is get from async celery task.
These tasks are deleted in backend.
Sources are marked as "PENDING" when no data is find.
Solution:
Currently it is possible to define an order for a basemap but not by a view . However, the order of displaying a basemap can change depending on the view.
From now, group access is defined to sources. We should duplicate source and data to expose differents layers to differents groups
Currently refreshing data sources can only be done source after source. In addition, the current refresh of a source blocks the refresh request of a second source.
Can the user be allowed to launch a batch of data refresh (select all, be able to remove sources from the list of data to be refreshed, etc) ?
From now, an anonymous use can see views and its subgroups even if all sub-layers are protected by group access (authenticated user not in theses groups toot)
I managed to install it and find a data source here: https://www.data.gouv.fr/fr/datasets/liste-des-gares/
I've imported the data and filled in all the fields, but after that I don't know what to do.
When I go to http://localhost:8080/ I get a redirect to http://localhost:8080/auth/ with the error below:
js Failed to load resource: the server responded with a status of 500 (Internal Server Error) withEnv.js:19 env.json is invalid. Please create a public/env.json from public/env.dist.json
Is there a step-by-step tutorial for getting started?
List :
Detail / edit :
add global "Infos" panel (read only):
Allow to force refresh source if button disabled
Go to report tab if click on status icon
Report : Global report : keep only excpetion message in cas of error (no success report)
Report : Format errors in table overflowed
Then:
Add those options in the studio for labels :
"text-justify": "auto",
"text-allow-overlap": true,
"text-radial-offset": 0.5,
"text-variable-anchor": [
"top",
"bottom",
"left",
"right"
]
Steps to reproduce :
The settings returned by https://<instance>/api/geolayer/<layer_id>/
doesn't have a map_style
in main_style
This time, the settings do return map_style
.
The consequences of that bug are that the front-end can't display the layer until it is re-saved.
The weird part :
When saving the layer the first time, the PUT
request response, has a valid map_style
parameter but the GET
request reponse just after that doesn't have it.
first PUT https://<instance>/api/geolayer/<id>/
{
"main_style": {
"type": "wizard",
"min_zoom": 0,
"max_zoom": 24,
"map_style_type": "circle",
"style": {
"circle_color": {
"type": "fixed",
"value": "#91ace2"
},
"circle_radius": {
"type": "fixed",
"value": 30
}
},
"map_style": {
"type": "circle",
"minzoom": 0,
"maxzoom": 24,
"paint": {
"circle-color": "#91ace2",
"circle-radius": 30
}
}
}
}
GET https://<instance>/api/geolayer/<id>/
{
"main_style": {
"map_style_type": "circle",
"max_zoom": 24,
"min_zoom": 0,
"style": {
"circle_color": {
"type": "fixed",
"value": "#91ace2"
},
"circle_radius": {
"type": "fixed",
"value": 30
}
},
"type": "wizard",
}
}
The second PUT
has exactly the same response as the first one
But GET https://<instance>/api/geolayer/<id>/
after the second PUT
receives :
{
"main_style": {
"type": "wizard",
"style": {
"circle_color": {
"type": "fixed",
"value": "#91ace2"
},
"circle_radius": {
"type": "fixed",
"value": 30
}
},
"max_zoom": 24,
"min_zoom": 0,
"map_style_type": "circle",
"map_style": {
"type": "circle",
"minzoom": 0,
"maxzoom": 24,
"paint": {
"circle-color": "#91ace2",
"circle-radius": 30
}
}
}
}
I compared the body of the two PUT
requests, they're the same (except the update date) so it seems like a backend bug
/opt/terra-visu$ /usr/bin/env python
/usr/bin/env: ‘python’: No such file or directory
Actually, if no base layer is defined, frontend bug when it displays a view. We should consider to provide all base layer in APi response if no specific base layer is set for a view.
This configuration should be the same as backend.
Ideally, SENTY_DSN, SENTRY_ENVIRONMENT and SENTRY_RELEASE comming from backend settings
If no view available (empty or all private), user show nothing.
He should at least empty menu and login bouton. Maybe map or message ?
As pictogram used in for symbols
As patterns used for fill
Backend storage and providing
API write
Legend
Symbol part
Admin style
Frontend display
Fill pattern
Admin
Frontend
This should be defined in admin / layer and used in frontend
I tried to add attributions to a json style : https://viglino.github.io/geoservice-style/mapart/mapart.json but it do not appear on the map
Select MapArt in the layer's style : https://demo-terravisu.solutions-territoriales.fr/visualiser/toulouse#map=14.1/43.59723/1.43902
The attributions in the admin : <p>Map tiles by <a href="https://www.geoportail.gouv.fr/">Geoportail</a>, @ IGN-France<a href="https://www.ign.fr/">CC BY 3.0.</a> </p>
Theory from @cfa: it seems that Django only filters the sources stored in the database, therefore does not take into account the wms/wmts data.
Potentially non-blocking on the project because web map service are often open data but may be problematic in the future.
Actually, it's not possible:
install
ready to deploy, zipped and attach to release at each release event in CIActually, a single transaction is performed to refresh a source.
This can take a very long time.
Improve refresh status by creating a new temporary layer, adding features, index to ES, THEN delete old one and linking new one. Perform database transaction per feature refreshed. If error occured, delete new layer and ES index.
This would be handy when you want to reuse the same extent of one view on another view.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.