Running the coastline upload

From OpenStreetMap Wiki
Jump to: navigation, search

This page tells you how to run the Almien coastlines (PGS) coastline import script for your area

There are two ways to do this. You choose to have the upload script upload straight to the server, or you can choose to have the script output to a file which you can view in JOSM, and upload from there. In any case, the script constructs large ways with Tag:natural=coastline

Contents

Basics

 svn co http://svn.openstreetmap.org/applications/utils/import/coast_import/ 
 cd Data/
 sh download.sh
 unzip shapefile20.zip
 cd ../

Uploading direct to the server

 cd coast_import
 emacs coast_upload.pl
 perl coast_upload.pl 55.2 55.3 18.2 18.4 22

Uploading/Checking via JOSM

This is the preferred method for uploading coastline data.

Run the coast_josm.pl script. The arguments are the same as for the coast_upload.pl script except that the output file go to a file named coast+Y1+Y2+X1+X2.osm where the X/Y are the bounding box used. Simply load into JOSM, run the validator and any other checks you like and then hit upload.

Reasons why this method is preferred:

Uploading/Checking via JOSM without using a script (new!)

The following is an experimental service.

Go to Paul Lenz's web page http://www.lenz-online.de/divers/osm/, select a region and bounding box you are interested in, and the web service creates an OSM file containing the coastline data for you. Download this file and open it in JOSM; make any corrections necessary, and upload.

Now improved: the program creates an additional OSM file where all closed polygones are assumed to be islands, and their nodes are turned into a counter-clockwise order.


Prerequisites

To build a package in Debian or Ubuntu etc.: dh-make-perl [--notest] --build --cpan Geo::ShapeFile
Personal tools
Namespaces
Variants
Actions
site
Toolbox