FE 'tkGooies' system

'MAPtools' group

Data Sources

CONTINENTS and REGIONS
OUTLINE FILES

(of a simple ASCII
text format
--- x,y coordinates
in 2 columns)
(FE = Freedom Environment)

The FE 'MAPtools' scripts may
allow for assigning colors to
different countries/regions/lakes
in an 'outline' file
--- someday.

(The colors would be used
in doing 'polygon fills'.)

FE Home page > FE Downloads page >

FE 'tkGooies' Download page >

'tkGooies' Description page >

'tkGooies' 'MAPtools' CODE menu >

Map Data SOURCES menu page >

This
'CONTINENTS and REGIONS outline files'
page

! Preliminary !
Should have data for more regions.

Furthermore:
Some data may be replaced by better data.

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

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

INTRODUCTION :

The following continent and region '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 continents or regions

  • 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 that may be ignored by the FE 'MAPtools' tkGooies that read the outline files.


Various Data Resolutions
(from rather-crude to excellent)

For each continent/region, there may be several outline files (below) of different 'resolutions' (numbers of points).

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 the number of comment lines (usually less than 10).

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

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 continent (or region) that is rather rectangular in shape (like Australia-Tasmania) and with about an 8-to-6 aspect ratio, then --- if there are not a lot of inlets/jaggies along the boundaries of that continent --- we would need a maximum of about

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

around the boundary of the continent --- to give a really accurate rendering of the boundary on the monitor screen.

Actually, that would usually be overkill.

If we had point coordinates about every 4 pixels around the boundary, 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 quite good map.

On the other hand, if there are a lot of jaggies around the periphery of the continent (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 continents, we will probably want to use from a few hundred to about 10,000 points to draw outline maps.

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

---

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

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 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 --- or multiple continents --- or multiple countries.

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

    (The comment line could contain a red-green-blue color specification, for the 'fill' color of the next 'loop'.)

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 following 'table of contents' (table of links) offers a way to quickly jump to a section of continents or a section of regions (groups of countries).

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 regions

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

Eventually, there may be various groupings of these countries in the outline-data-files below.

TABLE OF CONTENTS:

(links to sections of this page, below)

End of Table of Contents.

Start of Sections of Links to Data Files.

CONTINENTS:

< Go to Table of Contents, above. >

< Go to Top of this page. >


Sample plot - from North Africa file below.

REGIONS:

< Go to Table of Contents, above. >

< Go to Top of this page. >


Sample plot from Asia file above


Sample plot from Western Europe file above


Sample plot from Middle East file above

NOTE1:
Because these outline data files are
'plain text' files, they can be
easily edited to move or copy data
for countries between files.

For example:
Move or copy data for African countries
between the North and South Africa region-files
--- or between the Western and Eastern Europe
files.

Or make new files that contain
country combinations that are not quite
like the combinations in these files.

(Avoiding duplicate, not-quite-matching
boundary lines can be a difficulty.)

NOTE2:
The 'tkReadOutlineFile_ drawOutlineOnCanvas'
'tkGooie' that was used to make these plots
may be enhanced to accomodate
plotting files with data that crosses the
international date line --- switching suddenly
from 180 degrees to -180 degrees as
one goes eastward.

This will help with plotting :

* Australia and nearby islands
* Alaska including the far western Aleutian islands
* Russia including far eastern Siberia.

NOTE3:
The 'tkReadOutlineFile_ drawOutlineOnCanvas'
'tkGooie' that was used to make these plots
may be enhanced someday to read colors
from comment lines in the outline file ---
and plot countries/regions/lakes in color.

SAMPLE SEARCHES for ASCII map files
--- for Continents and Regions:

Bottom of this page of
'Outline Data Files -
CONTINENTS and REGIONS'

--- a page of links to
map-outline data files
(in a 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 12.

Page was changed 2016 Dec 06.
(Added 7 Continent outline files.)

Page was changed 2016 Dec 08.
(Added Africa-WITH-country-borders.)

Page was changed 2016 Dec 10.
(Added a link to a list of about 180 countries. Added a better Africa-with-country-borders file, 4464 lines. Added a SouthAmerica-withCountryBorders file. Added a NorthAmerica-withCountryBorders file.)

Page was changed 2016 Dec 12.
(Added links to regional files for North Africa, South Africa, Asia, Western Europe, Eastern Europe, and Middle East.)

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