#!/bin/sh# Set common optionsPROJECTION=Q34/43.5/15c
REGION=24/44/39/48
FILENAME=Black_Sea_location_map.ps
# Get Natural Earth datafilesecho"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"
unzip50m\*.zip
unzip110m\*.zip
echo"...done\n"echo"Converting shapefiles to GMT"
ogr2ogr-FGMT50m_land.gmt50m_land.shp
ogr2ogr-FGMT50m_coastline.gmt50m_coastline.shp
ogr2ogr-FGMT50m_borders.gmtne_50m_admin_0_countries.shp
ogr2ogr-FGMT10m_maritime_borders.gmtne_10m_admin_0_boundary_lines_maritime_indicator.shp
echo"...done\n"echo"Creating maps"
GMTpsxy-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,black50m_land.gmt-K-G254/254/233>$FILENAME
GMTpsxy-m-J$PROJECTION-R$REGION50m_coastline.gmt-O-K-W0.535p,9/120/171>>$FILENAME
GMTpsxy-m-J$PROJECTION-R$REGION50m_borders.gmt-O-K-W100/100/100>>$FILENAME
EOF
GMTpsxy-m-J$PROJECTION-R$REGION10m_maritime_borders.gmt-O-W100/100/100>>$FILENAMEecho"...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
Conditions d’utilisation
Moi, en tant que détenteur des droits d’auteur sur cette œuvre, je la publie sous la licence suivante :
de partager – de copier, distribuer et transmettre cette œuvre
d’adapter – de modifier cette œuvre
Sous les conditions suivantes :
paternité – Vous devez donner les informations appropriées concernant l'auteur, fournir un lien vers la licence et indiquer si des modifications ont été faites. Vous pouvez faire cela par tout moyen raisonnable, mais en aucune façon suggérant que l’auteur vous soutient ou approuve l’utilisation que vous en faites.
partage à l’identique – Si vous modifiez, transformez, ou vous basez sur cette œuvre, vous devez distribuer votre contribution sous la même licence ou une licence compatible avec celle de l’original.