better name and add example data
This commit is contained in:
@@ -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
258317
data/ModelCoast.map
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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)")
|
||||
Reference in New Issue
Block a user