Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/technologiestiftung/odis-masterportal
Dockerized version of the masterportal.org for exploration. Original source can be found under https://bitbucket.org/geowerkstatt-hamburg/masterportal/src/dev/
https://github.com/technologiestiftung/odis-masterportal
odis open-data
Last synced: about 2 months ago
JSON representation
Dockerized version of the masterportal.org for exploration. Original source can be found under https://bitbucket.org/geowerkstatt-hamburg/masterportal/src/dev/
- Host: GitHub
- URL: https://github.com/technologiestiftung/odis-masterportal
- Owner: technologiestiftung
- License: mit
- Created: 2020-10-15T13:59:21.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-12T16:10:57.000Z (over 1 year ago)
- Last Synced: 2024-06-11T18:22:26.425Z (7 months ago)
- Topics: odis, open-data
- Language: CSS
- Homepage:
- Size: 7.94 MB
- Stars: 3
- Watchers: 9
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
![](https://img.shields.io/badge/Built%20with%20%E2%9D%A4%EF%B8%8F-at%20Technologiestiftung%20Berlin-blue)
# ODIS Masterportal
Dockerized version of the masterportal.org for exploration. Original source can be found under https://bitbucket.org/geowerkstatt-hamburg/masterportal/src/dev/
Based on Masterportal Version 2.5.4## service-prototype
### mastercode
A few bug fixes were completed since the last official version, which are neccessary for the WFS-T module. Therefore, the folder `source/mastercode/2_6_1` holds a build of the masterportal code from the latest development version (as of 10.02.2021). When there is a new stable release, this should replace this custom build.
In addition to the compilation there was one more bug I had to fix manually (not sure if this is going to be fixed in the next release). In the WFS-T module, the projection is hard-coded into the source. (see: https://bitbucket.org/geowerkstatt-hamburg/masterportal/src/ac189fbbca970b72b1409c9ca244057b8ecc630a/modules/wfsTransaction/model.js?at=dev#model.js-86)
Note: wfst is being replaces by wfsTransaction.
### ServicesBasic
This setup is based on `Basic` and extended through the new services and its using the new mastercode/2_6_1.
#### Mapfish print
Inside ServicesBasic go to `resources/rest-services-internet.json` and add (or modify the print service):
```json
{
"id": "mapfish",
"name": "Print Service Prod",
"url": "https://tsb-mapfishprint.onrender.com/print/",
"typ": "Print"
}
```Next edit the config.json (mapfishServiceId must match the id from the previous json):
```json
{
"Portalconfig": {
"menu": {
"tools": {
"children": {
"print": {
"name": "translate#common:menu.tools.print",
"glyphicon": "glyphicon-print",
"mapfishServiceId": "mapfish",
"printAppId": "master",
"filename": "Ausdruck",
"title": "Mein Titel",
"version": "mapfish_print_3"
}
}
}
}
}
}
```#### WFS-T
Inside ServicesBasic go to `resources/services-internet.json` and add (or modify the wfs-t service):
```json
{
"id": "wfs_t_id",
"name": "WFS-T Test",
"url": "https://tsb-tinyows.onrender.com",
"typ": "WFS",
"format": "image/png",
"featurePrefix": "tows",
"featureType": "tows:test_points",
"version": "1.1.0",
"featureNS": "http://www.mapserver.org/tinyows/",
"outputFormat": "XML",
"gfiAttributes": {
"name": "name"
},
"layerAttribution": "nicht vorhanden",
"legend": true,
"datasets": []
}
```Most importantly:
- **id**: for the next json as identifier
- **featurePrefix**: prefix from wfs-service (if using tinyOWS with default settings: tows)
- **featureType**: name of layer from the wfs-t service (name of table in postgres)
- **gfiAttributes**: if attributes of service should be accessible and editable write down hereNext edit the config.json:
```json
{
"Portalconfig": {
"menu": {
"tools": {
"children": {
"wfst": {
"name": "WFS-T Tool",
"glyphicon": "glyphicon-globe",
"layerIds": ["wfs_t_id"],
"toggleLayer": true,
"layerSelect": "TestLayer",
"pointButton": [
{
"layerId": "wfs_t_id",
"caption": "Point test",
"show": true
}
],
"lineButton": false,
"edit": "Edit",
"delete": true
}
}
}
}
}
}
```- **layerIds**: Array of IDs from the services-internet.json file
- **pointButton**: Interface for creating new pointsFor more details check: https://bitbucket.org/geowerkstatt-hamburg/masterportal/src/dev/doc/config.json.md#markdown-header-portalconfigmenutoolwfst
## Contributors β¨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Lisa-Stubert
π£ π» π
Sebastian Meier
π»
Fabian MorΓ³n Zirfas
π» π§
Lucas Vogel
π
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
## Credits