lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


A Lua binding for readosm seems the most flexible approach (readosm is from spatialite, mentioned in previous answer)
http://www.gaia-gis.it/gaia-sins/readosm-1.0.0b-doxy-doc/index.html
https://www.gaia-gis.it/fossil/readosm/index

and then write this example in Lua (to compare to the C one)
http://www.gaia-gis.it/gaia-sins/readosm-1.0.0b-doxy-doc/test_osm2_8c-example.html


On Thu, Nov 28, 2013 at 10:21 AM, Alek Paunov <alex@declera.com> wrote:
Hi Geoff,


On 28.11.2013 08:57, Geoff Leyland wrote:
As it happens the other OSM format - PBF is based on protocol buffers and there’s a Lua protocol buffer implementation available.  However, as far as I can tell, the format is not as simple as loading the .proto and hitting go.

Very good tool/platform for analyzing XML volumes in general is BaseX (clever visualizations, xpath/xquery, FTS)

http://basex.org/products/download/all-downloads/

wget http://files.basex.org/releases/7.7.2/BaseX772.jar
java -jar BaseX772.jar

BTW, at the Lua Workshop2013, eXtraWay has been present, which possibly is something in the same vein, but I not have tried it yet
http://www.lua.org/wshop13.html#Capoccia
http://switch.dl.sourceforge.net/project/extraway/eXtraWay%20OpenPlatform/1.0/

Spatialite (impresive set if libraries organized as SQLite extensions) seems to have support for your format:
https://www.gaia-gis.it/fossil/spatialite-tools/wiki?name=OSM+tools

I think, all spatialite functionality is exposed in the GUI:
https://www.gaia-gis.it/fossil/spatialite_gui/index
https://www.gaia-gis.it/gaia-sins/index.html

Kind Regards,
Alek