Skip to main content

Simple and Fast Geospatial OGC Features and Tiles API for PostGIS.

Project description

Simple and Fast Geospatial OGC Features and Tiles API for PostGIS.

Test Coverage Package version License


Documentation: https://developmentseed.org/tipg/

Source Code: https://github.com/developmentseed/tipg


tipg, pronounced T[ee]pg, is a python package which helps creating lightweight OGC Features and Tiles API with PostGIS Database backend. The API has been designed with respect to OGC Features and OGC Tiles specifications.

Note This project is the result of the merge between tifeatures and timvt.

Install

$ python -m pip install pip -U
$ python -m pip install tipg

# or from source
$ git clone https://github.com/developmentseed/tipg.git
$ cd tipg
$ python -m pip install -e .

OGC Specifications

Specification Status link
OGC Common Part 1: Core https://docs.ogc.org/DRAFTS/19-072.html
OGC Common Part 2: Geospatial Data http://docs.ogc.org/DRAFTS/20-024.html
OGC Features Part 1: Core https://docs.ogc.org/is/17-069r4/17-069r4.html
OGC Features Part 2: CRS by Reference https://docs.ogc.org/is/18-058r1/18-058r1.html
OGC Features Part 3: Filtering / CQL2 https://docs.ogc.org/DRAFTS/19-079r1.html
OGC Tiles Part 1: Core https://docs.ogc.org/is/20-057/20-057.html

Notes:

The project authors choose not to implement the Part 2 of the specification to avoid the introduction of CRS based GeoJSON. This might change in the future.

While the authors tried to follow OGC specifications to the letter, some API endpoints might have more capabilities (e.g geometry column selection).

PostGIS/PostgreSQL

tipg rely a lot of ST_* PostGIS functions. You need to make sure your PostgreSQL database has PostGIS installed.

SELECT name, default_version,installed_version
FROM pg_available_extensions WHERE name LIKE 'postgis%' or name LIKE 'address%';
CREATE EXTENSION postgis;

Configuration

To be able to work, the application will need access to the database. tipg uses starlette's configuration pattern which make use of environment variable and/or .env file to pass variable to the application.

Example of .env file can be found in .env.example

# you need define the DATABASE_URL directly
DATABASE_URL=postgresql://username:password@0.0.0.0:5432/postgis

More info about configuration options in https://developmentseed.org/tipg/advanced/configuration/

Launch

$ pip install uvicorn

# Set your postgis database instance URL in the environment
$ export DATABASE_URL=postgresql://username:password@0.0.0.0:5432/postgis
$ uvicorn tipg.main:app

# or using Docker

$ docker-compose up app

Contribution & Development

See CONTRIBUTING.md

License

See LICENSE

Authors

Created by Development Seed

Changes

See CHANGES.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tipg-0.4.2.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

tipg-0.4.2-py3-none-any.whl (67.0 kB view details)

Uploaded Python 3

File details

Details for the file tipg-0.4.2.tar.gz.

File metadata

  • Download URL: tipg-0.4.2.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for tipg-0.4.2.tar.gz
Algorithm Hash digest
SHA256 e3f4ac3b365ffbbea2711f117c3f1554ef15619e710a3c339f4e257daf0c3d5a
MD5 40e3215bbea2382cdecadedead7d77cb
BLAKE2b-256 357ec6ca1b6541f58c3f48a2e66418f99c2d93d9b5aad3ef0e8258d41c29381b

See more details on using hashes here.

File details

Details for the file tipg-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: tipg-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 67.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for tipg-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f96e6d7fc27b9a1c5b8fbaa1dec2629a05ac0696d641e1bd24c9f99fd0bc42ed
MD5 ae6932b6e1681dc08ed66d9e15cdda83
BLAKE2b-256 7b3eae55e6b93d7eda2c892a1b23973a7bd7a2fcc3bd2a43cd64cb745ea15afd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page