Issue #100: add warning for coordinates option.

If boundary box is explicitly specified, coordinates will be ignored.
This commit is contained in:
Sergey Vartanov 2022-10-11 22:22:35 +04:00
parent a6851f166b
commit fa92e684f4

View file

@ -281,10 +281,16 @@ def render_map(arguments: argparse.Namespace) -> None:
boundary_box: Optional[BoundaryBox] = None
# If boundary box is specified explicitly, use it or stop the rendering
# process if the box is invalid.
if arguments.boundary_box:
boundary_box = BoundaryBox.from_text(arguments.boundary_box)
if not boundary_box:
fatal("Invalid boundary box.")
if arguments.coordinates:
logging.warning(
"Boundary box is explicitly specified. Coordinates are ignored."
)
elif arguments.coordinates:
coordinates: Optional[np.ndarray] = None