It took me about two hours to finally get this parser running on a windows 
environment so

I decided to write some helpful instructions on getting it to work in windows. 
I have attached

a .txt file. Thank you very much for showing me this parser. It works wonders. 
=)




INSTALLING OSM4ROUTING on WINDOWS
=================================

1. Install Cygwin (http://www.cygwin.com) by downloading and running setup.exe.
   Include the expat, swig, and python options during the installation.  Also
   include boost if desired.
   
2. Add /bin to your Cygwin path.  If you're using Cygwin's default bash shell,
   this can be done by modifying the .bash_profile file in your
   /home/[your user name] directory.  Just add this line at the end of the file:
   
    export PATH=/bin:`printenv PATH`
   
   Now every time you launch Cygwin, /bin will be included in the PATH.
   
3. Create a new folder for Osm4routing inside your Cygwin home directory
   (/home/[your user name]).  Unzip the contents of the Osm4routing distribution
   to there.
   
4. Open Cygwin and navigate to your folder from step 3.  Once there, set up
   Osm4routing with the command:
   
    python setup.py install
   
5. Once the install has completed, see the options for running Osm4routing with
   the command:

    python osm4routing.py --help
   
   In general, to parse the osm-format file foo.osm into two CSV files
   containing node and edge information, use the command:
   
    python osm4routing.py foo.osm


Troubleshooting
---------------

If the install in step 4 fails with a "fork failed: resource temporarily
unavailable" or similar message, you will need to run rebaseall.  To do this:

- Close Cygwin and all associated processes.

- Open a Windows command prompt (cmd.exe) with administrator privileges.

- Run the following commands (replace the path in cd with wherever your Cygwin
  installation is):

   cd \cygwin\bin
   ash
   PATH=. rebaseall -v
    
- Close the Windows command prompt, re-open Cygwin, and try step 4 once more.
_______________________________________________
Routing mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/routing

Reply via email to