Skip to content

Commit

Permalink
Merge pull request #591 from geonetwork/documentation
Browse files Browse the repository at this point in the history
docs: add a datafeeder docker comp + edit documentation
  • Loading branch information
f-necas authored Sep 21, 2023
2 parents 2c7a79f + f39c25f commit f6374e3
Show file tree
Hide file tree
Showing 18 changed files with 1,209 additions and 25 deletions.
27 changes: 25 additions & 2 deletions docs/apps/datafeeder.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@ outline: deep

# Datafeeder

## Chapter 1
"Datafeeder" is a geOrchestra's backend RESTful service to upload file based datasets and publish them to GeoServer and GeoNetwork in one shot.

## Chapter 2
The separate front-end UI service provides the wizard-like user interface to interact with this [backend](https://github.com/georchestra/georchestra/tree/master/datafeeder).

The front-end part is built with Geonetwork-UI components

## Usage

The easiest way to deploy datafeeder locally is to use the docker composition in `support-services/datafeeder`.

```shell
cd support-services/datafeeder
docker compose up -d
```

In `geonetwork-ui/` directory, run :

```shell
npx nx run datafeeder:serve
```

## Configuration

### Adding projections and encodings

The datafeeder configuration can be edited by modifying the `frontend-config.json` file in `support-services/datafeeder/datadir/datafeeder/` folder.
12 changes: 11 additions & 1 deletion proxy-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,22 @@ module.exports = {
router: (req) => decodeURIComponent(req._parsedUrl.query),
},
'/datafeeder': {
target: 'http://localhost:8080',
target: 'http://localhost:8181',
secure: true,
logLevel: 'debug',
changeOrigin: true,
cookiePathRewrite: {
'/datafeeder': '/',
},
headers: {
'sec-roles':
'ROLE_SUPERUSER;ROLE_GN_ADMIN;ROLE_ADMINISTRATOR;ROLE_USER;ROLE_MAPSTORE_ADMIN',
'sec-org': 'myOrg',
'sec-username': 'testadmin',
'sec-fetch-user': '?1',
'sec-proxy': 'true',
referer: 'https://georchestra-127-0-1-1.traefik.me/',
'sec-orgname': 'myOrg',
},
},
}
220 changes: 220 additions & 0 deletions support-services/datafeeder/datadir/console/cities.geojson
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[9.266, 42.666],
[9.27, 42.667],
[9.277, 42.665],
[9.28, 42.665],
[9.283, 42.662],
[9.286, 42.665],
[9.289, 42.665],
[9.295, 42.668],
[9.299, 42.668],
[9.3, 42.669],
[9.306, 42.67],
[9.31, 42.67],
[9.315, 42.668],
[9.317, 42.67],
[9.321, 42.672],
[9.324, 42.67],
[9.326, 42.672],
[9.328, 42.672],
[9.332, 42.675],
[9.334, 42.675],
[9.338, 42.678],
[9.339, 42.681],
[9.339, 42.69],
[9.338, 42.691],
[9.33, 42.693],
[9.329, 42.694],
[9.322, 42.696],
[9.319, 42.693],
[9.317, 42.693],
[9.314, 42.689],
[9.305, 42.684],
[9.3, 42.684],
[9.299, 42.681],
[9.301, 42.68],
[9.299, 42.676],
[9.293, 42.674],
[9.288, 42.674],
[9.283, 42.678],
[9.283, 42.681],
[9.279, 42.684],
[9.28, 42.689],
[9.277, 42.691],
[9.275, 42.694],
[9.272, 42.694],
[9.269, 42.697],
[9.269, 42.701],
[9.266, 42.7],
[9.262, 42.7],
[9.259, 42.701],
[9.259, 42.703],
[9.256, 42.706],
[9.255, 42.712],
[9.257, 42.718],
[9.254, 42.718],
[9.247, 42.72],
[9.245, 42.718],
[9.234, 42.72],
[9.229, 42.718],
[9.234, 42.709],
[9.235, 42.708],
[9.233, 42.704],
[9.237, 42.7],
[9.242, 42.699],
[9.243, 42.701],
[9.245, 42.7],
[9.246, 42.697],
[9.25, 42.697],
[9.251, 42.698],
[9.256, 42.695],
[9.259, 42.694],
[9.262, 42.692],
[9.263, 42.689],
[9.261, 42.687],
[9.258, 42.682],
[9.259, 42.681],
[9.258, 42.678],
[9.261, 42.676],
[9.264, 42.676],
[9.266, 42.672],
[9.266, 42.666]
]
]
},
"properties": {
"NOM_COM_M": "SAINT FLORENT",
"INSEE_COM": "2B298",
"INSEE_DEP": "2B"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[9.065, 41.963],
[9.068, 41.956],
[9.074, 41.952],
[9.073, 41.95],
[9.075, 41.945],
[9.07, 41.94],
[9.07, 41.936],
[9.075, 41.933],
[9.078, 41.933],
[9.083, 41.932],
[9.086, 41.932],
[9.089, 41.928],
[9.088, 41.926],
[9.094, 41.923],
[9.097, 41.927],
[9.102, 41.924],
[9.105, 41.917],
[9.109, 41.918],
[9.109, 41.922],
[9.106, 41.923],
[9.107, 41.928],
[9.109, 41.931],
[9.109, 41.939],
[9.113, 41.942],
[9.113, 41.952],
[9.115, 41.959],
[9.115, 41.963],
[9.108, 41.972],
[9.11, 41.975],
[9.104, 41.976],
[9.102, 41.977],
[9.097, 41.978],
[9.095, 41.978],
[9.091, 41.975],
[9.086, 41.975],
[9.085, 41.972],
[9.083, 41.971],
[9.083, 41.968],
[9.08, 41.966],
[9.077, 41.966],
[9.074, 41.963],
[9.072, 41.963],
[9.07, 41.961],
[9.068, 41.963],
[9.065, 41.963]
]
]
},
"properties": {
"NOM_COM_M": "TASSO",
"INSEE_COM": "2A322",
"INSEE_DEP": "2A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[9.393, 42.675],
[9.397, 42.673],
[9.404, 42.671],
[9.406, 42.669],
[9.412, 42.667],
[9.424, 42.665],
[9.429, 42.665],
[9.435, 42.662],
[9.443, 42.661],
[9.45, 42.662],
[9.447, 42.669],
[9.446, 42.675],
[9.447, 42.679],
[9.447, 42.685],
[9.446, 42.686],
[9.448, 42.69],
[9.452, 42.691],
[9.453, 42.696],
[9.452, 42.7],
[9.456, 42.706],
[9.455, 42.708],
[9.452, 42.709],
[9.449, 42.711],
[9.446, 42.71],
[9.445, 42.708],
[9.438, 42.706],
[9.436, 42.706],
[9.432, 42.708],
[9.428, 42.708],
[9.423, 42.709],
[9.42, 42.709],
[9.418, 42.707],
[9.413, 42.705],
[9.405, 42.705],
[9.406, 42.703],
[9.403, 42.699],
[9.4, 42.699],
[9.4, 42.695],
[9.398, 42.693],
[9.398, 42.69],
[9.396, 42.689],
[9.396, 42.685],
[9.393, 42.683],
[9.39, 42.676],
[9.393, 42.675]
]
]
},
"properties": {
"NOM_COM_M": "BASTIA",
"INSEE_COM": "2B033",
"INSEE_DEP": "2B"
}
}
]
}
Loading

0 comments on commit f6374e3

Please sign in to comment.