File:Middle America location map.svg

From imedwiki
Jump to navigation Jump to search

Original file(SVG file, nominally 1,053 × 707 pixels, file size: 179 KB)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

Description
English: Location map of Pacific Ocean.
  • Projection: Cylindrical equidistant projection, standard parallel 19.37° N
  • Area of interest:
  • N: 80.0° N
  • S: -10.0° N
  • W: 18-.0° E
  • E: 0.0° E
  • GMT projection: -JQ-78.5/19.37/15c
  • GMT region: -R-99/-58/6/32
  • Land, shoreline and borders: 1:50m Natural Earth Datasets
Date
Source Own work
Author Tentotwo

Shell script for generating the map using GMT

#!/bin/sh

# Set common options
PROJECTION=Q-78.5/19.37/15c
REGION=-99/-58/6/32
FILENAME=Middle_America_location_map.ps

# Get Natural Earth datafiles
echo "Downloading datafiles from naturalearthdata.com"
wget -nv -nc \
 http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/50m-coastline.zip\
 http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/50m-land.zip\
 http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/50m-admin-0-countries.zip
echo "...done\n"

echo "Inflating archives"
unzip 50m\*.zip
unzip 110m\*.zip
echo "...done\n"

echo "Converting shapefiles to GMT"
ogr2ogr -F GMT 50m_land.gmt 50m_land.shp
ogr2ogr -F GMT 50m_coastline.gmt 50m_coastline.shp
ogr2ogr -F GMT 50m_borders.gmt ne_50m_admin_0_boundary_lines_land.shp
echo "...done\n"

echo "Creating maps"
GMT psxy -m -J$PROJECTION -R$REGION --PAGE_COLOR=198/236/255  --POLAR_CAP=none --PAPER_MEDIA=A4  --BASEMAP_TYPE=plain --BASEMAP_AXES=NESW --FRAME_PEN=0.15p,black 50m_land.gmt -K -G254/254/233 > $FILENAME
GMT psxy -m -J$PROJECTION -R$REGION 50m_coastline.gmt -O -K -W0.535p,9/120/171  >> $FILENAME
GMT psxy -m -J$PROJECTION -R$REGION 50m_borders.gmt -O -W100/100/100  >> $FILENAME
echo "...done\n"

echo "You can now open $FILENAME in Inkscape to clean up the file and save it as SVG. You should add an ocean coloured background and simplify the graticules using CTRL+L."

gv $FILENAME

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

4 February 2012

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current14:12, 3 February 2012Thumbnail for version as of 14:12, 3 February 20121,053 × 707 (179 KB)Tentotwo