#!/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
Licencia
Yo, el titular de los derechos de autor de esta obra, la publico en los términos de la siguiente licencia:
de compartir – de copiar, distribuir y transmitir el trabajo
de remezclar – de adaptar el trabajo
Bajo las siguientes condiciones:
atribución – Debes otorgar el crédito correspondiente, proporcionar un enlace a la licencia e indicar si realizaste algún cambio. Puedes hacerlo de cualquier manera razonable pero no de manera que sugiera que el licenciante te respalda a ti o al uso que hagas del trabajo.
compartir igual – En caso de mezclar, transformar o modificar este trabajo, deberás distribuir el trabajo resultante bajo la misma licencia o una compatible como el original.