Valery35
(Master Craftsman)
01/27/06 03:38 AM
View in Google Earth
World Countries as Polygons. Next generation.

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.


Valery35
(Master Craftsman)
01/29/06 06:41 AM
Angola. KML source with schema.

<?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>


simon_a
(Master Guide)
11/27/06 02:29 PM
Re: World Countries as Polygons. Next generation.

An excellent resource - thank you!



Simon.


Martouf_vert
(Tourist)
08/23/07 09:21 AM
Re: World Countries as Polygons. Next generation.

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 ?


olbigo
(First Post)
12/20/07 01:38 PM
Re: World Countries as Polygons. Next generation.

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 régions (22 entities) as encoded polylines,
-All french départements (96 entities) as encoded polylines.

Regards.


Martouf_vert
(Tourist)
03/22/08 05:29 AM
Re: World Countries as Polygons. Next generation.

Finally i found a shapefile that i converted to kml to have a simpler world map.
Your encoded polygon are very interesting.

Thanks


bugemenot4
(Tourist)
06/23/08 04:09 AM
Re: World Countries as Polygons. Next generation.

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..


Kempster
(Master Guide)
06/26/08 09:57 AM
Re: World Countries as Polygons. Next generation.

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!

bullet_time
(Tourist)
06/27/08 07:59 AM
Re: World Countries as Polygons. Next generation.

Very good tool, latest version 1.3.0 Build date 08.08.2006.


earth.google.com    bbs.keyhole.com

*
UBB.threads™ 6.5.1.1