polartoolkit.draw_region

Contents

polartoolkit.draw_region#

draw_region(**kwargs)[source]#

Plot an interactive map, and use the “Draw a Rectangle” button to draw a rectangle and get the bounding region. Vertices will be returned as the output of the function.

Returns:

Returns a list of list of vertices for each polyline.

Return type:

list[Any]

Example

>>> import polartoolkit as ptk
...
>>> polygon = ptk.regions.draw_region()
>>> region = ptk.polygon_to_region(polygon, hemisphere="north")
Parameters:

kwargs (Any)