Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

Oslandia/building-server

Repository files navigation

This is a prototype for a simple web server that retrieves polyhedral surfacesfrom a POSTGIS database and sends them back in a glTF or GeoJSON file.

It relies on a Bounding Volume Hierarchy (BVH) to transmit progressively thegeometric data. A script for building the BVH is provided in this repository.

Installation

From sources

To use building-server from sources:

$ apt-get install python3-dev$ git clone https://github.com/Oslandia/building-server$ cd building-server$ virtualenv -p /usr/bin/python3 venv$ . venv/bin/activate(venv)$ pip install --upgrade setuptools(venv)$ pip install -e .

If you want to run unit tests:

(venv)$ pip install nose(venv)$ nosetests...

Generating the BVH and the tile association

./building-server-processdb.py conf/building.yml <city>

How to run

building-server has been tested with uWSGI and Nginx.

Once filesbuilding.uwsgi.yml andbuilding.yml are well configurated for yourenvironment, you can run the building-server:

(venv)$ pip install uwsgi(venv)$ uwsgi --yml conf/building.uwsgi.ymlspawned uWSGI worker 1 (pid: 5984, cores: 1)

In case of the next error:

(venv)$ uwsgi --yml conf/building.uwsgi.ymlImportError: No module named site(venv)$ deactivate$ . venv/bin/activate(venv)$ uwsgi --yml conf/building.uwsgi.ymlspawned uWSGI worker 1 (pid: 5984, cores: 1)

Example

http://localhost:9090/?query=getCitieshttp://localhost:9090/?query=getGeometry&city=montreal&tile=1/4/2&format=GeoJSON

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp