Project

General

Profile

Wiki » History » Version 34

Philippe May, 12/11/2018 16:48

1 3 Philippe May
h1. Software
2 1 Philippe May
3 15 Philippe May
Gisaf (for, eg, GIS Auroville Front-end) is a web application that is under development.
4 1 Philippe May
5 27 Philippe May
[[User manual]]
6 2 Philippe May
[[Server]]
7 2 Philippe May
[[Client]]
8 1 Philippe May
[[Stack]]
9 15 Philippe May
[[Mapbox]]
10 3 Philippe May
11 7 Philippe May
h2. Database
12 7 Philippe May
13 7 Philippe May
Gisaf uses a Postgis database.
14 1 Philippe May
15 9 Philippe May
h3. Creation
16 9 Philippe May
17 9 Philippe May
To create an appropriate database, run these commands:
18 9 Philippe May
<pre>
19 9 Philippe May
createuser avgis -P
20 9 Philippe May
createdb avgis -O avgis
21 9 Philippe May
psql avgis -c "CREATE EXTENSION postgis;"
22 9 Philippe May
</pre>
23 9 Philippe May
24 9 Philippe May
h3. Notes
25 9 Philippe May
26 7 Philippe May
The geometry features' metadata MUST be set with the proper SRID, which can be tricky. See below.
27 7 Philippe May
28 3 Philippe May
h3. Import files
29 5 Philippe May
30 16 Philippe May
31 8 Philippe May
h2. Development
32 8 Philippe May
33 8 Philippe May
See the README file
34 22 Philippe May
35 34 Philippe May
h2. Plugins
36 34 Philippe May
37 34 Philippe May
Gisaf can load models in external plugins. See [[plugins]].
38 34 Philippe May
39 22 Philippe May
h2. Configuration
40 22 Philippe May
41 22 Philippe May
TODO: more about parameters of the conf file
42 22 Philippe May
43 22 Philippe May
h3. Map
44 22 Philippe May
45 22 Philippe May
The default view of the map can be configured in the gisaf yaml config, eg:
46 22 Philippe May
47 22 Philippe May
<pre>
48 22 Philippe May
map:
49 22 Philippe May
  openMapTilesKey: cS3lrAfYXoM4MDooT6aS
50 22 Philippe May
  zoom: 14
51 22 Philippe May
  pitch: 45
52 22 Philippe May
  lat: 12.0000
53 22 Philippe May
  lng: 79.8106
54 22 Philippe May
  bearing: 0
55 22 Philippe May
  style: OSM (vector)
56 22 Philippe May
  opacity: 0.3
57 22 Philippe May
  tilesUrl: /tiles/data/india-vector.json
58 22 Philippe May
</pre>
59 22 Philippe May
60 22 Philippe May
h3. Production
61 22 Philippe May
62 22 Philippe May
Gisaf reads the file @/etc/gisaf/prod.yml@ at boot.
63 22 Philippe May
64 22 Philippe May
65 22 Philippe May
h3. Development
66 22 Philippe May
67 22 Philippe May
Gisaf reads the @~/.gisaf/prod.yml@ file at boot.
68 22 Philippe May
69 22 Philippe May
70 22 Philippe May
h2. Third party
71 22 Philippe May
72 22 Philippe May
h3. TileServer
73 22 Philippe May
74 32 Philippe May
Serve the vector tiles for mapbox-gl locally: [[ TileServer ]]
75 33 Philippe May
76 33 Philippe May
Alternative: see #6907