The International Simutrans Forum

PakSets and Customization => General Resources and Tools => Maps and Citylists => Topic started by: ZéQuimTó on September 03, 2014, 02:51:46 AM

Title: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: ZéQuimTó on September 03, 2014, 02:51:46 AM
After 10 years of work placing cities one by one, here is the final result.
(joking, I've scripted it out! ;D)

A total of 5k towns/villages placed (I had to make a "blind" pruning to the data...my PC just kept running out of memory when I tried to add the complete list of 15k cities I had on my database..  :'(

Anyway, its a quite decent Portugal's map to play with.

Here is a preview (with villages' names on it :p )
ISN'T IT JUST AWESOME? :D
(http://i.imgur.com/KahNw8X.png)

Several relevant places were wiped out due to the "blind" prunning. If you think that is important to have certain places, please, prune this list so that it includes 5000 places.
https://app.box.com/s/xraws1v7ksenpfyupgym (https://app.box.com/s/xraws1v7ksenpfyupgym)

If you want your country covered, plz provide the following;
  - .txt file with "name", "latitude" and "longitude". (Population would be nice)
  - Png file with the height map
  - The corresponding png's coordinates of 3 latitude/logitude points (use some villages on the edges to get those)
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: ZéQuimTó on September 03, 2014, 02:56:12 AM
Just as a side note. You may prune that list so that it includes less villages... Maybe 5k is just too much..I haven't tried to play with it yet, but maybe that is just too much :p
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: Sarlock on September 03, 2014, 03:12:40 AM
Wow.  That's a lot of cities!  8)
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: ZéQuimTó on September 03, 2014, 04:09:11 PM
Yup. All placed on the correct  name and coordinate! (apart from some coordenate drifting withjn my dataset.
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: Jack Rudd on September 17, 2014, 05:31:14 PM
Oooh, I've got two countries. Which to go for? Trinidad and Tobago will probably be very easy; the United Kingdom of Great Britain and Northern Ireland will be ferociously difficult.
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: ZéQuimTó on September 17, 2014, 05:50:28 PM
What would be difficult? I couldn't understad. Note that this was made using a database.
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: Jack Rudd on September 17, 2014, 06:11:51 PM
Constructing the database of British towns would probably be time-consuming, and the geography of Britain is very weird in terms of peninsulas and other oddities.

(I've tried, before, just putting in Land's End and Duncansby Head as two fixed points, and putting everywhere else in where the linear interpolation method would put it. Some towns ended up falling into the sea.)
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: AltTab on September 21, 2014, 06:43:11 PM
ok, we have the city list. but when I was going to prepare to play with it I found out that I can't find the map itself.

can you upload it?
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: ZéQuimTó on September 23, 2014, 02:46:39 AM
Quote from: Jack Rudd on September 17, 2014, 06:11:51 PM
Constructing the database of British towns would probably be time-consuming, and the geography of Britain is very weird in terms of peninsulas and other oddities.

(I've tried, before, just putting in Land's End and Duncansby Head as two fixed points, and putting everywhere else in where the linear interpolation method would put it. Some towns ended up falling into the sea.)

You can get a pretty decent database here: https://www.maxmind.com/en/worldcities (https://www.maxmind.com/en/worldcities)

Quote from: AltTab on September 21, 2014, 06:43:11 PM
ok, we have the city list. but when I was going to prepare to play with it I found out that I can't find the map itself.

can you upload it?
Sorry for that. I don't know how I could miss the file. Unfortunately I have it on another laptop. Will upload it as soon as I get it.
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: AltTab on September 23, 2014, 04:19:53 PM
Well since ur good with code. Do you know any command lines for win that compares names from 2 lists, and copies to a new file only the lines that are included in both lists?

well I kinda have found this two maps. One with the current lines and another one with all 1985 normal and narrow gauge lines.

http://trainz.comboios.info/hi/mapa2%20200.gif (http://trainz.comboios.info/hi/mapa2%20200.gif)
http://img.gforum.tv/img/7486d75ac9b0b66d98f28621c0e6964299af8278.gif (http://img.gforum.tv/img/7486d75ac9b0b66d98f28621c0e6964299af8278.gif)

So my idea was to only have Districts and possibly Municipalities. I would only have Parishes that were related with train or other iconic public transportation.
Also I would like to ask one thing.
Where did you got that database? I was looking around and found that before the parish aggregation of a few years ago we only counted around 5k. Is it possible that are a few that are just landmarks (6 or 7 houses that proclaim their name without being referenced in the government) or even some duplicates?
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: ZéQuimTó on September 23, 2014, 06:26:27 PM
Quote from: AltTab on September 23, 2014, 04:19:53 PM
Well since ur good with code. Do you know any command lines for win that compares names from 2 lists, and copies to a new file only the lines that are included in both lists?

well I kinda have found this two maps. One with the current lines and another one with all 1985 normal and narrow gauge lines.

http://trainz.comboios.info/hi/mapa2%20200.gif (http://trainz.comboios.info/hi/mapa2%20200.gif)
http://img.gforum.tv/img/7486d75ac9b0b66d98f28621c0e6964299af8278.gif (http://img.gforum.tv/img/7486d75ac9b0b66d98f28621c0e6964299af8278.gif)

So my idea was to only have Districts and possibly Municipalities. I would only have Parishes that were related with train or other iconic public transportation.

Well, particularly for windows, I don't know if it is possible to do that on command line.. I guess you can do that on excel, by copy-pasting the city list to excel, and using a filter.

If i have time I will see if I can help you with that, using regular tools. Otherwise I'll code a simple program to do that for you.

Quote
Where did you got that database? I was looking around and found that before the parish aggregation of a few years ago we only counted around 5k. Is it possible that are a few that are just landmarks (6 or 7 houses that proclaim their name without being referenced in the government) or even some duplicates?
I posted the link in my previous post. It includes cities, towns and small villages.
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: accord2 on February 06, 2016, 05:22:30 PM
Can you please put the map here to us download, I'd love to play in that map :)
Title: Re: Portugal map (3728x6368) with 5000 realistic towns placed.
Post by: Andyh on February 06, 2016, 07:47:24 PM
I know this is an old thread, but I just noticed it.  What is the script that's being referred to here?  I know there's a scenario scripting feature in Simutrans (never tried to use it yet).  Does the city creation script here use that feature or is it some kind of external script?

Wonder if the OP would be good enough to post the script he used, or if someone could give me a few pointers as to how to write this.  I have a couple of Simutrans projects which involve large maps with many cities, and this could be very helpful.