mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-29 10:17:23 +02:00
Issue #100: add warning for coordinates option.
If boundary box is explicitly specified, coordinates will be ignored.
This commit is contained in:
parent
a6851f166b
commit
fa92e684f4
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue