This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-readme-md.sh
executable file
·125 lines (83 loc) · 2.46 KB
/
make-readme-md.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#!/bin/bash
set -e
cat >README.md <<EOF
# UKIS Kafka
This package implements a compact binary wireformat to stream vector features
over Apache Kafka. The package itself uses a high/easy-to-use abstraction level
of the geodata mostly based on the [fiona
library](http://toblerity.org/fiona/index.html).
## Serialization format
The serialization format takes inspirations from the [data model of the fiona
library](http://toblerity.org/fiona/manual.html#data-model), which itself is
based on the GeoJSON specification. This library adds a few modification to
this:
* Geometries are serialized to
[WKB/Well-known-binary](https://en.wikipedia.org/wiki/Well-known_text) for a
more compact representation. The value is stored in the \`wkb\`-field.
* A \`meta\` object is added. This object is used to add meta information to
the features without name-conflicts in the \`property\`-object.
An example for structure for a feature is
\`\`\`
{
'properties': {
'prop_1': 34,
'prop_2': 'this is a string'
}
'wkb': WKB ...,
'meta': {
'some_text': 'some meta information'
}
}
\`\`\`
These structures are serialized using [messagepack](http://msgpack.org/).
## Shell commands
This package provides several shell commands. Each of these has its own help,
which can be invoked by \`[command] --help\`.
Available after installation are:
### ukis_vectorlayer_producer
The help-text for this command:
\`\`\`
EOF
ukis_vectorlayer_producer --help >>README.md
cat >>README.md <<EOF
\`\`\`
### ukis_postgis_consumer
The help-text for this command:
\`\`\`
EOF
ukis_postgis_consumer --help >>README.md
cat >>README.md <<EOF
\`\`\`
A documented example configuration file:
\`\`\`
EOF
ukis_postgis_consumer --example_configuration >>README.md
cat >>README.md <<EOF
\`\`\`
### ukis_dump_consumer
The help-text for this command:
\`\`\`
EOF
ukis_dump_consumer --help >>README.md
cat >>README.md <<EOF
\`\`\`
## Library support
The library offers interfaces to a few python geodata libraries. When a new
interface is needed, please try to implement it in this library for a better
reuseability.
### Fiona
Fiona support is in the \`ukis_streaming.fiona\` module.
See
\`\`\`
from ukis_kafka.wireformat import fiona
help(fiona)
\`\`\`
for the documentation.
### Shapely
There is some support in the \`ukis_streaming.fiona\` module.
### OGR
Support for the native OGR library bindings still needs to be implemented.
# TODO
* SRID support
* OGR support
EOF