Cmod Political borders model?

Post requests, images, descriptions and reports about work in progress here.
Avatar
Hungry4info
Posts: 1133
Joined: 11.09.2005
With us: 19 years 6 months
Location: Indiana, United States

Re: Cmod Political borders model?

Post #41by Hungry4info » 21.07.2008, 23:20

Something of concern, there isn't really a definite number of countries in the world. There's at least one oddity, Taiwan, for example, but it's an island-"nation", so you might be able to get away with it =P.
Current Setup:
Windows 7 64 bit. Celestia 1.6.0.
AMD Athlon Processor, 1.6 Ghz, 3 Gb RAM
ATI Radeon HD 3200 Graphics

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

Re: Cmod Political borders model?

Post #42by granthutchison » 23.07.2008, 16:14

Folks:
I have current border data, as of the (disputed) independence of Kosovo this year, in the form of lat long pairs in text files. Much work was involved in extracting new national borders from old provincial borders to keep the data current. It's what I use to maintain my texture overlay, hosted by selden.
Anyone is welcome to the data if they want to convert them to CMOD. :)
They'll give you the Central Asian republics, the fragments of ex-Yugoslavia, and the united Germany, as well as East Timor and numerous small enclaves (Llivia, Indo-bangladeshi, central Asian republics).

Grant
Last edited by granthutchison on 23.07.2008, 16:22, edited 1 time in total.

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: Cmod Political borders model?

Post #43by Cham » 23.07.2008, 16:21

Grant,

please, send me the data by email. I'll make a CMOD version of it. Is the data very precise ?
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

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

Re: Cmod Political borders model?

Post #44by granthutchison » 23.07.2008, 16:33

Cham wrote:Is the data very precise ?
Same ultimate source as yours (the World Data Bank II), except with some finer detail taken from the World Vector Shoreline in order to fill in the new national borders.
I have it formatted in lat-long pairs, with one-line headers identifying each border segment. The headers should be easy enough to strip out or otherwise ignore: my own program to generate the overlay texture does that.

Grant

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: Cmod Political borders model?

Post #45by Cham » 23.07.2008, 16:36

Grant,

then, can you send it to me by email (in chunks of less than 10 MB), or a download link ?
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

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

Re: Cmod Political borders model?

Post #46by granthutchison » 23.07.2008, 19:48

OK, here are zipped text files for download by anyone who's interested:

africa.zip (373 KB)
americas.zip (222 KB)
asia.zip (563 KB)
europe.zip (373KB)

The file names are self-explanatory. Data are presented as tab-delimited pairs of coordinates, longitude then latitude (decimal degrees; west and south are negative), with a line break after each coordinate pair.
Headers are short text strings I can explain to anyone who's interested, but which are always less than 10 characters in length, whereas the data lines are always greater than 10 characters: to filter the headers, reject all strings shorter than 10 characters.

Grant

Topic author
ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 20 years 2 months

Re: Cmod Political borders model?

Post #47by ElChristou » 23.07.2008, 20:00

granthutchison wrote:Folks:
I have current border data, as of the (disputed) independence of Kosovo this year, in the form of lat long pairs in text files. Much work was involved in extracting new national borders from old provincial borders to keep the data current. It's what I use to maintain my texture overlay, hosted by selden.
Anyone is welcome to the data if they want to convert them to CMOD. :)

I knew some data were around the corner! Many Tx Grant!
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: Cmod Political borders model?

Post #48by Cham » 23.07.2008, 20:37

Thanks Grant,

I'll convert all the data to CMOD tonight. Should be fast to do. However, the files are pretty small. I guess the borders resolution is much less high than with my previous data. I'll see this later.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

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

Re: Cmod Political borders model?

Post #49by granthutchison » 23.07.2008, 21:20

Cham wrote:I'll convert all the data to CMOD tonight. Should be fast to do. However, the files are pretty small. I guess the borders resolution is much less high than with my previous data. I'll see this later.
Then your files are much larger than they need to be, I'd suggest. :)
The original data show spurious precision (comparison with current SRTM topo data and between the WDB II and WVS datasets suggests an accuracy on the order of 100m), as well as containing many, many duplicated points, so I filtered them accordingly. I didn't bother trimming the trailing decimals, I confess, since that wouldn't alter the floating-point processing rate, and I didn't anticipate ever having to transfer the files electronically.

Grant

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: Cmod Political borders model?

Post #50by Cham » 24.07.2008, 01:45

Here's a first quick model made with Grant's data. Of course, the color isn't final. This model is using dots only (instead of straight lines between each pair of dots) and isn't satisfying since there are many holes and gaps in the curves. I compared the curves with the model I made with the soviet era, and the match is very close (almost the same, except europe and a few cases) :
world.jpg


Next, I'll make a version with straight lines. It should be better.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: Cmod Political borders model?

Post #51by Cham » 24.07.2008, 02:24

Okay, the model with straight lines is superb. Almost finished.

But what are these small countries in Asia, in the north of Pakistan ?
strange.jpg


See the tiny red blobs near the center of that picture ? What the ???
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

bdm
Posts: 461
Joined: 22.07.2005
With us: 19 years 8 months
Location: Australia

Re: Cmod Political borders model?

Post #52by bdm » 24.07.2008, 07:00

Cham wrote:Okay, the model with straight lines is superb. Almost finished.

But what are these small countries in Asia, in the north of Pakistan ?
It looks like an error to me, because those pieces of land look like they are in Kyrgyzstan.

EDIT - I found what these are. These are foreign enclaves in Batken province in Kyrgyzstan. The one of the left is the Tajik Voruh enclave, and the larger one on the right is the Uzbek Soh enclave.

Here is a map:
http://www.reliefweb.int/rw/fullMaps_Sa ... penElement

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 5 months

Re: Cmod Political borders model?

Post #53by BobHegwood » 24.07.2008, 07:14

bdm wrote:It looks like an error to me, because those pieces of land look like they are in Kyrgyzstan.
Same thing I thought. See HERE.
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Topic author
ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 20 years 2 months

Re: Cmod Political borders model?

Post #54by ElChristou » 24.07.2008, 07:29

bdm wrote:EDIT - I found what these are. These are foreign enclaves in Batken province in Kyrgyzstan. The one of the left is the Tajik Voruh enclave, and the larger one on the right is the Uzbek Soh enclave.

Yep, you can also see them in Google map: http://maps.google.com/maps?hl=fr&num=10&as_epq=Kyrgyzstan+map&as_oq=&as_eq=&lr=&cr=&as_ft=i&as_filetype=&as_qdr=all&as_occt=any&as_dt=i&as_sitesearch=&as_rights=&safe=images&q=%22Kyrgyzstan+map%22&um=1&ie=UTF-8&sa=X&oi=geocode_result&resnum=1&ct=image
Image

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

Re: Cmod Political borders model?

Post #55by granthutchison » 24.07.2008, 07:29

Yes, I have a special interest in enclaves. You'll find a number of them scattered around Europe and Asia, which I retrieved from the WVS datset.
Take a look along the Spanish-French border, and you'll find the Catalan town of Llivia, surrounded by French territory. There are others.

Grant

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: Cmod Political borders model?

Post #56by Cham » 24.07.2008, 11:56

Isn't the world strange !?

I'll finish the world model today. I've found some small defects here and there, when three lines are joining (mostly in Europe). I'll try to correct them.

Please guys, suggest me a nice color for the borders.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Topic author
ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 20 years 2 months

Re: Cmod Political borders model?

Post #57by ElChristou » 24.07.2008, 12:40

granthutchison wrote:...Take a look along the Spanish-French border, and you'll find the Catalan town of Llivia, surrounded by French territory...

8O First time I hear about this one!

Cham, beware not deleting any good data! (from what I saw they seems to be VERY good!)
Now, whatever color is fine and one can always edit the cmod to change it, no?
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: Cmod Political borders model?

Post #58by Cham » 24.07.2008, 12:54

ElChristou wrote:Cham, beware not deleting any good data! (from what I saw they seems to be VERY good!)

There are many very small defects, like these :
defects.jpg


The difficulty is to locate them in the numbers list (coordinates) and join the lines.

Lets not forget the lines accuracy is about 1 km, and the deffects shown here are at the same scale. So changing a small straight line to join the curves will not affect the accuracy of the map.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Re: Cmod Political borders model?

Post #59by Cham » 24.07.2008, 13:15

Without an adaptive planetographic grid, it's extremelly difficult to find the coordinates of the defects. :cry:

Please Chris !
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

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

Re: Cmod Political borders model?

Post #60by granthutchison » 24.07.2008, 13:30

Cham wrote:Without an adaptive planetographic grid, it's extremelly difficult to find the coordinates of the defects.
In general, they should be easy, because they're at tripoints, and the segment headers code the countries on each side of each border. The mismatch comes from using two datasets, both of which have spurious precision, so that the end of one border doesn't precisely tie to two other ends. The "offending" coordinates are therefore in general at the start or finish of a border segment where WVS meets WDB II. The little loop in your fourth image is a surprising exception, though, and looks like a mismatched subseries of line segments. Which three countries are meeting at the central tripoint shown?
Personally, I'd just accept the mismatch at the tripoints, because the "correct" location of the tripoint is unknown to the precision the datasets use. But if it's causing you distress, let me know which tripoints are involved, and I'll see if I can get around to "fixing" the junctions. Might take me some time before I can fit it in, though. :)

Grant


Return to “Add-on development”