Skip to content

Commit

Permalink
Update README.md (#30)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md

* Update README.md

* Update main.py
  • Loading branch information
Jochem-L authored Oct 10, 2023
1 parent 60f9a5f commit c6fdc11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Endpoint Badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fgeodetischeinfrastructuur.github.io%2Fgeodense%2Fbadge.json&style=flat-square&logo=pytest&logoColor=white)](https://geodetischeinfrastructuur.github.io/geodense/)

Python library and CLI tool to **check density** and **densify** linestring and polygon geometries using the geodesic great-circle calculation.
Python library and CLI tool to **check density** and **densify** linestring and polygon geometries using the geodesic (ellipsoidal great-circle) calculation.

Implementation based on [*Eenduidige transformatie van grenzen tussen ETRS89 en RD*](https://geoforum.nl/uploads/default/original/2X/c/c0795baa683bf3845c866ae4c576a880455be02a.pdf)

Expand Down Expand Up @@ -44,13 +44,13 @@ Use either `geodense` or the short `gden` alias:
```txt
$ geodense --help
Usage: geodense [-h] {densify,check-density} ...
Usage: geodense [-h] {list-formats,densify,check-density} ...
Check density of, and densify geometries using the geodesic (great-circle)
Check density of, and densify geometries using the geodesic (ellipsoidal great-circle)
calculation for accurate CRS transformations
Commands:
{densify,check-density}
{list-formats,densify,check-density}
Options:
-h, --help show this help message and exit
Expand Down
12 changes: 6 additions & 6 deletions src/geodense/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def main() -> None:
parser = argparse.ArgumentParser(
prog="geodense",
description="Check density of, and densify geometries \
using the geodesic (great-circle) calculation for accurate CRS transformations",
using the geodesic (ellipsoidal great-circle) calculation for accurate CRS transformations",
epilog="Created by https://www.nsgi.nl/",
formatter_class=RichHelpFormatter,
)
Expand All @@ -110,7 +110,7 @@ def main() -> None:
densify_parser = subparsers.add_parser(
"densify",
formatter_class=parser.formatter_class,
description="Densify (multi)polygon and (multi)linestring geometries along the great-circle using the GRS 1980 ellipsoid (with ETRS89 - EPSG:4258). See the list-formats command for a list of supported file formats. File format of input_file and output_file should match. When supplying 3D coordinates height is linear interpolated, for both geographic CRSs with ellipsoidal height and compound CRSs with physical height.",
description="Densify (multi)polygon and (multi)linestring geometries along the geodesic (ellipsoidal great-circle) in ETRS89 (EPSG:4258). See the list-formats command for a list of supported file formats. File format of input_file and output_file should match. When supplying 3D coordinates, the height is linear interpolated for both geographic CRSs with ellipsoidal height and for compound CRSs with physical height.",
)
densify_parser.add_argument("input_file", type=str)
densify_parser.add_argument("output_file", type=str)
Expand All @@ -134,14 +134,14 @@ def main() -> None:
"-p",
action="store_true",
default=False,
help="densify using source projection (great-circle distance is not used), not applicable when source crs is geographic",
help="densify using linear interpolation in source projection instead of the geodesic, not applicable when source CRS is geographic",
)

densify_parser.add_argument(
"--src-crs",
"-s",
type=str,
help="override source crs, if not specified the crs found in the input layer will be used",
help="override source CRS, if not specified then the CRS found in the input layer will be used",
default=None,
)

Expand All @@ -150,7 +150,7 @@ def main() -> None:
check_density_parser = subparsers.add_parser(
"check-density",
formatter_class=parser.formatter_class,
description="Check density of (multi)polygon and (multi)linestring geometries based on great-circle distance using the GRS 1980 ellipsoid (with ETRS89 - EPSG:4258). \
description="Check density of (multi)polygon and (multi)linestring geometries based on geodesic (ellipsoidal great-circle) distance in ETRS89 (EPSG:4258). \
When result of check is OK the program will return with exit code 0, when result \
is FAILED the program will return with exit code 1. See the list-formats command for a list of supported file formats.",
)
Expand All @@ -173,7 +173,7 @@ def main() -> None:
"--src-crs",
"-s",
type=str,
help="override source crs, if not specified the crs found in the input layer will be used",
help="override source CRS, if not specified then the CRS found in the input layer will be used",
default=None,
)
check_density_parser.set_defaults(func=check_density_cmd)
Expand Down

0 comments on commit c6fdc11

Please sign in to comment.