Documentation and dockerfile cleanups
This commit is contained in:
parent
08e3f00920
commit
6e74be938d
@ -1,6 +1,4 @@
|
|||||||
FROM python:3.6
|
FROM python:3.6
|
||||||
VOLUME /mapping
|
|
||||||
|
|
||||||
LABEL MAINTAINER "Yuri Astrakhan <YuriAstrakhan@gmail.com>"
|
LABEL MAINTAINER "Yuri Astrakhan <YuriAstrakhan@gmail.com>"
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
@ -12,9 +10,3 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
COPY . /usr/src/app/
|
COPY . /usr/src/app/
|
||||||
|
|
||||||
ENTRYPOINT ["python", "server.py"]
|
ENTRYPOINT ["python", "server.py"]
|
||||||
|
|
||||||
# Users can easily override prepared file with their own:
|
|
||||||
#
|
|
||||||
# docker run -it --rm --net=host -v "$PWD:/mapping" openmaptiles/postserve /mapping/myfile.sql
|
|
||||||
#
|
|
||||||
CMD ["/mapping/mvt/maketile_prep.sql"]
|
|
||||||
|
16
README.md
16
README.md
@ -1,2 +1,16 @@
|
|||||||
# postserve
|
# postserve
|
||||||
Use the ST_AsMVT function to render tiles directly in Postgres
|
|
||||||
|
This is an OpenMapTiles map vector tile test server. It requires the prepared SQL statement
|
||||||
|
generated by the `generate-sqltovmt` tools script.
|
||||||
|
|
||||||
|
To run, use this command, replacing `myfile.sql` with the name of the generated file in the current dir.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -it --rm --net=host -v "$PWD:/data" openmaptiles/postserve /data/myfile.sql
|
||||||
|
```
|
||||||
|
|
||||||
|
To see help, use
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -it --rm --net=host -v "$PWD:/data" openmaptiles/postserve --help
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user