All Projects → t-rex-tileserver → T Rex

t-rex-tileserver / T Rex

Licence: mit
t-rex is a vector tile server specialized on publishing MVT tiles from your own data

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to T Rex

Qgis2web
A QGIS plugin to export a map to an OpenLayers, Leaflet, or Mapbox GL JS webmap
Stars: ✭ 349 (-5.93%)
Mutual labels:  openlayers, mapbox-gl-js
Tegola
Tegola is a Mapbox Vector Tile server written in Go
Stars: ✭ 754 (+103.23%)
Mutual labels:  vector-tiles, openlayers
Iclient Javascript
Modern GIS Web Client for JavaScript, based on Leaflet\OpenLayers\MapboxGL-JS\Classic(iClient8C), enhanced with ECharts\D3\MapV etc. Contributed by SuperMap & community.
Stars: ✭ 593 (+59.84%)
Mutual labels:  openlayers, mapbox-gl-js
Mapbox Gl Js
Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
Stars: ✭ 8,017 (+2060.92%)
Mutual labels:  vector-tiles, mapbox-gl-js
grava
Mapbox Vector Tile Server - Go
Stars: ✭ 74 (-80.05%)
Mutual labels:  vector-tiles, mapbox-gl-js
HMap
:earth: HMap | 基于openlayers的封装组件
Stars: ✭ 64 (-82.75%)
Mutual labels:  vector-tiles, openlayers
Martin
Blazing fast and lightweight PostGIS vector tiles server
Stars: ✭ 540 (+45.55%)
Mutual labels:  vector-tiles, mapbox-gl-js
Editor
An open source visual editor for the 'Mapbox Style Specification'
Stars: ✭ 1,167 (+214.56%)
Mutual labels:  vector-tiles, mapbox-gl-js
Tileserver Gl
Vector and raster maps with GL styles. Server side rendering by Mapbox GL Native. Map tile server for Mapbox GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
Stars: ✭ 1,210 (+226.15%)
Mutual labels:  vector-tiles, mapbox-gl-js
all-transit
Interactive visualization of all transit in the Transitland database
Stars: ✭ 22 (-94.07%)
Mutual labels:  vector-tiles, mapbox-gl-js
web-maps-wcag-evaluation
Manual accessibility evaluation of popular web map tools.
Stars: ✭ 28 (-92.45%)
Mutual labels:  mapbox-gl-js, openlayers
Bitraft
🎉A Bitcask Distributed Key/Value store using Raft for consensus with a Redis compatible API written in Go.
Stars: ✭ 348 (-6.2%)
Mutual labels:  database
Node Express Passport Mysql
Login Express + Passport + MySQL
Stars: ✭ 349 (-5.93%)
Mutual labels:  database
Bigchaindb
Meet BigchainDB. The blockchain database.
Stars: ✭ 3,768 (+915.63%)
Mutual labels:  database
Opencrud
OpenCRUD is a GraphQL CRUD API specification for databases
Stars: ✭ 350 (-5.66%)
Mutual labels:  database
Rxjava2 Jdbc
RxJava2 integration with JDBC including Non-blocking Connection Pools
Stars: ✭ 360 (-2.96%)
Mutual labels:  database
Django Smuggler
Django Smuggler is a pluggable application for Django Web Framework that helps you to import/export fixtures via the automatically-generated administration interface.
Stars: ✭ 350 (-5.66%)
Mutual labels:  database
Roomigrant
Automated Android Room ORM migrations generator with compile-time code generation
Stars: ✭ 349 (-5.93%)
Mutual labels:  database
Kache
A simple in memory cache written using go
Stars: ✭ 349 (-5.93%)
Mutual labels:  database
Cs Wiki
🎉 致力打造完善的 Java 后端知识体系,不仅仅帮助各位小伙伴快速且系统的准备面试,更指引学习的方向
Stars: ✭ 369 (-0.54%)
Mutual labels:  database

t-rex

CI build status Appveyor build status Language (Rust) Discord Chat Docker Pulls

t-rex is a vector tile server specialized on publishing MVT tiles from your own data.

Features

  • Support for PostGIS databases and GDAL vector formats
  • Auto-detection of layers in data source
  • Built-in viewers for data display and inspection
  • Tile generation command with simple parallelization
  • Automatic reprojection to grid CRS
  • Support for custom tile grids

Presentations

  • T-rex, a vector tile server for your own data (FOSS4G 2017): slides
  • Vector Tiles - Introduction & Usage with QGIS (User meeting Bern 21.6.17): slides
  • Von WMS zu WMTS zu Vektor-Tiles (FOSSGIS 2017): Video
  • Workshop "Vector Tiles" (GEOSummit Bern 7.6.16): slides

Examples

Usage

Quick tour

t_rex serve --dbconn postgresql://user:[email protected]/osm2vectortiles

Tiles are then served at http://localhost:6767/{layer}/{z}/{x}/{y}.pbf

A list of all detected layers is available at http://localhost:6767/

Use a tile cache:

t_rex serve --dbconn postgresql://user:[email protected]/osm2vectortiles --cache /tmp/mvtcache

Generate a configuration template:

t_rex genconfig --dbconn postgresql://user:[email protected]/osm2vectortiles | tee osm2vectortiles.toml

Run server with configuration file:

t_rex serve --config osm2vectortiles.toml

Generate tiles for cache:

t_rex generate --config osm2vectortiles.toml

Increase log level:

t_rex serve --loglevel debug --dbconn postgresql://user:[email protected]/osm2vectortiles

For developers

t-rex is written in Rust. Minimal required rustc version is 1.45.

Build:

cargo build

Run tests:

cargo test --all

Run server with DB connection:

cargo run -- serve --dbconn postgresql://t_rex:[email protected]:5439/t_rex_tests

Decode a vector tile:

curl --silent http://127.0.0.1:6767/ne_10m_populated_places/5/31/17.pbf | protoc --decode=vector_tile.Tile t-rex-core/src/mvt/vector_tile.proto

Database tests

Unit tests which need a PostgreSQL connection are ignored by default.

Start Test DB:

docker run -p 127.0.0.1:5439:5432 -d --name trextestdb --rm sourcepole/trextestdb

To run the database tests, declare the connection in an environment variable DBCONN:

export DBCONN=postgresql://t_rex:[email protected]:5439/t_rex_tests

Run the tests with

cargo test --all -- --ignored

Creating test database locally:

# Set Postgresql environment variables when needed: PGHOST, PGPORT, PGUSER, PGPASSWORD
cd data
make createdb loaddata

S3 tests

Unit tests which need a S3 connection are skipped by default.

Install MinIO Client.

Start Test S3

docker run -d --rm -p 9000:9000 -e MINIO_REGION_NAME=my-region -e MINIO_ACCESS_KEY=miniostorage -e MINIO_SECRET_KEY=miniostorage minio/minio server /data && sleep 5 && mc config host add local-docker http://localhost:9000 miniostorage miniostorage && mc mb local-docker/trex && mc policy set download local-docker/trex 

To run the S3 tests, declare that there is a S3 available in an environment vaiable S3TEST:

export S3TEST=true

Run the tests with

cargo test --all -- --ignored

License

t-rex is released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].