<jupyter_start><jupyter_text>mapaExecute the below cells to draw a rectangle of your choice, from which you want a 3D stl to be created.<jupyter_code>from mapa import convert_bbox_to_stl
from mapa.map import show_map
m, drawer = show_map()
m<jupyter_output><empty_output><jupyter_text>⚠️ First draw a rectangle on the above map before executing the next cell!<jupyter_code>path = convert_bbox_to_stl(
    bbox_geometry=drawer.last_draw["geometry"],
    output_file="mapa_output",
    model_size=200,
    z_offset=3.0,
    z_scale=2.0,
    max_res=False,
    cut_to_format_ratio=None,
    split_area_in_tiles="1*1",
    compress=True,
)<jupyter_output>INFO:mapa:⏳  converting bounding box to STL file with arguments: {'bbox_geometry': {'type': 'Polygon', 'coordinates': [[[-3.317262, 41.013549], [-3.317262, 41.183271], [-3.190925, 41.183271], [-3.190925, 41.013549], [-3.317262, 41.013549]]]}, 'as_ascii': False, 'model_size': 200, 'output_file': 'mapa_output', 'max_res': False, 'z_offset': 3.0, 'z_scale': 2.0, 'cut_to_format_ratio': None, 'split_area_in_tiles': '1*1', 'compress': True, 'allow_caching': True}
INFO:mapa:🚀  using cached tiff!
INFO:mapa:🎉  successfully generated STL file: /Users/ppqw/dev/geospacial/mapa/mapa/mapa_output.stl
INFO:mapa.zip:📦  compressing stl files: ['mapa_output.stl']
INFO:mapa.zip:✅  finished compressing STL files into: mapa_output.zip<jupyter_text>For more info on the available arguments, simply print the function docstrings:<jupyter_code>print(convert_bbox_to_stl.__doc__)<jupyter_output>Takes a GeoJSON containing a bounding box as input, fetches the required STAC GeoTIFFs for the
    given bounding box and creates a STL file with elevation data from the GeoTIFFs.

    Parameters
    ----------
    bbox_geometry : dict
        GeoJSON containing the coordinates of the bounding box, selected on the ipyleaflet widget. Usually the
        value of `drawer.last_draw["geometry"]` is used for this.
    as_ascii : bool, optional
        Save output STL as ascii file. If False, output file will be binary. By default False
    model_size : int, optional
        Desired size of the (larger side of the) generated 3d model in millimeter. By default 200
    output_file : str, optional
        Name and path to output file. File ending should not be provided. Mapa will add .zip or .stl depending
        on the settings. By default "output"
    max_res : bool, optional
        Whether maximum resolution should be used. Note, that this flag potentially increases compute time
     [...]
{'fraction_non_alphanumeric': 0.10197628458498023, 'fraction_numerical': 0.03873517786561265, 'mean_word_length': 4.350951374207188, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '279456', 'license': 'MIT', 'n_tokens_mistral': 909, 'n_tokens_neox': 849, 'n_words': 268, 'path': 'mapa/mapa.ipynb', 'repo_name': 'fgebhart/mapa', 'size': '2530'}