lua-users home
lua-l archive

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


This may be exactly what you want
https://github.com/terwin/luaOSM/blob/master/rockspec/luaosm-1.0-1.rockspec


On Thu, Nov 28, 2013 at 1:31 PM, Jose <[email protected]> wrote:
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 <[email protected]> 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