Country, Cities Importance Numbering system when scripting

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Bluespace
Posts: 75
Joined: 19.09.2005
With us: 19 years 2 months
Location: Cosmos - MilkyWay- Solar System- Earth- Asia- India- Kerala- Kochi (All Aliens R Invited)

Country, Cities Importance Numbering system when scripting

Post #1by Bluespace » 26.10.2005, 07:03

i was planing to do a ssc file for the city locations, so how this numbering system for the cities, hometowns, etc, is given priority?

like a country capital 100
then what is for the , other cities, districts, towns, famous places etc goes

cpotting
Posts: 164
Joined: 18.03.2004
Age: 63
With us: 20 years 8 months
Location: Victoria, BC Canada

Re: Country, Cities Importance Numbering system when scripti

Post #2by cpotting » 26.10.2005, 17:11

Bluespace wrote:i was planing to do a ssc file for the city locations, so how this numbering system for the cities, hometowns, etc, is given priority?

like a country capital 100
then what is for the , other cities, districts, towns, famous places etc goes


It is related to the size of the object and is used to determine whether or not you are close enough to the object for Celestia to display the label.

Don Edwards explains it nicely here
Clive Pottinger
Victoria, BC Canada

cpotting
Posts: 164
Joined: 18.03.2004
Age: 63
With us: 20 years 8 months
Location: Victoria, BC Canada

Re: Country, Cities Importance Numbering system when scripti

Post #3by cpotting » 26.10.2005, 17:14

cpotting wrote:Don Edwards explains it nicely here


Oops. That was Don Goyette. :oops: sorry!
Clive Pottinger
Victoria, BC Canada

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Re: Country, Cities Importance Numbering system when scripti

Post #4by Malenfant » 26.10.2005, 17:30

Bluespace wrote:i was planing to do a ssc file for the city locations, so how this numbering system for the cities, hometowns, etc, is given priority?

like a country capital 100
then what is for the , other cities, districts, towns, famous places etc goes


You know there's a weighted location file in existence already, right?
http://www.celestiamotherlode.net/catal ... hother.php

Topic author
Bluespace
Posts: 75
Joined: 19.09.2005
With us: 19 years 2 months
Location: Cosmos - MilkyWay- Solar System- Earth- Asia- India- Kerala- Kochi (All Aliens R Invited)

Post #5by Bluespace » 27.10.2005, 06:35

i have that in my disk, but see, i am from Kerala a state of India,i saw they have given more importance to other states in INDIA, see among the 35 divisions (states,UT's) , only KERALA is the 100% litreate state, and nothing beats the cochin city, when i started looking at the locations after loding those , world locations small, and big, files, i got hot tempered, i am not plannig to make such a big file ,

but for the peace of mind, in my computer, i want to give the Kerala, some more importance, :)

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #6by hank » 27.10.2005, 14:14

Bluespace wrote:i have that in my disk, but see, i am from Kerala a state of India,i saw they have given more importance to other states in INDIA, see among the 35 divisions (states,UT's) , only KERALA is the 100% litreate state, and nothing beats the cochin city, when i started looking at the locations after loding those , world locations small, and big, files, i got hot tempered, i am not plannig to make such a big file ,

but for the peace of mind, in my computer, i want to give the Kerala, some more importance, :)

I believe the "importance" in those locations files is based strictly on population. That is the common cartographic convention. But you can easily change them however you wish to suit your personal tastes.

- Hank

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

Post #7by t00fri » 27.10.2005, 14:58

Here I have developed the actual underlying theory
http://www.shatters.net/~t00fri/earth.html

about 2 years ago. This is used for all location labels in the official Celestia distribution that tend to overlap.

if you don't want or are unable to follow the detailed math/statistical steps, just watch out for the brief section "Strategy", where the underlying idea is summarized in simple wording.


Of course one may base the importance on any kind of useful sorting criterium. It's a completely general concept. On Mercury, on Mars or on the Moon the population is ZERO throughout, yet my scheme was applied equally ;-)

Bye Fridger

Topic author
Bluespace
Posts: 75
Joined: 19.09.2005
With us: 19 years 2 months
Location: Cosmos - MilkyWay- Solar System- Earth- Asia- India- Kerala- Kochi (All Aliens R Invited)

Post #8by Bluespace » 28.10.2005, 06:23

oh-la-la
"Occupation: Scientist, Theoretical Physics" that's says it all

Skywise
Posts: 2
Joined: 04.05.2007
With us: 17 years 6 months
Location: Copenhagen, Denmark

Post #9by Skywise » 06.05.2007, 13:23

t00fri wrote:Here I have developed the actual underlying theory
http://www.shatters.net/~t00fri/earth.html

about 2 years ago. This is used for all location labels in the official Celestia distribution that tend to overlap.


Any chance of an updated version making its way into Celestia 1.5.0?
I have some suggestions :)

First, the capital of Burma/Myanmar is no longer Rangoon/Yangon, but Naypyidaw. There might be other new capitals around, but it's the only one I noticed.

Second, I thought - what about assigning altitude to the cities? Some of them, Addis Abbeba for example, are quite a bit above sea level. But maybe it would look odd from some angles....

Third, couldn't the script cia-extract.pl be put in CVS? That way I'd have run it and submitted a patch myself :)

I would have posted this on SourceForge, but there seems to be a problem with the tracker ATM.

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

Post #10by t00fri » 06.05.2007, 15:21

Update info is always welcome. Yes, I will anyway add more PERL scripts of mine to forthcoming Celestia distributions. So this is a good idea.

Altitude info seems exaggerated for the default distro, since the earth texture sizes are so small...

Besides my location file with just the capitals in the default distro, I recommend my kingsize location file with 40000+ locations on Earth.

http://www.celestiaproject.net/forum/viewtopic ... tteer+utf8
That has intl. utf8 syntax of the locations.

The URL for download is at the end of the thread.

Bye Fridger
Image

Skywise
Posts: 2
Joined: 04.05.2007
With us: 17 years 6 months
Location: Copenhagen, Denmark

Post #11by Skywise » 08.05.2007, 16:46

Thanks a bunch! I downloaded it and it's a blast :)


Return to “Scripting”