FE 'tkGooies' system

'MAPtools' group

Data Sources

COUNTRY OUTLINE FILES

(in a simple ASCII text format ---
x,y coordinates in 2 columns)


(FE = Freedom Environment)

A reduced-size PNG image file
of the country Turkey.

One of many hi-res image files
that are made from
very high-resolution
outline data at
gadm.org.

FE Home page > FE Downloads page >

FE 'tkGooies' Download page >

'tkGooies' Description page >

'tkGooies' 'MAPtools' CODE menu >

Map Data SOURCES menu page >

This 'COUNTRY outline files' page

! Note !
More links to sources of COUNTRY outline data
(in ASCII-text format) may be added ---
as 'MAPtools' scripts are tested and developed
for the FE 'tkGooies' subsystem.

Some of these data files may be replaced by
files with better data --- and some high-resolution
files may be added as alternatives to low-res files.

< Go to Table of Contents, below >
(SKIP THIS INTRO)

INTRODUCTION :

The following 'country outline files' were created from KMZ (or GeoJSON) files using a rather tedious process --- such as the following for KMZ files:

  • find '.kmz' files containing data in KML format for individual (or multiple) countries

  • uncompress the '.kmz' files into '.kml' (text) files

  • run a utility script --- a script that will eventually be in the FE 'Nautilus Scripts' subsystem, in a 'MAPtools' group of shell scripts --- to 'fold' long lines into shorter lines and to remove most of the XML-like markup language in the files

  • manually edit each of the reformatted-and-reduced files into a simple text file with a title comment line (or two) --- and data lines consisting of 2 (or 3) columns of numbers (longitudes and latitudes, in decimal degrees)

    We allow an optional z (elevation) coordinate --- and even comments on the ends of the lines --- that may be ignored by the FE 'MAPtools' tkGooies that read the outline files.


Various Data Resolutions
(from rather-crude to excellent)

For each country, there may be several outline files (below) of different 'resolutions'.

The filename of each file includes the number of lines in the file.

That number is an indication of the number of data lines (point definitions) in each file --- and includes number of comment lines.

The more lines in the file, the more data points.

More data points means that a plot of the sequences of points will (usually) yield a map outline with more detail.

---

Note that you can estimate the number of points that you will need to get a high-quality outline of the country.

Nowadays, the maps are often rendered on a display screen with a resolution of about 1024 x 768 pixels or 1920 x 1080 pixels --- with the resolution trending upward year by year.

Let us take the case of a 1024 x 768 pixel computer monitor.

Say we want to render a map in a web browser window on that display.

If the user has the web browser window maximized, a map of about 800 x 600 pixels would probably fit nicely within the margins of the web browser viewport.

If we are dealing with a map of a country that is rather rectangular in shape and with about an 8-to-6 aspect ratio, then --- if there are not a lot of inlets/jaggies along the borders of that country --- we would need a maximum of about

800 + 600 + 800 + 600 = 1600 + 1200 = 2800 points

around the border of the country --- to give a really accurate rendering of the border on the monitor screen.

Actually, that would usually be overkill.

If we had point coordinates about every 4 pixels around the border, and we connected those points with straight line segments, we would probably find that we get a quite good-looking map.

So about 2800 / 4 = 700 points might give a pretty good map.

On the other hand, if there are a lot of jaggies around the periphery of the country (lots of inlets and/or peninsulas, say), we may need up to around 10,000 points to get a 'fine-grained' map image --- like the image at the top of this page.

In summary, for outline maps of countries, we will probably want to use from a few hundred to about 10,000 points to draw outline maps.

    Note that for country-files which include borders of interior entities such as states, provinces, or counties, then more than 10,000 points may be required for good definition of all the borders --- say 50,000 or 80,000 points.

In the map files below, we may eventually want to have several file 'resolutions' for each country --- 'crude', 'good', and 'excellent' files --- say about 200 points, 1500 points, and 10 thousand points, respectively.

(And more points for those files that contain state/province/county borders.)

---

Note that you can easily estimate the file sizes --- in kilobytes --- of each of these crude, good, and excellent files --- from the number of points in the file.

If each number in the file is expressed to about 10 significant digits, that means that there are about 23 characters in each data line of the file (counting 2 decimal points and a space or comma separating the 2 numbers).

Then the file sizes will be

  • 'crude' = 200 points(lines) x 23 bytes/line = 4.6 kilobytes

  • 'good' = 1500 points(lines) x 23 bytes/line = 34.5 kilobytes

  • 'excellent' = 10,000 points(lines) x 23 bytes/line = 230 kilobytes = 0.23 Megabytes


Data 'Loops'

Some maps may contain outline 'loops' --- representing islands --- or bodies of water (like lakes).

The loops are indicated in the data files by a blank or comment line between sequences of data lines.

A comment line is indicated by a '#' character in column one of a file line.


Presentation of the files
(How to use these files)

The files (following) are offered in alphabetical order by country name.

The following 'table of contents' (table of links) offers a way to quickly jump to a section of countries starting with the same first letter.

