Translate posts to Experimental | Feedback
Google
Official Google Earth Download Site
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
Previous Topic
View All Topics Index
Next Topic
#300541 - 01/27/06 03:38 AM World Countries as Polygons. Next generation. *****
Valery35 Offline
Master Craftsman

Registered: 09/02/05
Posts: 2299
Loc: Russia, Perm, Sun
Generate by KMLer. Size <250K.
Home page
http://www.mi-perm.ru/gis/programs/kmler
Forum
http://bbs.keyhole.com/ubb/showflat.php/Cat/0/Number/274058



Include labels, colors distribution, searth strings, connect to Google Maps. Attributes (shema)
FIPS_CNTRY
GMI_CNTRY
ISO_2DIGIT
ISO_3DIGIT
CNTRY_NAME (placemark)
LONG_NAME
SOVEREIGN
POP_CNTRY
CURR_TYPE
CURR_CODE
LANDLOCKED
SQKM
SQMI

I see error - Taiwan. If you find other errors, then write. After I will correct it.


Attachments
289717-country.kmz (11904 downloads)
Preview this file with the Google Earth Plugin (learn more)


Edited by Valery35 (02/01/06 07:32 AM)

Top
#300542 - 01/29/06 06:41 AM Angola. KML source with schema. [Re: Valery35]
Valery35 Offline
Master Craftsman

Registered: 09/02/05
Posts: 2299
Loc: Russia, Perm, Sun
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Document>
<Schema parent="Placemark" name="S_country">
<SimpleField type="wstring" name="FIPS_CNTRY">
</SimpleField>
<SimpleField type="wstring" name="GMI_CNTRY">
</SimpleField>
<SimpleField type="wstring" name="ISO_2DIGIT">
</SimpleField>
<SimpleField type="wstring" name="ISO_3DIGIT">
</SimpleField>
<SimpleField type="wstring" name="CNTRY_NAME">
</SimpleField>
<SimpleField type="wstring" name="LONG_NAME">
</SimpleField>
<SimpleField type="wstring" name="SOVEREIGN">
</SimpleField>
<SimpleField type="double" name="POP_CNTRY">
</SimpleField>
<SimpleField type="wstring" name="CURR_TYPE">
</SimpleField>
<SimpleField type="wstring" name="CURR_CODE">
</SimpleField>
<SimpleField type="wstring" name="LANDLOCKED">
</SimpleField>
<SimpleField type="double" name="SQKM">
</SimpleField>
<SimpleField type="double" name="SQMI">
</SimpleField>
</Schema>
<Style id="khStyle548_0">
<LineStyle id="khLineStyle548_0">
<color>66000000</color>
<width>0.4000000059604645</width>
</LineStyle>
<PolyStyle id="khPolyStyle548_0">
<color>66beffd3</color>
</PolyStyle>
</Style>
<S_country>
<name>Angola</name>
<description><![CDATA[<a href='http://www.google.com/search?q=Angola'>Search Google</a> <BR><a href='http://maps.google.com/?ll=-12.2994772211426,17.5379654426636&spn=0.02,0.02&t=h'>Maps Google</a> <BR>]]></description>
<styleUrl>#khStyle548_0</styleUrl>
<Style>
<PolyStyle>
<color>82beffd3</color>
</PolyStyle>
</Style>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
12.21455,-5.768556,0 12.02613,-5.014997,0 12.76528,-4.393889,0 13.09139,-4.633056,0 12.57222,-5.021806,0 12.52667,-5.724167,0 12.21455,-5.768556,0
</coordinates>
</LinearRing>
</outerBoundaryIs>
<tesselate>1</tesselate>
</Polygon>
<FIPS_CNTRY>AO</FIPS_CNTRY>
<GMI_CNTRY>AGO</GMI_CNTRY>
<ISO_2DIGIT>AO</ISO_2DIGIT>
<ISO_3DIGIT>AGO</ISO_3DIGIT>
<CNTRY_NAME>Angola</CNTRY_NAME>
<LONG_NAME>Angola</LONG_NAME>
<SOVEREIGN>Angola</SOVEREIGN>
<POP_CNTRY>11527260</POP_CNTRY>
<CURR_TYPE>New Kwanza</CURR_TYPE>
<CURR_CODE>AON</CURR_CODE>
<LANDLOCKED>N</LANDLOCKED>
<SQKM>1252934.88</SQKM>
<SQMI>483758.22</SQMI>
</S_country>
</Document>
</kml>

Top
#300543 - 11/27/06 02:29 PM Re: World Countries as Polygons. Next generation. [Re: Valery35]
simon_a Offline
Master Guide

Registered: 08/21/05
Posts: 1773
Loc: London, UK
An excellent resource - thank you!



Simon.

Top
#300544 - 08/23/07 09:21 AM Re: World Countries as Polygons. Next generation. [Re: Valery35]
Martouf_vert Offline
Traveler

Registered: 08/23/07
Posts: 2
Thanks a lot for this excellent ressource. It is very useful for me !


Now, i'm adapting this file to display it on google maps.

I converted the polygons from kml format to a json format. Thus, i reduce the display time. But, it is not enough.
It takes about 1 minute to display the entire world.

This KML file is too precise (too many polygons and too many points) and not ideal for web-based representation.

To improve efficiency of my script, i'm therefore seeking a simplified KML file of the world with each country but constructed with less vertex and not with all coasts details.

Do you know if such a file exists and where ?


Or better, i'm seeking a version based on the encoded Gpolylines. Ideally, i would need four levels of zoomFactor (http://www.google.com/apis/maps/documentation/polylinealgorithm.html), each one being used at different levels of zoom such as described in the Google maps API / Encoded polyline ( http://www.google.com/apis/maps/documentation/index.html#Encoded_Polylines ).
Do you know if someone would have produced such a file, whereby country borders match well ?

Top
#300545 - 12/20/07 01:38 PM Re: World Countries as Polygons. Next generation. [Re: Martouf_vert]
olbigo Offline
New Poster

Registered: 12/20/07
Posts: 1
If it's not too late, maybe you will find something usefull on my homepage. Check Bonus track 2: All World countries (210 entities) as encoded polylines for Google maps.
Currently, you can also get
-All US states (50 entities) as encoded polylines,
-All US counties (3141 entities) as encoded polylines,
-All french rgions (22 entities) as encoded polylines,
-All french dpartements (96 entities) as encoded polylines.

Regards.

Top
#300546 - 03/22/08 05:29 AM Re: World Countries as Polygons. Next generation. [Re: olbigo]
Martouf_vert Offline
Traveler

Registered: 08/23/07
Posts: 2
Finally i found a shapefile that i converted to kml to have a simpler world map.
Your encoded polygon are very interesting.

Thanks

Top
#300547 - 06/23/08 04:09 AM Re: World Countries as Polygons. Next generation. [Re: Martouf_vert]
bugemenot4 Offline
Traveler

Registered: 06/13/06
Posts: 153
Loc: Heaven
Hi Martouf_vert!
How did you get a simple world map? I'm desperately looking for that but I can't find it. I always get the world divided into countries. I just need a "world borders map" to divide sea from mainland..

Top
#300548 - 06/26/08 09:57 AM Re: World Countries as Polygons. Next generation. [Re: bugemenot4]
Kempster Moderator Offline
Master Guide

Registered: 05/29/04
Posts: 1547
Loc: Eden Prairie, MN, USA
I don't think Valery's "World Countries as Polygons" collection can do this. Further, you can't adjust the "Borders" layer in Google Earth so that only borders between land and water are visible. Sorry!

Top
#300549 - 06/27/08 07:59 AM Re: World Countries as Polygons. Next generation. [Re: Valery35]
bullet_time Offline
Traveler

Registered: 06/24/08
Posts: 43
Very good tool, latest version 1.3.0 Build date 08.08.2006.
_________________________
The World is a book, and those who do not travel read only a page. - St. Augustine - My project about Benidorm and the surrounding maps.

Top
#300550 - 10/13/08 10:47 AM Re: World Countries as Polygons. Next generation. [Re: bugemenot4]
puremetal Offline
New Poster

Registered: 10/13/08
Posts: 1
bugemenot4,

this works for me... just made it as I was searching around for something similar. sorry about the Antimeridian, I was lazy

it uses Valery35's polygons, iirc

edited for updated version



Attachments
1246881-Hideterrain2.kmz (710 downloads)
Preview this file with the Google Earth Plugin (learn more)


Edited by puremetal (10/15/08 06:32 AM)

Top
Page 1 of 2 1 2 >