You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried map-machine tile --input test.osm.xml --boundary-box 121.462,24.963,121.667,25.198 --zoom 16
The program complains about AttributeError: 'NoneType' object has no attribute 'get_left_top'
I looked at the source code a bit, noticed that when in "--input"-specified branch, --boundary-box was never been ingested.
The original code set the view_box only by the bound elements in the input XML files.
But as stated in Generate a set of tiles, the --boundary-box argument should override other sources.
I've temporary fixed the problem by setting the view_box from arguments prior then XMLs.
Thanks for your fast response!
Since it's a quick fix, you can fix it directly.
Overall, this is a great project and tool, it's quite flexible and hustle-free with custom xml files.
I just stumbled upon this few days ago on the open-street-map wiki about rendering, and I got great result quite easily.
Thank you and the community.
map-machine/map_machine/slippy/tile.py
Line 477 in 014e11b
When I tried
map-machine tile --input test.osm.xml --boundary-box 121.462,24.963,121.667,25.198 --zoom 16
The program complains about
AttributeError: 'NoneType' object has no attribute 'get_left_top'
I looked at the source code a bit, noticed that when in "--input"-specified branch, --boundary-box was never been ingested.
The original code set the
view_box
only by thebound
elements in the input XML files.But as stated in Generate a set of tiles, the
--boundary-box
argument should override other sources.I've temporary fixed the problem by setting the view_box from arguments prior then XMLs.
Edward Chen
The text was updated successfully, but these errors were encountered: