[Tile-serving] [openstreetmap/osm2pgsql] Document "get_bbox" return structure (#1178)

mmd notifications at github.com
Thu May 21 07:18:13 UTC 2020


Flex documentation mentions method `get_bbox` as one of the functions provided by the object parameter table:

` get_bbox(): Get the bounding box of the current node or way.`

Unfortunately, there's no indication about the return type / signature of this function. Also, here's no example in flex-config/ * to demo its usage.

Based on the the C++ source code I concluded that I need to use something along the lines of  `local lon,lat,dummy,dummy = object.get_bbox()` to get a node's lat/lon values.

https://github.com/openstreetmap/osm2pgsql/blob/487bac707f2444f83e237272ea69ffe76fbcd3f1/src/output-flex.cpp#L527-L543, 





-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1178
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200521/36f1bd3a/attachment.htm>


More information about the Tile-serving mailing list