Command line interface#
The antimeridian CLI takes a GeoJSON file path as its input, and outputs a fixed GeoJSON dictionary to standard output.
Installation#
Install with pip:
pip install antimeridian[cli]
Usage#
antimeridian#
antimeridian [OPTIONS] COMMAND [ARGS]...
fix#
Fixes any antimeridian problems a GeoJSON file
Writes the fixed GeoJSON to standard output. If the filename is -
the
input GeoJSON is read from standard input.
antimeridian fix [OPTIONS] INFILE
Options
- --force-north-pole#
Force the fixed polygon to enclose the north pole
- Default:
False
- --force-south-pole#
Force the fixed polygon to enclose the south pole
- Default:
False
- --fix-winding, --no-fix-winding#
Automatically fix clockwise polygons to be the correct counterclockwise winding order
- Default:
True
Arguments
- INFILE#
Required argument
segment#
Segments the exterior coordinates of a GeoJSON file
Prints the resulting MultiLineString to standard output. Useful mostly for debugging problems with fix.
antimeridian segment [OPTIONS] INFILE
Options
- -i, --index <index>#
Return the single LineString at this index
Arguments
- INFILE#
Required argument