timo

command module
v0.0.0-...-7cb6622 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

timo

A timvt(less) version implement in go

Why

Make a minimal mvt tile server (function) which can tile a single table (layer) in postgis.

Less

Reference

More

  • Add row filter, enable select special rows in a table to tile

DEMO

[https://yuhangch.github.io/timo/]

Use

Install timo with go get or clone repo to then go build

$ go get github.com/yuhangch/timo

Create a config file named ~/.timo.yaml like .timo.yaml.example

$ echo "URL: postgresql://postgres:passwd@127.0.0.1/timo" >> ~/.timo.yaml

Run Timo

$ timo serve 
$ timo serve --config=./.timo.yaml # select a config file

Endpoint

http://host:port/tiles/{table_name}/{z}/{x}/{y}.pbf
http://host:port/tilejson/{table_name}.json
Parameters
  • columns
http://host:port/tiles/{table_name}/{z}/{x}/{y}.pbf?column=fid,name
  • filters
http://host:port/tiles/{table_name}/{z}/{x}/{y}.pbf?filter=fid=3

Documentation

Overview

Copyright © 2020 Yuhang

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
Package mercantile from https://github.com/mapbox/mercantile
Package mercantile from https://github.com/mapbox/mercantile

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL