File talk:BlankMap-World6.svg

From Wikimedia Commons, the free media repository

Jump to: navigation, search
Archives
2006-2008

Contents

Documentation

[edit] Countries included

American Samoa, Anguilla, Antarctica, Aruba, Bermuda, Cayman Is., Cook Is., Faeroe Is., Falkland Is., French Polynesia, Gibraltar, Greenland, Guam, Guernsey, Jersey, Isle of Man, Mayotte, Monserrat, Netherlands Antilles, New Caledonia, Niue, N. Mariana Is., Palestinian territories, Pitcairn Is., Puerto Rico, St. Barthélemy, St. Helena, St. Martin (France), Norfolk Island, St. Pierre & Miquelon, Taiwan, Tokelau, Turks & Caicos Is., Vatican City, Virgin Is. (UK), Virgin Is. (US), Walis & Futuna, Western Sahara.

Abkhazia (id="abkhazia"), Kosovo ("kosovo"), Northern Cyprus ("northern_cyprus"), and South Ossetia ("south_ossetia") are also represented on the map, but without a border. If desired to be used, will have to be selected by searching for its id tag. Unless otherwise specified colouring Serbia will also colour Kosovo.

[edit] Subnational areas

  • France (id "fr") includes the overseas departments of Reunion ("re"), Guadeloupe ("gp"), Martinique ("mq"), and French Guiana ("gf") as they are integral parts of France. However, any of these can be selected individually by using their own ISO code (see below). Also Metropolitan France (that is, France in Europe) can be selected by using the code "frx".
  • China (id "cn") includes the SARs of Hong Kong ("hk") and Macao ("mo"). However, any of these can be selected individually by using their own ISO code (see below). Also the rest of the People's Republic of China without the SARs can be selected by using the code "cnx".

[edit] Small countries

A map showing all the small nation markers unhidden.

All countries under 20,000 km2 have a rather large circle (roughly the equivalent of 20,000 km2 in size) to show their position. The opacity of the circles is currently set to 0%. The state of Swaziland has not been given a circle due to the state being already shaped like a circle.

There is also a space left in the Caribbean for a separate circle for Sint Maarten, when it is scheduled to become a separate territory administered by the Netherlands upon the dissolution of the Netherlands Antilles estimated to take place in October 2010.

The French DOMs and the Chinese SARs listed above can also be selected separately from, or together with, the small countries circles (see below), the circles for these regions is smaller in size.

[edit] Selecting and colouring countries

Please have a look at Commons talk:Project Mapmaking Wiki Standards before creating a new map.

[edit] In Inkscape or similar

Non-contiguous parts of a country's territory are "grouped" together with the main area of the country, so any country can be coloured in completion with one click anywhere on the country's territory.

Also, all countries have a "id" attached to them, making them easy to find (comes in handy for the small countries). Select "find" and then enter in the country's ISO 3166-1 alpha-2 code in lower case in the "id" field to find the country (don't ask me why I did it that way, I'm a bit of a geek to classify countries by their ISO-3166 code). There are other areas to colour as well that don't have a code, listed below:

For small countries, you can find and select their "circle" by typing the country's ISO 3166-1 alpha-2 code in lower case followed by a period. However, just searching for the country, and selecting and colouring it, will also colour the circle as well, increasing the transparency of the circles will reveal them. Searching for all IDs that contain a "." in the tag (in Inkscape this is achieved by just entering a single period in the ID field of the Find box) will select all the circles, the transparency can then be increased to 100%, and the colour of the circles will be same as that of the territory it represents (if it has already been coloured). The Chinese SARs and French DOMs (except French Guiana, which is too large for a circle) will not be selected or displayed in this manner. However, if desired, you can search in a similar manner for all IDs containing a "_" in the tag, which will select the smaller circles for these regions, and can be handled in the same manner.

[edit] In a text editor

Non-contiguous parts of a country's territory are "grouped" together with the main area of the country, so any country can be coloured in by setting the style for the class of that country.

Also, all countries have a "class" attached to them. The class for each country is the country's ISO 3166-1 alpha-2 code in lower case. There are other areas to colour as well that don't have a code, listed below:

To colour a country just set the "fill" of it's class to the desired colour. e.g. to colour Afghanistan and Bahamas just enter the code below within the css block:
.af, .bs { fill: #2b3bb6; }

to colour the circle of a country (if it has one) as well as the country write:
.af, .bs { opacity: 1; fill: #2b3bb6; }

If you wish to colour Kosovo and Serbia in differently the style of the .kosovo class needs to be specified after that of the Serbia (.rs) class.

Remember that how the image looks in Inkscape, Firefox and Mediawiki may differ greatly.

[edit] Utilities

SVG script (by Biercenator talk)
Map made using Biercenator's script centered at 162E and flattened

A [utility script written in Python] is now available, that can perform a number of weird and wonderful operations on this map. These include (in least-to-most-entertaining order):

  • Output of the original file, with all SVG transforms applied;
  • Output as a flattened image with parallel lines of longitude;
  • Output as a rotated Robinson projection, with an arbitrary line of longitude at the center of the image;
  • Output of an individual country;
  • Addition of pinpoint marks of arbitrary size, at positions set by geographic coordinates (long and lat);
  • Production of rendered images in PNG or JPG format;
  • Generation of pages with clickable countries and/or clickable pinpoint marks;
  • Replacement of the style section of the file with arbitrary CSS code, before rendering;
  • Production of separate rendered image "layers", each containing a portion of a single map instance (useful when a bitmap editor is to be used for postprocessing).
Gunnmap (gradiant mapmaker application, by Arthur)
Map made using http://gunn.co.nz/map/ (code by: arthur [atrobase] gunn.co.nz )

Gunnmap is a little free application allowing to produce nice coloured wiki world maps according to provided data. The author, Arthur, only made some edits on wikipedia.org to announce his application, and hasn't made further edits since summer 2007. It may be need to contact him, ask him information about the status of his application, and if possible collaborate to expand it, or edit it to be more adapted to wiki-mapmakers needs.

Recommendations to make maps

Wikigraphists plan to set up common recommendation for all wikipedias. This is not yet done. More information at : Commons_talk:Project_Mapmaking_Wiki_Standards.

Translate SVG script (by Nikola Smolenski [[User talk
Nikola Smolenski|talk)

See http://tools.wikimedia.de/~nikola/svgtranslate.php , which allow to translate all text appearing in a commons' SVG. It may be need to extend to ba able to change "xxxxx" by "yyyyyy" what ever it is.

Comments

It may be need to set a team to merge all these SVG tools and expand them according to the needs. The Graphic Labs and wikigraphists (like me) already stated that such project (and a team of SVG programmers/think tank) may be really helpful to ease illustration, spread harmonized maps, and set up integrated SVG tools as the needs appears.

[edit] Conclusion

I hope that this map can be used on Wikipedia for illustration purposes, and I gladly give permission for this or any other use (hence the tag). It is highly recommended that any derivative maps created from this file, as well as any new updates to this file, be created using a text editor to reduce file size.

Again, my sincere thanks to en:User:Brianski who as far as I know created the original map this is based on, and to the many others who have made beneficial improvements to the file.

This is my first attempt at any kind of SVG work, and I would appreciate comments, feedback, or improvements on this map (this *is* a wiki which anyone can edit, remember.  ;) )



[edit] Update required!

The most important. The colors have to be set to the standard convention of en:WP:WPMAP as follows:

Color Hex RGB Sample Used for
Black #000000 0, 0, 0   Primary label color
Brown #A08070 160, 128, 112   Political borders. Country, state, and province borders should be brown.
Light brown #D0C0A0 208, 192, 160   Secondary political borders.
Light yellow #FFFFD0 255, 255, 208   Primary territory of interest, or one of four choices for four-color maps.
Pink #FFD0D0 255, 208, 208   Another color to be used for four-color maps.
Orange #F8A20C 248, 162, 12   A third color to be used for four-color maps.
Green #3CE67B 60, 230, 123   A fourth color to be used for four-color maps.
Light blue #CEFEF2 206, 254, 242   An alternate color to be used for four-color maps.
Orange #F7D3AA 247, 211, 170   Alternative color for the above Tan (surrounding territories).
Medium blue #9EC7F3 158, 199, 243   Bodies of water. Oceans or lakes.
Blue #1821DE 24, 33, 222   Water borders, if necessary. For lake or ocean borders that need a color contrasting with surrounding land, or for rivers.
Red #B00000 176, 0, 0   Points of interest. Cities, especially.
Red-orange #F07568 240, 117, 104   Alternative color for the above Red (points of interest).
Medium red #E0584E 224, 88, 78   Border color for areas highlighted in Red-orange
Green #A0F090 160, 240, 144   Parks or natural preservation areas
  1. The present blank map is based on the File:World map pol 2005 v02.svg. CIA doesn't appear to be hosting it any more. But all the original .pdf files are available in the Perry-Castañeda Library Map Collection. By the way, some user has converted the 2008 map: File:CIA WorldFactBook-Political world.svg, but I do not know, how good it is.
  2. At the moment there are no separate options for coloring inland and sea borders. So, if one makes the inland borders thicker to set value, it completely destroys the coastline of Norway or Greenland. So I propose, to make separate Ocean borders as here: File:Map of USA with state names.svg, or in the original CIA - The World Factbook - Political Map of the World.
  3. I know, I already ask too much, but another request :-) Please, make optional stripes as here: File:World map stripes for shading.PNG, because some complex maps, as this one: File:Free Trade Areas.PNG can not be converted to .svg otherwise. Thanks!
  4. It would as well be nice to have an option of showing the grid through CSS.
  5. Kosovo should be present (at least optionally), and the claimed territories, and the other unrecognized states, where possible. After all, most of the other maps should be derived from this one.
  6. Those, who are capable, please, update the map. But all this is a complex job, and could wait until the April, when they release the Political map for 2009. Sorry, for all this :-) Emilfaro (talk), 23:59, 19 January 2009 (UTC) - 03:42, 20 January 2009 (UTC)
Have you even read the description of this image? Kosovo is available. Has there been any significant changes in national borders since this map was last updated? If not then why the need for a syncing. Stripes can easily be added for derivative files. Since this image is vector based it doesn't make much sense to produce a map such as File:World map stripes for shading.PNG since that one exists due to the limitations of raster images. If one is still needed it can always be created as a separate file. As for the "standard" colours, why? This is a default map designed only for the purpose of making derivative maps, any colouring can be added to the derivative maps. This is quite apart from the fact that there is nothing "standard" about the colours except for them being the convention recently decided upon by a small set of people at en.wiki. /Lokal_Profil 15:03, 23 January 2009 (UTC)
As for the code being W3C invalid please read Template talk:ValidSVG about why this isn't necessarily so. /Lokal_Profil 15:07, 23 January 2009 (UTC)
That one has not really been my request. I have merely integrated it in from the previous versions of the page. Emilfaro (talk) 10:23, 24 January 2009 (UTC)

[edit] French color set

There is as well another set of colors: fr:Projet:Cartographie/Recommandation/Carte géographique, fr:Projet:Cartographie/Recommandation/Carte topographique. How can it be determined, which one should be used for the commons blank maps for the adoption of a common standard? Don't tell me it is kilometers vs. miles again :-) Maybe this could be voted on? Emilfaro (talk) 10:44, 24 January 2009 (UTC)

I personnaly will not encourage democratic vote in a such specific-technical issue. The best seems for me to still wait and see. Yug (talk) 07:33, 14 February 2009 (UTC)

[edit] Other partially recognized countries

If Kosovo is available then why not to code Abkahzia and South Ossetia support? SkyBonTalk\Contributions 15:32, 12 May 2009 (UTC)

[edit] Recent Map Edits

I recombined Alaska, Hawaii, and Mainland USA. The description of the map states "A detailed SVG map with grouping enabled to connect all non-contiguous parts of a country's territory for easy colouring." Separating Alaska, Hawaii, and the mainland US defeats that purpose. Anybody who wants to edit the map with them separated will have little trouble doing so on their own. So this map should be left with them grouped.

Also, I converted the lakes to holes in their respective countries. I did this for a couple reasons. First, when drawing regions over these countries and clipping them, the 'lakes' would disappear instead of defining the clip border. When I converted them to holes, that no longer happened. Second, this only included completely internal lakes, not lakes on borders (e.g. Lake Victoria, the Great Lakes, etc.), so anyone wishing to work with all the lakes on the map would still be prevented from doing so. Thus having the lakes grouped as separate objects served no usable function. Plus, there was no rhyme nor reason to which lakes qualified for inclusion and which didn't. If a map is needed with the lakes of the world included and grouped for easy coloring, then a new map distinct from this one should be created for that purpose. Ninjatacoshell (talk) 18:57, 13 November 2009 (UTC)

Thank you! I didn't know objects could be made with "holes" in SVG, hense the reason for the separate "lakes" tag - the ones that were included with "lakes" were merely the ones that were too far from a border to make as a "border gap". I definitely approve! The map still needs cleaning up (as you can tell the file size is much bigger, have to determine where the extra code is; plus the "countries with holes" don't have their tag on them, so can't be selected in the usual way, this is just a simple matter of renaming their group. I hope to maybe look at that this weekend, but if anyone else wants to take a stab at it, they're more than welcome to! --Canuckguy (talk) 04:00, 20 November 2009 (UTC)
I saw that NuclearVacuum fixed the id tags again. However the file now also seems to be filled with Inkscape junk code (probably the reason the size got bosted again. Also (more importantly) the class info (necessary for CSS) seems to have been lost for several countries. Also Alaska and Hawaii have been broken out from the US which there is no reason to do since they have the same ISO code. The best thing is probably to go back to the last unbroken version (21:17, October 15, 2009 I think) and then apply the lake fix and Norfolk Islands, Tokelau to that one. The problem is that I don't know what the border and minor fixing applied in the last edits referr to. Might also be worth putting a note similar to that one on File:Samesex marriage in USA.svg on this page to prevent inkscape junk form creeping into the code. /Lokal_Profil 23:59, 25 November 2009 (UTC)
And now I've done just that. The difference is that the border fixes (in 00:01, November 22, 2009) haven't been applied (unless they affected only Norfolk Islands, Tokelau or the countries which got changed due to lake removal). Also Alaska and Hawaii have not been separated from the US (in my oppinion the shouldn't have been and a discussion is needed on the talk page before such implementation). Also the new upload indirectly fixes the class tag issues which came up during the previous edits and also those relating to the Norfolk Isalnds and Tokelau. /Lokal_Profil 00:44, 26 November 2009 (UTC)
By the way why is there a star in the code (in the definitions section). Is this a desired feature (e.g. for easy marking of capitals i derivative images) or leftover code from some experiment? /Lokal_Profil 00:45, 26 November 2009 (UTC)

When I mentioned I was separating Alaska and Hawaii from mainland US, I didn't literally mean it. What I meant was I wanted to combine all of Alaska's territory into a group, than all of Hawaii's territory, and all the territory that makes up mainland US, and than grouping all three into the US. This is like in the case of France, which contains area outside Europe, but you can still simply get L’Hexagone (Mainland France/European France) marked separately from all France. I didn't mean to cause confusion on that. —NuclearVacuum 02:30, 26 November 2009 (UTC)

I know that you didn't mean an actual separation. The difference between France's other areas (or the UK or China) or even Puerto Rico and Guam to Alaska and Hawaii is that the UN treats them as special and have assigned them their own ISO 3166-1 alpha-2 codes. This is not true for Alaska and Hawaii therefore they should not have been split of (even if still included in US) and given their own codes. The problem is that this sets the precedence for doing the same thing to all countries with subdivisions (which is something that has been discussed before, normally in the context of Scotland, England Wales etc.). Also your newest edit once again includes Inkscape junk code and has broken the CSS classes on the US mainland. I therefore reverted the chnge. If there were any code fixes (excluding Alaska and Hawaii grouping) then give a shout. /Lokal_Profil 10:45, 26 November 2009 (UTC)
Oh? Okay, I had no idea. —NuclearVacuum 14:15, 26 November 2009 (UTC)
No worries. The text editor updates look ok. /Lokal_Profil 14:31, 27 November 2009 (UTC)
On the other hand since all of the edits are related to the ISO code issue I mentioned below they will dissapear when I correct the code. I'll leave in the fx->frx change though since it brings the notation in line with the one used for China (and makes it clear that it isn't an ISO code (having three letters instead of two). / Lokal_Profil 14:57, 27 November 2009 (UTC)

[edit] Northern Cyprus and Taiwan?

When this map was first uploaded it contained Kosovo as a separate area from Serbia if desired. When Russia recognized the independence of Abkhazia and South Ossetia, I added them and made them in a similar manner that Kosovo was made. After looking through which states had limited recognition, I discovered two possible problems that I want to bring up. It involves Northern Cyprus and the Republic of China (Taiwan). Both states are similar to Abkhazia, Kosovo, and South Ossetia, in which they are recognized by only a few UN members.

Taiwan I can understand, because the state is more recognized as the government of the island and not all of China. But since it is currently considered a province of the PRC, shouldn't we have it combined with the PRC and have it separated in the manner that Hong Kong and Macau are?

The next issue I want to bring up is Northern Cyprus. This is simple, I think there should be a separate are for the state in the manner that Kosovo is made. I currently have it made up and ready to upload, but the only reason I question this is because I have recently learned that I can not upload anything that was made with Inkscape. That program is the only one I know how to work with at the moment. It may be a while before I can make something that is acceptable. I wanted to know if there was anybody who could help me out with this. —NuclearVacuum 14:32, 26 November 2009 (UTC)

Firstly Taiwan. Although China considers it to be a province it's recognised by most of the world to be a separate nation and not a part of China. The difference with it and Macao, say, is that Macao makes no independence claims. The difference between Tibet, say, and Taiwan is that although both make independence claims only one is "de facto" independent. Therefore Taiwan shouldn't be treated as a SAR of China.
As for Northern Cyprus I guess it's a similar situation to South Ossetia say and therefore becomes a judgement call on whether to have it separate or not. In my opinion one could have it separate in the same way as South Ossetia so that it normally goes under Cyprus unless explicitly selected (and has no border between the countries). But others might disagree so it's worth giving it a while to see what feedback you get.
To the important question on how to do the edits. The main thing here is that although you can use Inkscape to create the map you shouldn't upload what Inkscape outputs since it destroys the css classes (and adds junk code). The way to do it is to do your changes in Inkcape and then go into the built in XML editor and copy past the relevant paths into the original (non inkscape modified) code. Alternatively save the inkscape file under a separate name and then open both in a basic text editor.
An example: When I removed the lakes from Canada I did it in Inkscape, then went to the XML editor and looked at the object "path4906" (which is mainland Canada) which looks somewhat like the below
class  landxx ca
d      M 814.43303,201......
id     path4906
I then opened the original file in my text editor, searched for path4906 and found a line which looked something like the below
<path class="landxx ca" d="M 614.43303,201......." id="path4906"/>
Then I just copied the "M 814.43303,201......" string from the xml editor in Inkscape and pasted that over the "M 614.43303,201......" string in the text editor. I then found the paths corresponding to the now deleted lakes and deleted them (i.e. everything from "<path" to "/>"). Save the text file and it's done.
Obviously if you are creating new objects you need to be more careful but for minor edits this is essentially it. The other alternative is to upload the Inkscape saved map to File:test.svg and then ask here for the edit to be transferred to this file. /Lokal_Profil 15:56, 27 November 2009 (UTC)
Thank you for that. I have uploaded it to the image and it seemed to work just fine. Thank you again. —NuclearVacuum 18:10, 27 November 2009 (UTC)
Looks fine. Minuscule detail fixed to allow Northern Cyprus to be coloured together with Cyprus (when a colour hasn't been specified for Northern Cyprus). /Lokal_Profil 19:52, 27 November 2009 (UTC)

[edit] ISO code adherence

When looking through the code the other day I discovered that the class id's no longer adhere to the ISO codes. For instance Hong Kong has been changed to cn_hk rather then the correct hk, Reunion is now fr_re rather then the correct re. These changes seem to have been introduced in the 19:28, September 2, 2009 edit (or during the upload conflict just prior to it). I'll attempt to fix them all but please keep your eyes open for any that I might have missed. /Lokal_Profil 14:52, 27 November 2009 (UTC)

I went though the code and I fixed them up for you. Hong Kong is now "hk", Reunion is now "re", and so on. —NuclearVacuum 15:44, 27 November 2009 (UTC)