Mod_tile 404 error
์ค์ํ mapnik ์ด ์์ผ๋ฉด http://localhost/0/0/0.png ๋ก ์ ์ ์ 404๊ฐ ๋ธ
๐ 1๏ธโฃ ์์ธ ๋ถ์
mod_tile
์ Mapnik์ ์ฌ์ฉํ์ฌ OpenStreetMap ๋ฐ์ดํฐ๋ฅผ ๋ ๋๋งํ๋๋ฐ, ํ์ฌ ์ปจํ ์ด๋์๋ Python์ฉ Mapnik ๋ฐ์ธ๋ฉ(python3-mapnik
)์ด ์ค์น๋์ง ์์ ์ํ.pip install mapnik
์ ์คํํ๋ ค๊ณ ํ์ง๋ง, Python์์ ์ง์ ์ค์นํ ์ ์๋ ํจํค์ง๊ฐ ์๋๋ผapt
๋ฅผ ์ฌ์ฉํด์ผ ํจ.mapnik
์ด ์์ผ๋ฉด ํ์ผ์ ์์ฑํ ์ ์์ด์ 404 ์ค๋ฅ๊ฐ ๊ณ์ ๋ฐ์ํ ๊ฐ๋ฅ์ฑ์ด ๋์.
โ
2๏ธโฃ ํด๊ฒฐ ๋ฐฉ๋ฒ
โ๏ธ ๋ฐฉ๋ฒ 1: mod_tile
์ปจํ
์ด๋ ๋ด๋ถ์์ python3-mapnik
์ค์น (์์ ํด๊ฒฐ)
mod_tile
์ปจํ
์ด๋ ๋ด๋ถ์์ python3-mapnik
์ค์น (์์ ํด๊ฒฐ)์ปจํ
์ด๋ ๋ด๋ถ์์ ์๋์ผ๋ก python3-mapnik
์ ์ค์นํด์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์์ด.
1๏ธโฃ mod_tile
์ปจํ
์ด๋ ๋ด๋ถ๋ก ์ ์
docker exec -it mod_tile bash
2๏ธโฃ Mapnik ๋ฐ Python3 ์ง์ ํจํค์ง ์ค์น
apt update
apt install -y python3-mapnik mapnik-utils
3๏ธโฃ Python์์ ๋ค์ ํ์ธ
python3
pimport mapnik
print(mapnik.__version__)
โ ์ ์์ ์ผ๋ก ์คํ๋๋ฉด Mapnik์ด ์ ๋๋ก ์ค์น๋ ๊ฒ.
๐ ์ด์ ๋ค์ ํ์ผ์ ์์ฒญํด๋ณด๊ณ 404 ์ค๋ฅ๊ฐ ํด๊ฒฐ๋๋์ง ํ์ธ!
http://localhost/osm/0/0/0.png
Last updated
Was this helpful?