hi,
I m trying to create a project using OSM coordinates, but it raised an error message.
Could you help me on it?
code:
from aequilibrae import Project
import sqlite3west = -49.334
south = -25.488
east = -46.751
north = -23.574
fldr = Diretorio_Saida
project = Project()
project.new(fldr)
now = datetime.now()
current_time = now.strftime("%H:%M:%S")
print("Current Time =", current_time)
# We can create from a bounding box or a named place.
# For the sake of this example, we will choose the small nation of Nauru.
project.network.create_from_osm(model_area = [west,south,east,north])
now = datetime.now()
current_time = now.strftime("%H:%M:%S")
print("Current Time =", current_time)
project.close()
error message:
Traceback (most recent call last):
File "/home/fabio/Documentos/OSM/./le_osm_box.py", line 44, in <module>
project.network.create_from_osm(model_area = [west,south,east,north])
File "/home/fabio/.local/lib/python3.10/site-packages/aequilibrae/project/network/network.py", line 168, in create_from_osm
model_area.bounds[0] < -180
AttributeError: 'list' object has no attribute 'bounds'
Thanks a lot
Fábio Emanuel