[OSRM-talk] OSRM - how to Extract Mapdata from other Sources - shape file format
Rajendra Sarangi
racx at hotmail.com
Mon Aug 5 13:41:10 UTC 2013
Hi
How can I use map data available in shape files and pgsql formats to use in OSRM ?
Is there any predefined schema of mapdata in shape format which can be used by the OSRM extracter or similar tool to create the required map data?
Raj
> From: osrm-talk-request at openstreetmap.org
> Subject: OSRM-talk Digest, Vol 8, Issue 2
> To: osrm-talk at openstreetmap.org
> Date: Mon, 5 Aug 2013 12:00:38 +0000
>
> Send OSRM-talk mailing list submissions to
> osrm-talk at openstreetmap.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.openstreetmap.org/listinfo/osrm-talk
> or, via email, send a message with subject or body 'help' to
> osrm-talk-request at openstreetmap.org
>
> You can reach the person managing the list at
> osrm-talk-owner at openstreetmap.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of OSRM-talk digest..."
>
>
> Today's Topics:
>
> 1. Instruction for compiling and running OSRM (Paul Schulz)
> 2. Re: Instruction for compiling and running OSRM (Nils Liebelt)
> 3. Re: Instruction for compiling and running OSRM (Emil Tin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 5 Aug 2013 14:11:44 +0930
> From: Paul Schulz <paul at mawsonlakes.org>
> To: osrm-talk at openstreetmap.org
> Subject: [OSRM-talk] Instruction for compiling and running OSRM
> Message-ID:
> <CAGt04nZeLxx0dL2ip2u0=nu8=3XwBYEpdznWndw=FO8jTGUJfg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Greetings,
>
> After sucessfully building OSRM as per instructions here:
> https://github.com/DennisOSRM/Project-OSRM/wiki/Building%20OSRM
> I was getting the error below when trying to run 'osrm-extract' (with the
> appropriate profile.lua link)
>
> If I move the programs up a directory try again, it runs sucessfully.
> I couldn't see this documented anywhere in the wiki.
>
> paul at blue:~/git/Project-OSRM/build$ ./osrm-extract adelaide.osm
> [i /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using
> script profile.lua
> [! [! /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp[!
> /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:95]
> profile.lua:2: module 'lib/access' not found:
> no field package.preload['lib/access']
> no file '/lib/access.lua'
> no file 'profiles/lib/access.lua'
> no file './lib/access.lua'
> no file '/usr/local/share/lua/5.1/lib/access.lua'
> no file '/usr/local/share/lua/5.1/lib/access/init.lua'
> no file '/usr/local/lib/lua/5.1/lib/access.lua'
> no file '/usr/local/lib/lua/5.1/lib/access/init.lua'
> no file '/usr/share/lua/5.1/lib/access.lua'
> no file '/usr/share/lua/5.1/lib/access/init.lua'
> no file './lib/access.so'
> no file '/usr/local/lib/lua/5.1/lib/access.so'
> no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lib/access.so'
> no file '/usr/lib/lua/5.1/lib/access.so'
> no file '/usr/local/lib/lua/5.1/loadall.so' occured in scripting block
> :[! /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:95[!
> /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:95]
> profile.lua:2: module 'lib/access' not found:
> no field package.preload['lib/access']
> no file '/lib/access.lua'
> no file 'profiles/lib/access.lua'
> no file './lib/access.lua'
> no file '/usr/local/share/lua/5.1/lib/access.lua'
> no file '/usr/local/share/lua/5.1/lib/access/init.lua'
> no file '/usr/local/lib/lua/5.1/lib/access.lua'
> no file '/usr/local/lib/lua/5.1/lib/access/init.lua'
> no file '/usr/share/lua/5.1/lib/access.lua'
> no file '/usr/share/lua/5.1/lib/access/init.lua'
> no file './lib/access.so'
> no file '/usr/local/lib/lua/5.1/lib/access.so'
> no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lib/access.so'
> no file '/usr/lib/lua/5.1/lib/access.so'
> no file '/usr/local/lib/lua/5.1/loadall.so' occured in scripting block
> ] profile.lua:2: module 'lib/access' not found:
> no field package.preload['lib/access']
> no file '/lib/access.lua'
> no file 'profiles/lib/access.lua'
> no file './lib/access.lua'
> no file '/usr/local/share/lua/5.1/lib/access.lua'
> no file '/usr/local/share/lua/5.1/lib/access/init.lua'
> no file '/usr/local/lib/lua/5.1/lib/access.lua'
> no file '/usr/local/lib/lua/5.1/lib/access/init.lua'
> no file '/usr/share/lua/5.1/lib/access.lua'
> no file '/usr/share/lua/5.1/lib/access/init.lua'
> no file './lib/access.so'
> no file '/usr/local/lib/lua/5.1/lib/access.so'
> no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lib/access.so'
> no file '/usr/lib/lua/5.1/lib/access.so'
> no file '/usr/local/lib/lua/5.1/loadall.so'
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20130805/6aef5285/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 5 Aug 2013 11:31:59 +0200
> From: Nils Liebelt <nils.liebelt at serie-a.de>
> To: osrm-talk at openstreetmap.org
> Subject: Re: [OSRM-talk] Instruction for compiling and running OSRM
> Message-ID:
> <CAD=MfUhGpFphJ5t0ycecu+yMkV8ne_Fvr_4X=4qsVBBjAYsumg at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Paul,
>
> I think the lua script is not accessable to executable (osrm-extract).
> If you compiled the binaries underneath the "build" dir.
> You also have to move the lua (including the lib dir) underneath the build path.
>
> You can try to create symlinks for it:
> cd build
> ln -s ../profile.lua profile.lua
> ln -s ../profiles/llb lib
>
>
> Regards,
>
> Nils
>
> 2013/8/5 Paul Schulz <paul at mawsonlakes.org>:
> > Greetings,
> >
> > After sucessfully building OSRM as per instructions here:
> > https://github.com/DennisOSRM/Project-OSRM/wiki/Building%20OSRM
> > I was getting the error below when trying to run 'osrm-extract' (with the
> > appropriate profile.lua link)
> >
> > If I move the programs up a directory try again, it runs sucessfully.
> > I couldn't see this documented anywhere in the wiki.
> >
> > paul at blue:~/git/Project-OSRM/build$ ./osrm-extract adelaide.osm
> > [i /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25] Using
> > script profile.lua
> > [! [! /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp[!
> > /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:95]
> > profile.lua:2: module 'lib/access' not found:
> > no field package.preload['lib/access']
> > no file '/lib/access.lua'
> > no file 'profiles/lib/access.lua'
> > no file './lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access/init.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access/init.lua'
> > no file '/usr/share/lua/5.1/lib/access.lua'
> > no file '/usr/share/lua/5.1/lib/access/init.lua'
> > no file './lib/access.so'
> > no file '/usr/local/lib/lua/5.1/lib/access.so'
> > no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lib/access.so'
> > no file '/usr/lib/lua/5.1/lib/access.so'
> > no file '/usr/local/lib/lua/5.1/loadall.so' occured in scripting block
> > :[! /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:95[!
> > /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:95]
> > profile.lua:2: module 'lib/access' not found:
> > no field package.preload['lib/access']
> > no file '/lib/access.lua'
> > no file 'profiles/lib/access.lua'
> > no file './lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access/init.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access/init.lua'
> > no file '/usr/share/lua/5.1/lib/access.lua'
> > no file '/usr/share/lua/5.1/lib/access/init.lua'
> > no file './lib/access.so'
> > no file '/usr/local/lib/lua/5.1/lib/access.so'
> > no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lib/access.so'
> > no file '/usr/lib/lua/5.1/lib/access.so'
> > no file '/usr/local/lib/lua/5.1/loadall.so' occured in scripting block
> > ] profile.lua:2: module 'lib/access' not found:
> > no field package.preload['lib/access']
> > no file '/lib/access.lua'
> > no file 'profiles/lib/access.lua'
> > no file './lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access/init.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access/init.lua'
> > no file '/usr/share/lua/5.1/lib/access.lua'
> > no file '/usr/share/lua/5.1/lib/access/init.lua'
> > no file './lib/access.so'
> > no file '/usr/local/lib/lua/5.1/lib/access.so'
> > no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lib/access.so'
> > no file '/usr/lib/lua/5.1/lib/access.so'
> > no file '/usr/local/lib/lua/5.1/loadall.so'
> >
> > _______________________________________________
> > OSRM-talk mailing list
> > OSRM-talk at openstreetmap.org
> > http://lists.openstreetmap.org/listinfo/osrm-talk
> >
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 5 Aug 2013 11:34:33 +0200
> From: Emil Tin <ZF0F at tmf.kk.dk>
> To: "'osrm-talk at openstreetmap.org'" <osrm-talk at openstreetmap.org>
> Subject: Re: [OSRM-talk] Instruction for compiling and running OSRM
> Message-ID:
> <7A53EDED2901E044A722DB78B2A8F4385D9D483922 at KK-MAILBOX04.kk.dk>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> What platform are you on?
>
> I looked into modifying the code so that it works with symlinks, but it seemed to work on mac.
>
>
>
> Kind regards,
>
> Emil Tin
> IT- and Process Specialist
> Traffic Design
> ________________________________
> CITY OF COPENHAGEN
> The Technical and Environmental Administration
> Traffic Department
>
> Islands Brygge 37 V?r. 118
> Postboks 450
> 2300 K?benhavn S
>
> Telefon +45 2369 5986
> Email ZF0F at tmf.kk.dk
> EAN 5798009493149
>
>
>
>
> -----Oprindelig meddelelse-----
> Fra: Nils Liebelt [mailto:nils.liebelt at serie-a.de]
> Sendt: 5. august 2013 11:32
> Til: osrm-talk at openstreetmap.org
> Emne: Re: [OSRM-talk] Instruction for compiling and running OSRM
>
> Hi Paul,
>
> I think the lua script is not accessable to executable (osrm-extract).
> If you compiled the binaries underneath the "build" dir.
> You also have to move the lua (including the lib dir) underneath the build path.
>
> You can try to create symlinks for it:
> cd build
> ln -s ../profile.lua profile.lua
> ln -s ../profiles/llb lib
>
>
> Regards,
>
> Nils
>
> 2013/8/5 Paul Schulz <paul at mawsonlakes.org>:
> > Greetings,
> >
> > After sucessfully building OSRM as per instructions here:
> > https://github.com/DennisOSRM/Project-OSRM/wiki/Building%20OSRM
> > I was getting the error below when trying to run 'osrm-extract' (with
> > the appropriate profile.lua link)
> >
> > If I move the programs up a directory try again, it runs sucessfully.
> > I couldn't see this documented anywhere in the wiki.
> >
> > paul at blue:~/git/Project-OSRM/build$ ./osrm-extract adelaide.osm [i
> > /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:25]
> > Using script profile.lua [! [!
> > /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp[!
> > /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:95]
> > profile.lua:2: module 'lib/access' not found:
> > no field package.preload['lib/access'] no file '/lib/access.lua'
> > no file 'profiles/lib/access.lua'
> > no file './lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access/init.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access/init.lua'
> > no file '/usr/share/lua/5.1/lib/access.lua'
> > no file '/usr/share/lua/5.1/lib/access/init.lua'
> > no file './lib/access.so'
> > no file '/usr/local/lib/lua/5.1/lib/access.so'
> > no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lib/access.so'
> > no file '/usr/lib/lua/5.1/lib/access.so'
> > no file '/usr/local/lib/lua/5.1/loadall.so' occured in scripting block
> > :[! /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:95[!
> > /home/paul/git/Project-OSRM/Extractor/ScriptingEnvironment.cpp:95]
> > profile.lua:2: module 'lib/access' not found:
> > no field package.preload['lib/access'] no file '/lib/access.lua'
> > no file 'profiles/lib/access.lua'
> > no file './lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access/init.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access/init.lua'
> > no file '/usr/share/lua/5.1/lib/access.lua'
> > no file '/usr/share/lua/5.1/lib/access/init.lua'
> > no file './lib/access.so'
> > no file '/usr/local/lib/lua/5.1/lib/access.so'
> > no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lib/access.so'
> > no file '/usr/lib/lua/5.1/lib/access.so'
> > no file '/usr/local/lib/lua/5.1/loadall.so' occured in scripting block
> > ] profile.lua:2: module 'lib/access' not found:
> > no field package.preload['lib/access'] no file '/lib/access.lua'
> > no file 'profiles/lib/access.lua'
> > no file './lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access.lua'
> > no file '/usr/local/share/lua/5.1/lib/access/init.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access.lua'
> > no file '/usr/local/lib/lua/5.1/lib/access/init.lua'
> > no file '/usr/share/lua/5.1/lib/access.lua'
> > no file '/usr/share/lua/5.1/lib/access/init.lua'
> > no file './lib/access.so'
> > no file '/usr/local/lib/lua/5.1/lib/access.so'
> > no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lib/access.so'
> > no file '/usr/lib/lua/5.1/lib/access.so'
> > no file '/usr/local/lib/lua/5.1/loadall.so'
> >
> > _______________________________________________
> > OSRM-talk mailing list
> > OSRM-talk at openstreetmap.org
> > http://lists.openstreetmap.org/listinfo/osrm-talk
> >
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osrm-talk
>
>
>
> ------------------------------
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osrm-talk
>
>
> End of OSRM-talk Digest, Vol 8, Issue 2
> ***************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20130805/25bdaa65/attachment-0001.html>
More information about the OSRM-talk
mailing list