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)
33
+
14
34
# wms
15
35
16
36
A real-time tile server in a single binary
17
37
18
38
Here are some neat things that diglet wms does
19
39
20
-
* Backend changes are pushed to the front end in real time
21
-
* Currently changes are registered from the kernel (inotify/kqueue/ReadDirectoryChangesW)
22
-
* Sniffs the tile format
23
-
* (pbf, json, gz, jpg, png, etc...)
24
-
* Source specific hooks in the works
25
-
* (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...)
26
43
* HTTP/JSON-RPC/WS endpoints
27
-
* 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)
28
49
29
50
## Usage
30
51
@@ -74,9 +95,25 @@ Get information about the specific tileset. This information is populated from t
74
95
Get the tile at the given coordinates and return the contents as the response body.
75
96
Passing json=true as a will return the tile as a json object with it's coordinates
76
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
+
77
104
#mbt
78
105
79
-
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
80
117
81
118
```
82
119
NAME:
@@ -98,13 +135,18 @@ OPTIONS:
98
135
--extent "4096" Extent of tiles to be built. Default is 4096
99
136
--max, --max-zoom "10" Maximum zoom level to build tiles for
100
137
--min, --min-zoom "5" Minimum zoom level to build tiles from
101
-
--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 '_'
138
+
--filter Only include fields keys in this comma delimited list
102
139
--csv-lat Column containing latitude
103
140
--csv-lon Column containint longitude
104
141
--csv-shape Column containing geometry in geojson-like 'coordinates' form
105
142
--csv-delimiter ","
106
143
```
107
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
+
108
150
## Releases
109
151
110
152
Diglet uses a go library for reading mbtiles that depends on some C code, this makes
@@ -118,6 +160,25 @@ We'll include a script and or directions for building on your own.
118
160
119
161
#### Major releases will have platform specific binaries
120
162
163
+
## Building
164
+
165
+
Here are the basics, but you can inspect the .travis.yml for specifics
0 commit comments