Canalplan Forums

Discussions => Places => Topic started by: Shultzy on Dec 19, 2020, 04:54 PM

Title: Australia
Post by: Shultzy on Dec 19, 2020, 04:54 PM
Nick / Steve, I want to put the Murray River in Australia on to the database, will this cause a problem for you?
Title: Australia
Post by: Stephen Atty on Dec 19, 2020, 08:29 PM
A new country will have to be added to do that. Not sure if Nick's ever coded that functionality in.

We'll also have to generate the open street map data file - which might take some time.
Title: Australia
Post by: Shultzy on Dec 19, 2020, 11:32 PM
I thought it might take a bit of work. I'll leave it up to you to decide whether it's worth it or not.
Title: Australia
Post by: Administrator on Dec 20, 2020, 05:22 PM
Top level areas (currently, Great Britain, the Island of Ireland, North America, Continental Europe) have to be hard wired in - by creating a top-level for them.  Beyond that it *should* be fairly simple to do the rest.  Steve's right though, we'd need mapping data for them as well.

There are several other areas that have significant navigable waterways of course.  Vietnam, China, Bangkok spring instantly to mind.
Title: Australia
Post by: Stephen Atty on Dec 20, 2020, 06:16 PM
Australia is currently generating on the server.

Estimated time is just over 1 day


(https://i.postimg.cc/NKSK6fZc/aus.png) (https://postimg.cc/NKSK6fZc)
Title: Australia
Post by: Administrator on Dec 20, 2020, 07:41 PM
I'm pretty sure that all I need to is insert a single row into the waterways table, then add a configuration block to mapping/config.hdf and that's it.  But, of course, until the maps are there it's not possible to do anything as you can't add places if you don't know where they are.

Let me know when the tiles are generated, and what they are called (I'm guessing just \"australia.mbtiles\") and I'll see what happens.   Then I'll pull them here, check my logic and go live.
Title: Australia
Post by: Shultzy on Dec 20, 2020, 08:30 PM
Thanks. If you want to put an \"Asia\" on as well I'll fill them in.
Title: Australia
Post by: Stephen Atty on Dec 20, 2020, 11:00 PM
In terms of Maps asia covers


(https://i.postimg.cc/FYk32hCs/asia.png) (https://postimg.cc/FYk32hCs)

and is 23GB - which I can download rather than render (but the data will be 3 years old).

Or we can select sub sections of it assuming we don't have routes running over map boundaries.
Title: Australia
Post by: Stephen Atty on Dec 20, 2020, 11:16 PM
Once Australia has built I'll spin it up on my local map server
Title: Australia
Post by: Stephen Atty on Dec 20, 2020, 11:47 PM
OK so processing completed in just over one day. Sydney looks OK


(https://i.postimg.cc/nMGBqdgT/aussie.png) (https://postimg.cc/nMGBqdgT)
Title: Australia
Post by: Administrator on Dec 21, 2020, 08:34 AM
I think Asia is too big, and isn't really connected.  I'll grab Australia and see what I can get working if you can put it somewhere I can download it from.

If you put it in the live tileserver, it won't do any harm until pages start asking for it, and it's ready when I push the changes to the data/config.
Title: Australia
Post by: Stephen Atty on Dec 21, 2020, 10:22 AM
Australia tileset uploaded to server along with a style file, and an Index page for testing (  https://maps.tty.org.uk/index-australia.html )
Title: Australia
Post by: Administrator on Dec 21, 2020, 05:51 PM
Right.  I've added Australia.  

Things will work a bit oddly until it gets enough data to start scaling things properly.  So this is what to do:

Add two \"floating places\", one at each end, and then the river between them as a new waterway.  It may be difficult to get the map to display without the scaling data - you'll find the \"zoom to place\" feature works nicely though.

When you've done that, you should find that the gazetteer for each of these places works fine, but the waterway between them doesn't.  Adding an intermediate place on the waterway should fix that.

Let me know here if anything doesn't work.
Title: Australia
Post by: Shultzy on Dec 21, 2020, 07:20 PM
I've set up the two end places and created the river, all works. The distance entered was 1992km but only shows 1mi 419yds which is 1992m. I've edited the distance table to 1238mi (1992 km) but the waterway still shows 1mi 419yds. When selecting [Murray Mouth] or [Yarrawonga Weir] CP just times out.
Title: Australia
Post by: Administrator on Dec 21, 2020, 08:07 PM
I've fixed the time-out - let me check on the distances

Looks like the rebuild needed fixed that as well!
Title: Australia
Post by: Administrator on Dec 21, 2020, 08:10 PM
One thing I haven't done is configured it for the default display for Aus.  I wonder what it should be?  (and, where do I do it!)
Title: Australia
Post by: Administrator on Dec 21, 2020, 08:17 PM
Answering myself - they are metric and the data is in the waterway_locale table
Title: Australia
Post by: Stephen Atty on Dec 21, 2020, 08:46 PM
Do you need to tweak the What's New data feed?
Title: Australia
Post by: Administrator on Dec 21, 2020, 09:11 PM
To do what? - I'm very reluctant to touch that code until I rewrite it.   It's horrible.

Floating places and new waterways don't appear.  But as new places are added along the way then they'll appear.
Title: Australia
Post by: Administrator on Dec 22, 2020, 10:38 AM
I had some incomplete files permissions, which I've fixed.  I've also documented all of this for the future.  I added an intermediate place to check it was working, and it does seem to be now.
Title: Australia
Post by: Stephen Atty on Dec 25, 2020, 11:37 AM
There are going to be a lot of marker places on that river... going to keep someone busy for months  :) =)