├── .clang-tidy ├── .github ├── FUNDING.yml ├── actions │ ├── build │ │ └── action.yml │ ├── cmake │ │ └── action.yml │ ├── ctest │ │ └── action.yml │ ├── install-from-git │ │ └── action.yml │ ├── install-macos │ │ └── action.yml │ └── install-ubuntu │ │ └── action.yml └── workflows │ ├── ci.yml │ └── clang-tidy.yml ├── .gitignore ├── CHANGELOG.md ├── CMakeLists.txt ├── COPYING ├── README.md ├── cmake ├── FindLZ4.cmake ├── FindOsmium.cmake └── FindProtozero.cmake ├── coastline.map ├── coastline_sources.qgs ├── coastline_sqlite.qgs ├── doc ├── CMakeLists.txt ├── Doxyfile.in └── header.html ├── include └── gdalcpp.hpp ├── man ├── manpage.template ├── osmcoastline.md ├── osmcoastline_filter.md ├── osmcoastline_readmeta.md ├── osmcoastline_segments.md └── osmcoastline_ways.md ├── osmcoastline_readmeta ├── render_image.sh ├── runtest.sh.in ├── simplify_and_split_postgis ├── README ├── create_water_polygons.sql ├── setup_bbox_tiles.sql ├── setup_tables.sql ├── simplify_land_polygons.sql ├── split_land_polygons.sql └── split_tiles.sql ├── simplify_and_split_spatialite ├── create_grid_3857.sql ├── create_grid_4326.sql └── simplify.sql ├── src ├── CMakeLists.txt ├── coastline_polygons.cpp ├── coastline_polygons.hpp ├── coastline_ring.cpp ├── coastline_ring.hpp ├── coastline_ring_collection.cpp ├── coastline_ring_collection.hpp ├── nodegrid2opl.cpp ├── options.cpp ├── options.hpp ├── osmcoastline.cpp ├── osmcoastline_filter.cpp ├── osmcoastline_segments.cpp ├── osmcoastline_ways.cpp ├── output_database.cpp ├── output_database.hpp ├── return_codes.hpp ├── srs.cpp ├── srs.hpp ├── stats.hpp ├── util.hpp ├── version.cpp.in └── version.hpp ├── taginfo.json ├── test ├── CMakeLists.txt ├── init.sh └── t │ ├── gdal-driver-gpkg.sh │ ├── gdal-driver-shapefile.sh │ ├── invalid-complex-overlap.sh │ ├── invalid-direction.sh │ ├── invalid-duplicate-segments-1.sh │ ├── invalid-duplicate-segments-2.sh │ ├── invalid-node-id-mismatch.sh │ ├── invalid-node-with-coastline-tag.sh │ ├── invalid-part-reversed.sh │ ├── invalid-ring-not-closed.sh │ ├── invalid-self-intersection-on-closed-ring-one-way.sh │ ├── invalid-self-intersection-on-closed-ring-two-ways.sh │ ├── invalid-self-intersection-on-open-ring.sh │ ├── overlapping-islands.sh │ ├── usage-and-help.sh │ ├── valid-antimeridian.sh │ ├── valid-inland-sea-with-island.sh │ ├── valid-inland-sea.sh │ ├── valid-island-from-one-way.sh │ ├── valid-island-from-two-ways.sh │ └── valid-two-small-islands.sh └── testdata.osm /.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/.clang-tidy -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: "https://osmcode.org/sponsors.html" 2 | -------------------------------------------------------------------------------- /.github/actions/build/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/.github/actions/build/action.yml -------------------------------------------------------------------------------- /.github/actions/cmake/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/.github/actions/cmake/action.yml -------------------------------------------------------------------------------- /.github/actions/ctest/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/.github/actions/ctest/action.yml -------------------------------------------------------------------------------- /.github/actions/install-from-git/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/.github/actions/install-from-git/action.yml -------------------------------------------------------------------------------- /.github/actions/install-macos/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/.github/actions/install-macos/action.yml -------------------------------------------------------------------------------- /.github/actions/install-ubuntu/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/.github/actions/install-ubuntu/action.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/clang-tidy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/.github/workflows/clang-tidy.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/COPYING -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/README.md -------------------------------------------------------------------------------- /cmake/FindLZ4.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/cmake/FindLZ4.cmake -------------------------------------------------------------------------------- /cmake/FindOsmium.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/cmake/FindOsmium.cmake -------------------------------------------------------------------------------- /cmake/FindProtozero.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/cmake/FindProtozero.cmake -------------------------------------------------------------------------------- /coastline.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/coastline.map -------------------------------------------------------------------------------- /coastline_sources.qgs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/coastline_sources.qgs -------------------------------------------------------------------------------- /coastline_sqlite.qgs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/coastline_sqlite.qgs -------------------------------------------------------------------------------- /doc/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/doc/CMakeLists.txt -------------------------------------------------------------------------------- /doc/Doxyfile.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/doc/Doxyfile.in -------------------------------------------------------------------------------- /doc/header.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/doc/header.html -------------------------------------------------------------------------------- /include/gdalcpp.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/include/gdalcpp.hpp -------------------------------------------------------------------------------- /man/manpage.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/man/manpage.template -------------------------------------------------------------------------------- /man/osmcoastline.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/man/osmcoastline.md -------------------------------------------------------------------------------- /man/osmcoastline_filter.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/man/osmcoastline_filter.md -------------------------------------------------------------------------------- /man/osmcoastline_readmeta.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/man/osmcoastline_readmeta.md -------------------------------------------------------------------------------- /man/osmcoastline_segments.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/man/osmcoastline_segments.md -------------------------------------------------------------------------------- /man/osmcoastline_ways.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/man/osmcoastline_ways.md -------------------------------------------------------------------------------- /osmcoastline_readmeta: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/osmcoastline_readmeta -------------------------------------------------------------------------------- /render_image.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/render_image.sh -------------------------------------------------------------------------------- /runtest.sh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/runtest.sh.in -------------------------------------------------------------------------------- /simplify_and_split_postgis/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/simplify_and_split_postgis/README -------------------------------------------------------------------------------- /simplify_and_split_postgis/create_water_polygons.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/simplify_and_split_postgis/create_water_polygons.sql -------------------------------------------------------------------------------- /simplify_and_split_postgis/setup_bbox_tiles.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/simplify_and_split_postgis/setup_bbox_tiles.sql -------------------------------------------------------------------------------- /simplify_and_split_postgis/setup_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/simplify_and_split_postgis/setup_tables.sql -------------------------------------------------------------------------------- /simplify_and_split_postgis/simplify_land_polygons.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/simplify_and_split_postgis/simplify_land_polygons.sql -------------------------------------------------------------------------------- /simplify_and_split_postgis/split_land_polygons.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/simplify_and_split_postgis/split_land_polygons.sql -------------------------------------------------------------------------------- /simplify_and_split_postgis/split_tiles.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/simplify_and_split_postgis/split_tiles.sql -------------------------------------------------------------------------------- /simplify_and_split_spatialite/create_grid_3857.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/simplify_and_split_spatialite/create_grid_3857.sql -------------------------------------------------------------------------------- /simplify_and_split_spatialite/create_grid_4326.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/simplify_and_split_spatialite/create_grid_4326.sql -------------------------------------------------------------------------------- /simplify_and_split_spatialite/simplify.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/simplify_and_split_spatialite/simplify.sql -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/coastline_polygons.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/coastline_polygons.cpp -------------------------------------------------------------------------------- /src/coastline_polygons.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/coastline_polygons.hpp -------------------------------------------------------------------------------- /src/coastline_ring.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/coastline_ring.cpp -------------------------------------------------------------------------------- /src/coastline_ring.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/coastline_ring.hpp -------------------------------------------------------------------------------- /src/coastline_ring_collection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/coastline_ring_collection.cpp -------------------------------------------------------------------------------- /src/coastline_ring_collection.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/coastline_ring_collection.hpp -------------------------------------------------------------------------------- /src/nodegrid2opl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/nodegrid2opl.cpp -------------------------------------------------------------------------------- /src/options.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/options.cpp -------------------------------------------------------------------------------- /src/options.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/options.hpp -------------------------------------------------------------------------------- /src/osmcoastline.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/osmcoastline.cpp -------------------------------------------------------------------------------- /src/osmcoastline_filter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/osmcoastline_filter.cpp -------------------------------------------------------------------------------- /src/osmcoastline_segments.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/osmcoastline_segments.cpp -------------------------------------------------------------------------------- /src/osmcoastline_ways.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/osmcoastline_ways.cpp -------------------------------------------------------------------------------- /src/output_database.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/output_database.cpp -------------------------------------------------------------------------------- /src/output_database.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/output_database.hpp -------------------------------------------------------------------------------- /src/return_codes.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/return_codes.hpp -------------------------------------------------------------------------------- /src/srs.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/srs.cpp -------------------------------------------------------------------------------- /src/srs.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/srs.hpp -------------------------------------------------------------------------------- /src/stats.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/stats.hpp -------------------------------------------------------------------------------- /src/util.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/util.hpp -------------------------------------------------------------------------------- /src/version.cpp.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/version.cpp.in -------------------------------------------------------------------------------- /src/version.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/src/version.hpp -------------------------------------------------------------------------------- /taginfo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/taginfo.json -------------------------------------------------------------------------------- /test/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/CMakeLists.txt -------------------------------------------------------------------------------- /test/init.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/init.sh -------------------------------------------------------------------------------- /test/t/gdal-driver-gpkg.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/gdal-driver-gpkg.sh -------------------------------------------------------------------------------- /test/t/gdal-driver-shapefile.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/gdal-driver-shapefile.sh -------------------------------------------------------------------------------- /test/t/invalid-complex-overlap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-complex-overlap.sh -------------------------------------------------------------------------------- /test/t/invalid-direction.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-direction.sh -------------------------------------------------------------------------------- /test/t/invalid-duplicate-segments-1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-duplicate-segments-1.sh -------------------------------------------------------------------------------- /test/t/invalid-duplicate-segments-2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-duplicate-segments-2.sh -------------------------------------------------------------------------------- /test/t/invalid-node-id-mismatch.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-node-id-mismatch.sh -------------------------------------------------------------------------------- /test/t/invalid-node-with-coastline-tag.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-node-with-coastline-tag.sh -------------------------------------------------------------------------------- /test/t/invalid-part-reversed.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-part-reversed.sh -------------------------------------------------------------------------------- /test/t/invalid-ring-not-closed.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-ring-not-closed.sh -------------------------------------------------------------------------------- /test/t/invalid-self-intersection-on-closed-ring-one-way.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-self-intersection-on-closed-ring-one-way.sh -------------------------------------------------------------------------------- /test/t/invalid-self-intersection-on-closed-ring-two-ways.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-self-intersection-on-closed-ring-two-ways.sh -------------------------------------------------------------------------------- /test/t/invalid-self-intersection-on-open-ring.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/invalid-self-intersection-on-open-ring.sh -------------------------------------------------------------------------------- /test/t/overlapping-islands.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/overlapping-islands.sh -------------------------------------------------------------------------------- /test/t/usage-and-help.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/usage-and-help.sh -------------------------------------------------------------------------------- /test/t/valid-antimeridian.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/valid-antimeridian.sh -------------------------------------------------------------------------------- /test/t/valid-inland-sea-with-island.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/valid-inland-sea-with-island.sh -------------------------------------------------------------------------------- /test/t/valid-inland-sea.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/valid-inland-sea.sh -------------------------------------------------------------------------------- /test/t/valid-island-from-one-way.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/valid-island-from-one-way.sh -------------------------------------------------------------------------------- /test/t/valid-island-from-two-ways.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/valid-island-from-two-ways.sh -------------------------------------------------------------------------------- /test/t/valid-two-small-islands.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/test/t/valid-two-small-islands.sh -------------------------------------------------------------------------------- /testdata.osm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/osmcode/osmcoastline/HEAD/testdata.osm --------------------------------------------------------------------------------