How to create own map for Thailand

Removed

Removed

For Thailand, I’ve been creating a SE Asia map (Thailand, Cambodia, Vietnam, Malaysia, Singapore) by running osmosis on the Geofabrik Asia extract. If anyone wants the osmosis parameters I’m happy to send. This extract has complete borders so no flooding.

@RocketMan: DuiNui offers a daily extract of Thailand. See his post in the Thailand forum: http://forum.openstreetmap.org/viewtopic.php?id=13851. His zipped extract is some 37 MB.
Also I created a map of Thailand for Garmin devices, but I haven’t updated since some time (see http://forum.openstreetmap.org/viewtopic.php?id=15541 ).
You could also ask GeoFabrik ( http://www.geofabrik.de/ ) to create a daily extract of the regions you are interested in.

That’s what DuiNui said he would do, but the file I just downloaded is from September last year.

No need to write a program for that, some scripting or manual typework is sufficient.

Download the latest planet dump.
Update with latest data by applying change sets using Osmosis
Extract Thailand from the planet using Osmosis and its bbox functions
Pull the updated planet through Splitter to create tiles
Compile the tiles into a Garmin map using Mkgmap.

See OSM wiki for detailed usage of Osmosis, Splitter and Mkgmap.

I’m a contributor not a user of the OSM map. Unfortunately the Mapnik raster and Garmin vector maps provided by others only render some of the stuff I’m mapping. Thus I started to create maps with Maperitive and Mkgmap to check my mapping and see the progress.

As I’m mainly interested in the province Khon Kaen where I live the amount of data is small. It’s possible to download this area with JOSM. The amount of data is far below the limit to get blocked. Sometimes I’m interested in the Northeast of Thailand which can be downloaded in 2 junks without getting blocked and merged with JOSM. I do whole Thailand only occasionally. It keeps me busy a whole day. The size of the resulting OSM file was about 100 MB two years ago but is now more than 500 MB.

Removed

Removed

Removed

Removed

That’s a shame - I would have thought it would be a pretty popular area

Removed

The coastline does not work correctly with mkgmap. In the mkgmap mailing list, the “precompiled sea” is an important topic since several weaks (or already months?). Consequently I decided not to generate sea, but to use a thick coastline instead.

bin\osmosis -v --rb .\asia.osm.pbf --bb left=89.93408 bottom=0.28564 right=105.71045 top=20.73557  --wb malaysiaThailandSingapore.pbf

Removed

Aye sorry guys, I just ran out of spare time to maintain the update every day.

I’ve just run through the process of downloading Asia from geofabrik and Osmosis’ing it to produce a map of just Thailand.
Then downloading the dailies and updating it.
Wow what a pita that is (the update stage anyway)

This process seems to be getting harder as time goes on, when really it should be getting easier :frowning:
In the “good old days” when I could WGET the whole of TL in one go from the API, it used to take me about 15 minutes to produce a map of Thailand, including download times.
More like 6 hours now.
Really surprised that Geofabrik offer Vietnam but not TL as a separate download.

My internet in Chiang Mai is not too bad, ~3mbits so I think I’ll stick to downloading the Asia file once a week, extracting Thailand and using that.

Just some thoughts about it:

Maybe ask for a TL-extract.

Download asia.osm.pbf once and then update your local extract each day or each week. This decrease traffic enormously.

TL Extract has been asked for, but they basically said no.
Weekly update would be the best solution, but afaik minute, hour and day are the only change files I can find:
Here
http://planet.openstreetmap.org/redaction-period/

Shame the API limits the BB now, leaving many people with the only option to DL the whole planet.
I would think that would cause an increase in traffic, traffic being my assumption as to the reason of the API BB limit.

It’s still an awesome project and one I’m very happy to have been involved with for some time.
Does seem like we have taken some backward steps recently though…

you can get huge areas from overpass.

Fetching data from a read-only mirror is a lot better than slowing down the editing API.

http://wiki.openstreetmap.org/wiki/Overpass_API

For the extract as PBF, what area is required? Only Thailand? How often does it need to be updated?

If it won’t eat up too many resources I can host it on my server…

Stephan