GithubHelp home page GithubHelp logo

rads-io / nfwf-tile-creater Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nemac/nfwf-tile-creater

0.0 1.0 0.0 40 KB

Docker Compose for creating Mapserver TMS caches to disk

License: MIT License

Python 67.04% Shell 32.96%

nfwf-tile-creater's Introduction

NFWF-tile-creater

creates nfwf tms tiles from a docker map server

use docker compose to start a mapserver server and mapcache seeder.

build docker images

docker build -t mapserver-image -f DockerfileMapserver .

docker build -t mapcache-image -f DockerfileMapcache .

turn on docker machines

starts two docker machine one is mapserver other is mapcache docker-compose up

place map file and associated Spatial files (shapefiles, rasters, etc) in the map directory

update mapcache.xml

run the seed for the levels you care about

example: mapcache_seed -c /var/www/html/mapcache/mapcache.xml -t HUbsIndexTiles -z 1,10 -n 4 -d /usa_coastal_3857.shp

all caches are created in the cache folder with folder name = -t option in example HUbsIndexTiles get it from mapcache.xml or update the mapcache.xml file. This will need to be recopied from the docker container docker exec -it mapcache-compose bash

the -d option will limit where tiles are created you will have to update the DockerfileMapcache#L74-L77 file

run python script to remove tiles that entirely transparent "blank".

this will cause some file missing errors in the browser but it will greatly reduce the size of cache for some layers... ./deletetransparenttiles.py cache/the tileset name/

copy the folder to s3, make it public and you have TMS tile server on s3

#making download zips build the docker image docker build -t gdal-python -f DockerfileGDALPython .

run docker and open bash docker run -it -v /tiledata/cache:/cache gdal-python bash

run the zip creator script. this may require some edits to output to the different directory ./zipcreator.py

copy to aws dataset_bucket aws s3 sync zips/ s3://nfwf-tool/nfwf_download_data --acl public-read --delete

nfwf-tile-creater's People

Contributors

daveism avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.