-
-
Notifications
You must be signed in to change notification settings - Fork 111
Configuration File In Windows
Regina Obe edited this page Dec 4, 2015
·
3 revisions
If you installed PostGIS 2.2+ Bundle via StackBuilder, osm2pgrouting gets installed as well.
The osm2pgrouting executable and config files is installed in your postgres bin folder. So for example standard on PostgreSQL 9.5 would be C:\Program Files\PostgreSQL\9.5\bin
It's easiest to create a batch script to launch. something of the form
SET PGBIN=C:\Program Files\PostgreSQL\9.5\bin
@SET PGPORT=5444
@SET PGDATABASE=pgr
@SET PGPASSWORD=whatever
@SET LOAD_FILE=C:\data\small.osm
@SET PGHOST=locahost
%PGBIN%\osm2pgrouting -f C:\data\small.osm -d %PGDATABASE% -p %PGPORT% --conf=%PGBIN%\mapconfig_for_cars.xml
If you compiled yourself, then osm2pgrouting gets installed in c:\usr\share\bin and config files in c:\usr\share
Note I have only tested compiling for windows using Mingw64. Instructions are here:
Maintained by the pgRouting Community
Website: http://pgrouting.org