coastline_gen simple coastline generalization
Here you can find an implementation of a simple raster based technique to generalize coastlines and other polygon features for map rendering. You can find some background information on the purpose of this in my essay on coastline generalization. The newest version of this tool is available on github.
The program is written in C++ and uses the CImg image processing library and should work on all platforms supported by it.
The source package includes a makefile for building. It also contains a test target that demonstrates use of the tool by generalizing the coastline of Greece and the Aegean sea (see image on the right, move mouse over to see a generalized version) from the sample data set linked below. If you want to see how a generalized coastline looks like in a practical example you can do so in the demonstration map.
Version 0.5 includes new functions for generalizing inland waterbodies. The new functions are not yet properly documented and the demo in the makefile has not been updated either.
This program is licensed under the GNU General Public License version 3.
- Documentation (also included in the package)
- coastline_gen-0.5.zip (22kB) version 0.5 source package.
- greece.sqlite (7MB) Sample data from
OpenStreetMap processed using OSMCoastline. This data is Copyright OpenStreetMap contributors and licensed under ODBL. You do not need to download this separately,
make testwill do that using wget.