Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting process #8

Open
jas- opened this issue Nov 22, 2021 · 4 comments
Open

Exporting process #8

jas- opened this issue Nov 22, 2021 · 4 comments

Comments

@jas-
Copy link

jas- commented Nov 22, 2021

I have tried both methods listed on the readme:

------------- Export Map Data to MBtiles ------------- 
./export_mbtiles.sh

------------- Alternative: Load with postile ---------------
postile --cors  --tm2 openmaptiles.tm2source/data.yaml --pghost 127.0.0.1 --pguser [username] --pgpassword [password] --listen [ip] --pgdatabase osm --style style/style.json --fonts fonts/

Are these still valid? I think I am missing some information about this piece. Any help is appreciated.

@acalcutt
Copy link
Owner

acalcutt commented Nov 22, 2021

export_mbtiles.sh should work since that is what i usually use. although this step is pretty picky... its usually where you find if tables are missing because the process will error out if there are.

for postile there are a few steps to make a tm2 source. you can see them in wdb-map-gen/postile.sh. i think you also have to give style to use.

@jas-
Copy link
Author

jas- commented Nov 23, 2021

Is there a good source for styles?

@acalcutt
Copy link
Owner

acalcutt commented Nov 23, 2021

I have all the styles I use with tileserver-gl here

https://github.com/acalcutt/wifidb-tileserver-gl/tree/master/tileserver-gl/styles

I think the one I had used with postile was this one, which was the basis for my WDB_OSM style
https://github.com/openmaptiles/osm-bright-gl-style/releases

EDIT: Thinking back I may have used something else, something like this ( https://github.com/Oslandia/postile-openmaptiles ) which has the sources set up for postile

@acalcutt
Copy link
Owner

acalcutt commented Nov 23, 2021

From the older guide on my website, it looks like I used the second link

Serve live from postgresql with postile
1.)Create a TM2 source with the OpenMapTiles yaml/layer files using generate-imposm3
2.)Download the OpenMapTiles style ( https://github.com/openmaptiles/osm-bright-gl-style/releases ) and fonts
3.)Serve with Postile
postile --cors --tm2 openmaptiles.tm2source/data.yaml --pghost 127.0.0.1 --pguser [username] --pgpassword [password] --listen [ip] --pgdatabase osm --style style/style.json --fonts fonts/

From ( https://www.techidiots.net/notes/mapbox-gl-tileserver-gl/create-an-open-map-tiles-map-without-docker )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants