All Capitals on Earth: Beautiful & Instructive!

General discussion about Celestia that doesn't fit into other forums.
Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

All Capitals on Earth: Beautiful & Instructive!

Post #1by t00fri » 07.12.2003, 23:16

Hi all,

over the weekend, I found some time to assemble a neat locations file
that contains all capitals on earth, 232 in total! It was
quite a bit of fiddling with Perl and various data files (containing
also plenty of typos). The main tool was, of course, as usual:
Perl;-).

I have sent the first version of the locations for further testing to
Grant and the other developers...


Here are a few images, to give you a flavor.
Throughout, I used a 32k Nightlights VT texture, in order to
control the positions of the capitals and also for enjoying, of course.

1600x1200 full sized images after clicking on the "thumb's"...

My favoured images are numbers 1) & 4); go have a click:lol:

Bye Fridger

1) A caribean 'Pe(a)rl' chain of capitals!
Image

2) A nice view of some arabic capitals
Image

3) Even the tiny capital of Bhutan (Thimphu) 7000 ft high in the Himalaya is dimly visible!
Image

4) Europe at night!
Image
Last edited by t00fri on 08.12.2003, 01:59, edited 1 time in total.

DBrady
Posts: 66
Joined: 14.07.2003
With us: 21 years 4 months
Location: Sydney

Post #2by DBrady » 08.12.2003, 00:22

No belfast, cardiff or Edinburgh?
Are Saint Peters Port, Saint Helier and Douglas capitols? I've never heard them referred to as capitals before.
Slan

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #3by granthutchison » 08.12.2003, 00:50

DBrady wrote:No belfast, cardiff or Edinburgh?
Are Saint Peters Port, Saint Helier and Douglas capitols? I've never heard them referred to as capitals before.
Since Scotland, Wales and Northern Ireland are all still integral parts of the UK, despite the devolution of some powers to regional assemblies, they're not usually included in officially maintained capital lists, like this one by the UN - it would be like including all the state capitals for the USA.
Jersey, Guernsey and the Isle of Man are British Crown Dependencies with their own administrations, and the London government can intrude only in matters of defence and international relations - so their capitals generally do appear in official lists.

Grant
Last edited by granthutchison on 08.12.2003, 08:59, edited 1 time in total.

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #4by JackHiggins » 08.12.2003, 01:49

And you didn't include the People's Republic?!!! :lol:

Any idea when we'll be able to d/l it? Actually- if you don't mind, would you email me a copy? Thanks! :)
- Jack Higgins
Jack's Celestia Add-ons
And visit my Celestia Gallery too!

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #5by t00fri » 08.12.2003, 02:01

JackHiggins wrote:And you didn't include the People's Republic?!!! :lol:

Any idea when we'll be able to d/l it? Actually- if you don't mind, would you email me a copy? Thanks! :)


Sure, I'll send you the file tomorrow. It's being intensively tested by Grant and myself. So further help is always welcome!

Bye Fridger

mk
Posts: 19
Joined: 28.11.2003
With us: 20 years 11 months
Location: Warsaw, Poland

Post #6by mk » 08.12.2003, 12:14

Prague (Czech Republic) is missing...
mk

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #7by t00fri » 08.12.2003, 13:38

mk wrote:Prague (Czech Republic) is missing...


That was one of the various typos in the CIA Factbook sources, it is long corrected...;-)

Grant --who spotted the Prague misplacement first-- will remember, where Prague was actually "mislocated";-). Reykjavik/Island first appeared near California, for example...Frequent typos were E<->W and/or N<->S in the long-lat coordinates.

In general, the accuracy is quite impressive, and we are really approaching "completeness" after quite a few iterations with Grant!

Bye Fridger

ElPelado
Posts: 862
Joined: 07.04.2003
With us: 21 years 7 months
Location: Born in Argentina
Contact:

Post #8by ElPelado » 08.12.2003, 16:48

I didn't know that Israel has two capitals... as far as I know(and I really know) Israel's capital is Jerusalem.
The only country with two capitals that I know about is Bolivia...
---------X---------
EL XENTENARIO
1905-2005

My page:
http://www.urielpelado.com.ar
My Gallery:
http://www.celestiaproject.net/gallery/view_al ... y-Universe

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #9by granthutchison » 08.12.2003, 17:11

ElPelado wrote:I didn't know that Israel has two capitals... as far as I know(and I really know) Israel's capital is Jerusalem.
This is a tricky one - while Israel gives its capital as Jerusalem, this is not recognized by the UN (because of the divided nature of the city). Therefore, most countries with embassies maintain them in Tel Aviv, and Israel is therefore obliged to keep its international administrative activity in that city, too. So Israel effectively has two capitals, one of its own devising and one that has been forced upon it.
ElPelado wrote:The only country with two capitals that I know about is Bolivia...
There are several other countries with multiple capitals. Most notably South Africa, with three ...

Grant

DBrady
Posts: 66
Joined: 14.07.2003
With us: 21 years 4 months
Location: Sydney

Post #10by DBrady » 08.12.2003, 19:09

Since Scotland, Wales and Northern Ireland are all still integral parts of the UK, despite the devolution of some powers to regional assemblies, they're not usually included in officially maintained capital lists, like this one by the UN - it would be like including all the state capitals for the USA.
Jersey, Guernsey and the Isle of Man are British Crown Dependencies with their own administrations, and the London government can intrude only in matters of defence and international relations - so their capitals generally do appear in official lists.


Thanks for clearing that up Grant. I wasnt sure if Belfast etc.. were official capitals but i had no idea about jersey, Guernsey and the Isle of man capitals. Thats some great pub trivia - cheers.
Slan

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #11by don » 08.12.2003, 19:47

t00fri wrote:So further help is always welcome!

Especially from folks (unlike me) who have good geographical knowledge and can verify positioning.

Thank you Fridger, for your intense effort this past weekend to generate this file! :D

It might also be mentioned that the final file will probably contain either Size or Importance data that will reduce any text overlap you may see now.

Cheers,

-Don G.

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #12by t00fri » 08.12.2003, 19:57

don wrote:
t00fri wrote:So further help is always welcome!
Especially from folks (unlike me) who have good geographical knowledge and can verify positioning.

Thank you Fridger, for your intense effort this past weekend to generate this file! :D

It might also be mentioned that the final file will probably contain either Size or Importance data that will reduce any text overlap you may see now.

Cheers,

-Don G.


Don,

thanks for your encouragement. I must confess, the more I work with the capital list the more I like it.

It is

-- a small file
-- most informative (few people would know all 240 capitals by heart;-)
-- not too dense

At least my knowledge about the world's capitals has already significantly increased during the last few days;-)

Bye Fridger

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #13by t00fri » 09.12.2003, 00:11

Hi all,

after quite a few debugging rounds thanks to Grant's well familiar scrutiny, my earth-all-capitals file is now already in a fairly "solid" stage. You can best enjoy it with really hires Nightlight tiles (32k!). Perhaps some of you might have fun playing with it, give further comments or find additional hidden bugs.

I have therefore uploaded it to my TextureFoundry site:

http://www.shatters.net/~t00fri/earth-CIA.ssc.zip

The file is not long and meanwhile comprises (all) 240 capitals of the world (including most exotic ones;-)). Please let me know your opinions about the need to incorporate 'variable importance weights' in order to avoid overlaps of labels. For the time being, all importance weights are equal and = 1000. This means that all labels vanish/appear at a distance of about 90000 km from earth with default FOV.

In principle the incorporation of 'variable importance weights' is straightforward and would induce a 'hierarchy' as to the appearance of the labels. But I think that every user should also not be deprived of the opportunity to display all capitals, independent of the size of the earth texture used. Enjoying the complete display of the world's capitals is just a basic aspect and most informative at that!

Bye Fridger

ElPelado
Posts: 862
Joined: 07.04.2003
With us: 21 years 7 months
Location: Born in Argentina
Contact:

Post #14by ElPelado » 09.12.2003, 15:15

granthutchison wrote:
ElPelado wrote:I didn't know that Israel has two capitals... as far as I know(and I really know) Israel's capital is Jerusalem.
This is a tricky one - while Israel gives its capital as Jerusalem, this is not recognized by the UN (because of the divided nature of the city). Therefore, most countries with embassies maintain them in Tel Aviv, and Israel is therefore obliged to keep its international administrative activity in that city, too. So Israel effectively has two capitals, one of its own devising and one that has been forced upon it.
ElPelado wrote:The only country with two capitals that I know about is Bolivia...
There are several other countries with multiple capitals. Most notably South Africa, with three ...

Grant



Are you sure that Israel keeps "its international administrative activity in" Tel-Aviv. Where did you get that info?(I am really asking you, I want to know...)
---------X---------

EL XENTENARIO

1905-2005



My page:

http://www.urielpelado.com.ar

My Gallery:

http://www.celestiaproject.net/gallery/view_al ... y-Universe

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #15by granthutchison » 09.12.2003, 17:35

ElPelado wrote:Are you sure that Israel keeps "its international administrative activity in" Tel-Aviv. Where did you get that info?(I am really asking you, I want to know...)
El Pelado, if you do a web search you will find a wide range of different portrayals of day-to-day diplomatic life in Israel - ranging from one extreme in which the entire foreign diplomatic community drives to Jerusalem every day, to the other in which Israel maintains most of its civil service in Tel Aviv. Both these extremes appear frequently on websites with clear political agendas.
But I find that in life, and especially in diplomacy, the extensive middle ground usually encompasses the truth, and that's what I was trying to convey in my last post - a necessary gathering of specialist Israeli civil servants in Tel Aviv to service the embassy community, while contact with political leaders takes place in Jerusalem.
:) And if you'll forgive me, I think that any further discussion on this theme can only involve political judgements on the accuracy or otherwise of individual sources, and I have no wish to get involved in such a discussion. :)

Grant

Hugo Rune
Posts: 5
Joined: 04.12.2003
With us: 20 years 11 months
Location: London, UK

...

Post #16by Hugo Rune » 10.12.2003, 23:57

To get totally off topic here, I would just like to say that I think that t00fri has done a very good job, regardless of omissions and/or errors.

Keep working on it fella!

Greg

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: ...

Post #17by t00fri » 11.12.2003, 00:32

Hugo Rune wrote:To get totally off topic here, I would just like to say that I think that t00fri has done a very good job, regardless of omissions and/or errors.

Keep working on it fella!

Greg


Thanks Greg,

I have just submitted an improved earth-CIA.ssc file into the 'developer channel' for further testing. For the first time, it includes 'varying importance weights' as calculated from another list of inhabitants for the world's capitals by means of Perl (of course;-)

I want 'Importance' to scale essentially like a [length] i.e. a 'Size' parameter in the locations file.

Assuming crudely that the population density in capitals is roughly constant, i.e.

Code: Select all

     inhabitants/length^2 = density ~ constant

     sqrt( inhabitants/density) ~ [length].

Hence I took the formula:

    Importance = sqrt(inhabitants)/3.,


which indeed gives a neat scaling law with smaller capitals, popping up just in the right instance without overlapping!

At 69000 km distance from earth (with default FoV) just a few labels of 'monster capitals' remain visible!

Image


Bye Fridger

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #18by t00fri » 11.12.2003, 01:06

And here is another amazing perspective with locations for cities and towns on earth:

Today I have found a (reliable) file in the net, containing 50000 cities & towns along with quite precise long-lat coordinates and number of inhabitants!

There is only one problem preventing an immediate exploitation via Perl into a super locations file:

The lack of truly international font support in Celestia. What is needed is support of unicode encoding, of course...

Bye Fridger

Darkmiss
Posts: 1059
Joined: 20.08.2002
With us: 22 years 3 months
Location: London, England

Post #19by Darkmiss » 12.12.2003, 01:12

Thank you Fridger, this is a very nice file

I did have a go at doing just the capitals myself
But it wasnt anywhere this complete or accurate.

So thanks once again.
CPU- Intel Pentium Core 2 Quad ,2.40GHz
RAM- 2Gb 1066MHz DDR2
Motherboard- Gigabyte P35 DQ6
Video Card- Nvidia GeForce 8800 GTS + 640Mb
Hard Drives- 2 SATA Raptor 10000rpm 150GB
OS- Windows Vista Home Premium 32


Return to “Celestia Users”