Open StreetMap 2 BNA file

Version: 0.22 (25 november 2011)

Introduction:

Tired of creating MAP files with BAHN. Iíve created a little tool to convert Open Street MAP data directly to a BNA map file that could be imported in BAHN.>

Description:

Benefits to create MAP files with GIS data is that the scale is correct

Also the boring job to read out maps and convert them to BAHN coordinates is not needed anymore. (At least GIS data should be available and this will be provided by OpenStreetMap)

How to INSTALL and USE ops2jbss.

Installing:

  1. Please Install Perl from Strawberry (http://strawberryperl.com/) or another Windows Perl distribution. (Prefered Perl 5.10+)
  2. Download the file (latest version 0.22 25 november 2011) ops2jbss.zip file. (33,907 bytes)
  3. With this version it is also possible to download the large files from www.geofabrik.de and parse them in one go, although it will take some time to process it. So download a file, uncompress it and pass the OSM file with option O to this program.
  4. Download version 0.20 (28 may 2010 ) ops2jbss_020.zip file. (33,634 bytes)
  5. Download version 0.19 (27 march 2010) ops2jbss_019.zip file. (33,566 bytes)
  6. Unzip this file in a separate directory e.g. c:\bahn381\gis

Use: (Also available as PDF file)

  1. Startup the perl-script ops2jbss.pl (it could be started multiply times)
  2. A page simular like

    Should appear

  3. Choose V to View
  4. A page simular like

    Should appear

  5. Choose C to Change the parameter (ops2jbss.ini file)
  6. A page simular like

    Should appear

  7. Choose K to Customize Rail and Road Types (ops2jbss.ini file)
  8. Choose S to extract the data from the internet and store it into a SQLite3 database

    In the mean time start up and extra session of the perl-script ops2jbss.pl because this could run for a long time

  9. Choose G to Generate the BNA file for import in BAHN
  10. Choose CCA to clean the Cache (It isn't nescesssarely, but if you want to start from scratch)
  11. Choose CDB to clean the database (It isn't nescesssarely, but if you want to start from scratch)
  12. Start up BAHN

  13. Open a new file

    And specify the number of elements

  14. Import the BNA import file

Any comment is welcome.
I will continue to develop the script

Examples:


Overijssel, Netherlands


London, Great Brittain


Luxembourg
To load the NT3 file select the zip file and unzip this LX.zip


Kuala Lumpur, Malaysia
To load the NT3 file select the zip file and unzip this KL.zip

Versions

Version 0.22: Posibility to download and import files from www.geofabrik.de (it saves a lot of download time)

Version 0.20: Better error handling for inputting single files

Version 0.19: Support for OSM Server Side Script see http://78.46.81.38/

Version 0.18: Extra Customizing possible for Rail and Road and Water (also possible to select NONE)

Version 0.16: Customizing possible for Rail and Road

> Version 0.14: UTM conversion possible, better support for extracting data

> Version 0.13: Selective possibility to load OSM files

Version 0.12: Subway and Tram added
Version 0.11: Serious bug in generator part found. (See is also shown)
Version 0.10: Basis Version.

Name and Email Address

My name is Bert Tijhuis.

Iím using for a couple of years BAHN now. It is a great program.

Please sent any comment to

domino at dse dot nl

Regards,

Last updated on 20 november 2011

Copyright (c) >2008,2011< <Bert Tijhuis>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.