You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you just want the binary, the final arg to the install py is a directory to download into
28
+
29
+
Or do it manually by going to the releases page and download the diglet artifact https://github.com/buckhx/diglet/releases/latest
30
+
31
+
Currently only building 64 bit linux for simplicity, but will build for more archs as things stabilize.
32
+
Instructions for [building](#building)
9
33
10
34
# wms
11
35
12
36
A real-time tile server in a single binary
13
37
14
38
Here are some neat things that diglet wms does
15
39
16
-
* Backend changes are pushed to the front end in real time
17
-
* Currently changes are registered from the kernel (inotify/kqueue/ReadDirectoryChangesW)
18
-
* Sniffs the tile format
19
-
* (pbf, json, gz, jpg, png, etc...)
20
-
* Source specific hooks in the works
21
-
* (on PostGIS insert -> build mbtiles)
40
+
* Read-through mmap LRU cache
41
+
* Easy peasy-lemon squeezy HTTPS
42
+
* Sniffs the tile format and set Content-Type: (pbf, json, gz, jpg, png, etc...)
22
43
* HTTP/JSON-RPC/WS endpoints
23
-
* All packaged up in an itty-bitty binary
44
+
45
+
Some things in the works
46
+
47
+
* Backend changes are pushed to the front end in real time (via websockeys)
48
+
* Source specific hooks (on PostGIS insert -> build mbtiles)
24
49
25
50
## Usage
26
51
@@ -70,9 +95,25 @@ Get information about the specific tileset. This information is populated from t
70
95
Get the tile at the given coordinates and return the contents as the response body.
71
96
Passing json=true as a will return the tile as a json object with it's coordinates
72
97
98
+
###Gallery
99
+
100
+
GET /tileset/gallery/{tileset-slug}
101
+
102
+
A simple gallery to view your tiles with. Only supports vector tiles for now. ?lat={}&lon={}&zoom{} will zoom to desired location.
103
+
73
104
#mbt
74
105
75
-
More info to come, but here's the current help message
106
+
Will build tiles from either geojson or a csv.
107
+
108
+
If a csv is used, either --csv-lat/--csv-lon or --csv shape must be set to read the coordinates correctly.
109
+
The csv-shape is a list of list of [[],[],[]] and will only render a single, exterior ring polygon per line.
110
+
Csv also requires a named header.
111
+
112
+
Geojson is fair-game, no support for GeometryCollection or Topojson
113
+
114
+
--filter if included will only include these columns in this properties. Includes all if not added
115
+
116
+
Valid extentsions for mbtiles are .mbtiles or .mbt
76
117
77
118
```
78
119
NAME:
@@ -92,15 +133,20 @@ OPTIONS:
92
133
--layer-name "features" Name of the layer for the features to be added to
93
134
--desc, --description "Generated from Diglet" Value inserted into the description entry of the mbtiles
94
135
--extent "4096" Extent of tiles to be built. Default is 4096
95
-
--max, --max-zoom "10" Maximum zoom level to build tiles for. Not Implemented.
96
-
--min, --min-zoom "5" Minimum zoom level to build tiles from. Not Implemented.
97
-
--filter Only include fields keys in this comma delimited list. EXAMPLE --filter name,date,case_number,id NOTE all fields are lowercased and non-word chars replaced with '_'
98
-
--csv-lat "latitude"
99
-
--csv-lon "longitude"
100
-
--csv-geometry "geometry" Column containing geometry in geojson-like 'coordinates' form
136
+
--max, --max-zoom "10" Maximum zoom level to build tiles for
137
+
--min, --min-zoom "5" Minimum zoom level to build tiles from
138
+
--filter Only include fields keys in this comma delimited list
139
+
--csv-lat Column containing latitude
140
+
--csv-lon Column containint longitude
141
+
--csv-shape Column containing geometry in geojson-like 'coordinates' form
101
142
--csv-delimiter ","
102
143
```
103
144
145
+
#fence & dig
146
+
147
+
I did a geofencing experiment and may or may not include that in the standard build.
148
+
Also did some geocoding work from OSM. Hit's ~500 r/s, but unstable so won't be included for now.
149
+
104
150
## Releases
105
151
106
152
Diglet uses a go library for reading mbtiles that depends on some C code, this makes
@@ -114,6 +160,25 @@ We'll include a script and or directions for building on your own.
114
160
115
161
#### Major releases will have platform specific binaries
116
162
163
+
## Building
164
+
165
+
Here are the basics, but you can inspect the .travis.yml for specifics
0 commit comments