better name and add example data

This commit is contained in:
Radovan Bast
2025-03-28 10:37:34 +01:00
parent 4f47c5f963
commit dcd4f473c3
3 changed files with 258320 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
# Coastline processing tools
- [extract-polygons.py](extract-polygons.py): Extract polygons from an SMS map file
- [extract-polygons-from-sms-map.py](extract-polygons-from-sms-map.py): Extract polygons from an SMS map file

258317
data/ModelCoast.map Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,7 @@ Extract polygons from SMS map file.
Run this script with --help to see available options and an example.
Example:
$ python extract-polygons.py --input data/Arabia_coast.map --output Polygon.txt
$ python extract-polygons-from-sms-map.py --input data/ModelCoast.map --output Polygon.txt
"""
import argparse
@@ -62,7 +62,7 @@ def write_polygons(polygons, file_name):
def parse_arguments():
parser = argparse.ArgumentParser(
description="Extract polygons from SMS map file.",
epilog="Example: $ python extract-polygons.py --input data/Arabia_coast.map --output Polygon.txt",
epilog="Example: $ python extract-polygons-from-sms-map.py --input data/ModelCoast.map --output Polygon.txt",
)
parser.add_argument("--input", required=True, help="Path to SMS map file (input)")