You can either

  • click on a filename to view a file, or

  • 'right-click' on a filename, and, in a popup option menu, choose an option like

    'Save Link Target As ...'

    to download a file.


Lists of countries

Here is a list of over 250 country/administrative-area names.

There are 'outline-data' files below for a majority of these names.

    Here is an alternative list of countries (and 'administrative areas') --- about 250 --- with their longitude-latitude location.

When the border data of countries are gathered together to do a plot of the Earth's countries, usually the data from no more than about 180 countries is used.

    (Many countries/administrative-areas consist of small islands or a very small land area.)

Here is a list of those ~180 countries gathered into regions of Earth.

TABLE OF CONTENTS:

(links to sections of this page, below)

(The files are in alphabetic order by
initial letter of country name.)

    A     B     C     D     E     F    

    G     H     I     J     K     L     M    

    N     O     P     Q     R     S    

    T     U     V     W     Y     Z     ALL    

End of Table of Contents.

Start of Sections of Links to Data Files.


< Go to Top of this page. >

A


< Go to Table of Contents, above. >

< Go to Top of this page. >

B


< Go to Table of Contents, above. >

< Go to Top of this page. >

C


< Go to Table of Contents, above. >

< Go to Top of this page. >

D
E
F

< Go to Table of Contents, above. >

< Go to Top of this page. >

G


H

< Go to Table of Contents, above. >

< Go to Top of this page. >

I


J
K


< Go to Table of Contents, above. >

< Go to Top of this page. >

L

M


< Go to Table of Contents, above. >

< Go to Top of this page. >

N
O
P

< Go to Table of Contents, above. >

< Go to Top of this page. >

Q
R
S

< Go to Table of Contents, above. >

< Go to Top of this page. >

T
U


A plot of an 85-thousand-line
USA-with-State-Borders file above
--- using an 'Add 360 to negative longitudes'
option to handle Aleutian islands
with longitudes near both minus-179 degrees
and plus-179 degrees.

Alaska appears bloated because we are plotting
with longitude lines parallel in a plane,
when really the longitude lines converge
as they approach the north pole.

One way of looking at this is that each
10degree-by-10degree longitude-and-latitude
square really should be a trapezoid --- to
achieve an image that is close to 'area-preserving'.

U continued


V
W
Y
Z
ALL


A test plot of the 25-thousand line
'WholeEarth' file above, using the
tkReadOutlineFile_ drawOutlineOnCanvas 'tkGooie'.

SAMPLE SEARCHES
for ASCII outline-map files - for countries:


< Go to Table of Contents, above. >

< Go to Top of this page. >

Bottom of this page of
'Outline Data Files - for COUNTRIES'
--- a page of links to
map-outline data files,
in simple ASCII-text format
--- for use with 'MAPtools' scripts
of the FE 'tkGooies' system.

To return to a previously visited web page, click on the Back button of your web browser a sufficient number of times. OR, use the History-list option of your web browser.
OR ...

< Go to Table of Contents, above. >

< Go to Top of Page, above. >

Page history:

Page was created 2016 Nov 10.

Page was changed 2016 Dec 06.
(Added Brazil-withStateBorders. Added 'WholeEarth' file. Plotted ~180 files; fixed/changed a few.)

Page was changed 2016 Dec 08.
(Added big files for France, Germany, Italy, and Sweden. Added USA with all State borders.)

Page was changed 2016 Dec 10.
(Added 2 links to lists of ~180 country names. Added a link to a 10,137-line World Countries data file.)

Page was changed 2016 Dec 11.
(Added a link to a 10,214-line World Countries data file. Added a 13,848-line Bulgaria file. Added about 12 islands and improvements for Honduras,Portugal,Uzbekistan.)

Page was changed 2016 Dec 12.
(Added links to 12 hi-res country files, and added plot images for 11 of those files.)

Page was changed 2016 Dec 13.
(Added 2 large, 85,000-line USA-with-state-borders files. Replaced 2 medium-sized USA files with-state-borders with better files --- 7.1K and 9.9K lines.)

Page was changed 2016 Dec 15.
(Added a link to a list of countries with their longitude-latitude locations. Provided better files for Argentina, Aruba, Belize, Bermuda, Cayman Islands, Curacao, Cyprus, Burundi, Denmark, El Salvador, France, Gambia, Gibraltar, Greece, Grenada, Italy, Jamaica, Jordan, Kenya, Kosovo, Kuwait, Lebanon, Luxembourg, Macedonia, Malawi, Montenegro, Netherlands, Puerto Rico, Qatar, Rwanda, St. Maarten, Saint Martin, San Marino, Spain, Swaziland, Switzerland, Syria, Turkey, United Kingdom, VirginIslands-US. Added 2 big UnitedKingdom/GreatBritain files, with Province Borders.)

Page was changed 2019 Feb 22.
(Added css and javascript to try to handle text-size for smartphones, esp. in portrait orientation.)

Page was changed 2019 Jun 28.
(Specified image widths in percents to size the images according to width of the browser window.)