mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-02 19:56:39 +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
|
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:
|
if arguments.boundary_box:
|
||||||
boundary_box = BoundaryBox.from_text(arguments.boundary_box)
|
boundary_box = BoundaryBox.from_text(arguments.boundary_box)
|
||||||
if not boundary_box:
|
if not boundary_box:
|
||||||
fatal("Invalid boundary box.")
|
fatal("Invalid boundary box.")
|
||||||
|
if arguments.coordinates:
|
||||||
|
logging.warning(
|
||||||
|
"Boundary box is explicitly specified. Coordinates are ignored."
|
||||||
|
)
|
||||||
|
|
||||||
elif arguments.coordinates:
|
elif arguments.coordinates:
|
||||||
coordinates: Optional[np.ndarray] = None
|
coordinates: Optional[np.ndarray] = None
|
||||||
|
|
Loading…
Add table
Reference in a new issue