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
-Embedded viewer with auto generated style for quick data visualization and inspection.
14
+
-An embedded viewer with an automatically generated style for quick data visualization and inspection.
15
15
- Support for [PostGIS](provider/postgis) and [GeoPackage](provider/gpkg) data providers. Extensible design to support additional data providers.
16
16
- Support for several cache backends: [file](cache/file), [s3](cache/s3), [redis](cache/redis), [azure blob store](cache/azblob).
17
17
- Cache seeding and invalidation via individual tiles (ZXY), lat / lon bounds and ZXY tile list.
@@ -45,7 +45,7 @@ Use "tegola [command] --help" for more information about a command.
45
45
46
46
## Running tegola as a vector tile server
47
47
1. Download the appropriate binary of tegola for your platform via the [release page](https://github.com/go-spatial/tegola/releases).
48
-
2.Setup your config file and run. Dy default tegola looks for a `config.toml` in the same directory as the binary. You can set a different location for the `config.toml` using a command flag:
48
+
2.Set up your config file and run. By default, Tegola looks for a `config.toml` in the same directory as the binary. You can set a different location for the `config.toml` using a command flag:
49
49
50
50
```
51
51
./tegola serve --config=/path/to/config.toml
@@ -57,7 +57,7 @@ Use "tegola [command] --help" for more information about a command.
57
57
/
58
58
```
59
59
60
-
The server root will display a builtin viewer with an auto generated style. For example:
60
+
The server root will display the built-in viewer with an automatically generated style. For example:
61
61
62
62

63
63
@@ -196,7 +196,7 @@ name = "zoning" # used in the URL to reference this
196
196
197
197
\* more on PostgreSQL SSL mode [here](https://www.postgresql.org/docs/9.2/static/libpq-ssl.html). The `postgis` config also supports "ssl_cert" and "ssl_key" options are required, corresponding semantically with "PGSSLKEY" and "PGSSLCERT". These options do not check for environment variables automatically. See the section [below](#environment-variables) on injecting environment variables into the config.
198
198
199
-
### Example config using Postres 12 / PostGIS 3.0 ST_AsMVT():
199
+
### Example config using Postgres 12 / PostGIS 3.0 ST_AsMVT():
200
200
201
201
```toml
202
202
# register a MVT data provider. MVT data providers have the prefix "mvt_" in their type
The following environment variables can be used for debugging:
255
255
256
-
`TEGOLA_SQL_DEBUG` specify the type of SQL debug information to output. Currently support two values:
256
+
`TEGOLA_SQL_DEBUG` specify the type of SQL debug information to output. Currently, supporting two values:
257
257
258
-
-`LAYER_SQL`: print layer SQL as they are parsed from the config file.
259
-
-`EXECUTE_SQL`: print SQL that is executed for each tile request and the number of items it returns or an error.
258
+
-`LAYER_SQL` will print layer SQL as they are parsed from the config file.
259
+
-`EXECUTE_SQL` will print SQL that is executed for each tile request, and the number of items it returns or an error.
260
260
261
261
#### Usage
262
262
@@ -273,27 +273,27 @@ The following environment variables can be used to control various runtime optio
273
273
274
274
## Client side debugging
275
275
276
-
When debugging client side, it's often helpful to to see an outline of a tile along with it's Z/X/Y values. To encode a debug layer into every tile add the query string variable `debug=true` to the URL template being used to request tiles. For example:
276
+
When debugging client side, it's often helpful to see an outline of a tile along with it's Z/X/Y values. To encode a debug layer into every tile add the query string variable `debug=true` to the URL template being used to request tiles. For example:
The requested tile will be encode a layer with the `name` value set to `debug` and include two features:
282
+
The requested tile will be encoded with a layer that has the `name` value set to `debug` and includes the three following features.
283
283
284
-
-`debug_outline`: a line feature that traces the border of the tile
285
-
-`debug_text`: a point feature in the middle of the tile with the following tags:
286
-
-`zxy`: a string with the `Z`, `X` and `Y` values formatted as: `Z:0, X:0, Y:0`
284
+
-`debug_outline` is a line feature that traces the border of the tile
285
+
-`debug_text` is a point feature in the middle of the tile with the following tags:
286
+
-`zxy` is a string with the `Z`, `X` and `Y` values formatted as: `Z:0, X:0, Y:0`
287
287
288
288
## Building from source
289
289
290
-
Tegola is written in [Go](https://golang.org/) and requires Go 1.16 to compile from source. To build tegola from source, make sure you have Go installed and have cloned the repository. Navigate to the repository then run the following command:
290
+
Tegola is written in [Go](https://golang.org/) and requires Go 1.16 to compile from the source. (We support the two newest versions of Go.) To build tegola from the source, make sure you have Go installed and have cloned the repository. Navigate to the repository then run the following command:
291
291
292
292
```bash
293
293
cd cmd/tegola/ && go build -mod vendor
294
294
```
295
295
296
-
You will now have a binary named `tegola` in the current directory which is [ready for running](#running-tegola).
296
+
You will now have a binary named `tegola` in the current directory which is [ready to run.](#running-tegola-as-a-vector-tile-server).
297
297
298
298
**Build Flags**
299
299
The following build flags can be used to turn off certain features of tegola:
@@ -303,20 +303,20 @@ The following build flags can be used to turn off certain features of tegola:
303
303
-`noRedisCache` - turn off the Redis cache back end.
304
304
-`noPostgisProvider` - turn off the PostGIS data provider.
305
305
-`noGpkgProvider` - turn off the GeoPackage data provider. Note, GeoPackage uses CGO and will be turned off if the environment variable `CGO_ENABLED=0` is set prior to building.
306
-
-`noViewer` - turn off the builtin viewer.
306
+
-`noViewer` - turn off the built-in viewer.
307
307
-`pprof` - enable [Go profiler](https://golang.org/pkg/net/http/pprof/). Start profile server by setting the environment `TEGOLA_HTTP_PPROF_BIND` environment (e.g. `TEGOLA_HTTP_PPROF_BIND=localhost:6060`).
308
308
-`noPrometheusObserver` - turn off support for the Prometheus metric end point.
309
309
310
-
Example of using the build flags to turn of the Redis cache back end, the GeoPackage provider and the builtin viewer.
310
+
Example of using the build flags to turn of the Redis cache back end, the GeoPackage provider and the built-in viewer.
311
311
312
312
```bash
313
313
go build -tags 'noRedisCache noGpkgProvider noViewer'
314
314
```
315
315
316
316
## License
317
317
318
-
See [license](LICENSE.md) file in repo.
318
+
See [license](LICENSE.md) file in the repo.
319
319
320
320
## Looking for a vector tile style editor?
321
321
322
-
Once you have tegola running you're likely going to want to work on your map's cartography. Give [fresco](https://github.com/go-spatial/fresco) a try!
322
+
After Tegola is running you're likely going to want to work on your map's cartography. Give [fresco](https://github.com/go-spatial/fresco) a try!
// InitFunc initialize a provider given a config map. The init function should validate the config map, and report any errors. This is called by the For function.
0 commit comments