[pgrouting-dev] Free as in Freedom OSM converter

Hi All,

Is (for the moment) OSM2pgrouting a zombie project, or has there been work to port this for 2.0? I’m using OSM2po at the moment, but thought I’d check in on status of free as in freedom alternatives.

Thanks,
Best,
Steve

On Tue, Jun 11, 2013 at 11:11 AM, Stephen Mather
<mather.stephen@gmail.com>wrote:

Hi All,

Is (for the moment) OSM2pgrouting a zombie project, or has there been work
to port this for 2.0? I'm using OSM2po at the moment, but thought I'd
check in on status of free as in freedom alternatives.

Thanks,
Best,
Steve

Hi Steve,

osm2pgrouting needs some work, because

   1. Not compatible with PostGIS 2.0 and the new pgRouting 2.0
   2. Cannot handle the new OSM bigint ID's

It was some years ago written by Daniel Wendt and then hosted together with
pgRouting and like this found its way to Github.
There is not much activity except some modifications over the years. But it
has so far worked and just recently we have the issues as described before.

Currently pgRouting has priority. If someone wants to fix the issues with
osm2pgrouting, then that's very welcome.
There is a good alternative to process OSM data, named "osm2po". But it's
not released under Open Source license, if that's OK for you.

Daniel

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

Hi Daniel,

I noticed the bigint issue-- I suppose this only became a problem a few months back... .

Re: 2.0, any sense of what API changes would affect osm2pgrouting? I might poke under the hood to procrastinate from other work... .

Best,
Steve

On 06/10/2013 11:01 PM, Daniel Kastl wrote:

On Tue, Jun 11, 2013 at 11:11 AM, Stephen Mather <mather.stephen@gmail.com <mailto:mather.stephen@gmail.com>> wrote:

    Hi All,

    Is (for the moment) OSM2pgrouting a zombie project, or has there
    been work to port this for 2.0? I'm using OSM2po at the moment,
    but thought I'd check in on status of free as in freedom alternatives.

    Thanks,
    Best,
    Steve

Hi Steve,

osm2pgrouting needs some work, because

1. Not compatible with PostGIS 2.0 and the new pgRouting 2.0
2. Cannot handle the new OSM bigint ID's

It was some years ago written by Daniel Wendt and then hosted together with pgRouting and like this found its way to Github.
There is not much activity except some modifications over the years. But it has so far worked and just recently we have the issues as described before.

Currently pgRouting has priority. If someone wants to fix the issues with osm2pgrouting, then that's very welcome.
There is a good alternative to process OSM data, named "osm2po". But it's not released under Open Source license, if that's OK for you.

Daniel

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de <mailto:daniel.kastl@georepublic.de>
Web: http://georepublic.de/&gt;

_______________________________________________
pgrouting-dev mailing list
pgrouting-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-dev

On Tue, Jun 11, 2013 at 12:10 PM, Stephen Mather
<stephen@smathermather.com>wrote:

Hi Daniel,

I noticed the bigint issue-- I suppose this only became a problem a few
months back... .

There is an issue for this:
https://github.com/pgRouting/osm2pgrouting/issues/16

Re: 2.0, any sense of what API changes would affect osm2pgrouting? I
might poke under the hood to procrastinate from other work... .

It should only affect function names, mainly pgr_createTopology:
I think this file:
https://github.com/pgRouting/osm2pgrouting/blob/master/src/Export2DB.cpp

Daniel

Best,
Steve

On 06/10/2013 11:01 PM, Daniel Kastl wrote:

On Tue, Jun 11, 2013 at 11:11 AM, Stephen Mather <mather.stephen@gmail.com
> wrote:

Hi All,

Is (for the moment) OSM2pgrouting a zombie project, or has there been
work to port this for 2.0? I'm using OSM2po at the moment, but thought I'd
check in on status of free as in freedom alternatives.

Thanks,
Best,
Steve

Hi Steve,

osm2pgrouting needs some work, because

   1. Not compatible with PostGIS 2.0 and the new pgRouting 2.0
   2. Cannot handle the new OSM bigint ID's

It was some years ago written by Daniel Wendt and then hosted together
with pgRouting and like this found its way to Github.
There is not much activity except some modifications over the years. But
it has so far worked and just recently we have the issues as described
before.

Currently pgRouting has priority. If someone wants to fix the issues
with osm2pgrouting, then that's very welcome.
There is a good alternative to process OSM data, named "osm2po". But it's
not released under Open Source license, if that's OK for you.

Daniel

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

_______________________________________________
pgrouting-dev mailing listpgrouting-dev@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/pgrouting-dev

_______________________________________________
pgrouting-dev mailing list
pgrouting-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-dev

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

Daniel,

I'm not sure all of the pgrouting code supports bigint, in fact, I'm pretty sure most of it does not. We would need to change all id variables to be declared "long int" in the C code and

We should probably open a ticket for this and assign it to 2.1.

-Steve

On 6/10/2013 11:24 PM, Daniel Kastl wrote:

On Tue, Jun 11, 2013 at 12:10 PM, Stephen Mather
<stephen@smathermather.com <mailto:stephen@smathermather.com>> wrote:

    Hi Daniel,

    I noticed the bigint issue-- I suppose this only became a problem a
    few months back... .

There is an issue for this:
https://github.com/pgRouting/osm2pgrouting/issues/16

    Re: 2.0, any sense of what API changes would affect osm2pgrouting?
    I might poke under the hood to procrastinate from other work... .

It should only affect function names, mainly pgr_createTopology:
I think this file:
https://github.com/pgRouting/osm2pgrouting/blob/master/src/Export2DB.cpp

Daniel

    Best,
    Steve

    On 06/10/2013 11:01 PM, Daniel Kastl wrote:

    On Tue, Jun 11, 2013 at 11:11 AM, Stephen Mather
    <mather.stephen@gmail.com <mailto:mather.stephen@gmail.com>> wrote:

        Hi All,

        Is (for the moment) OSM2pgrouting a zombie project, or has
        there been work to port this for 2.0? I'm using OSM2po at the
        moment, but thought I'd check in on status of free as in
        freedom alternatives.

        Thanks,
        Best,
        Steve

    Hi Steve,

    osm2pgrouting needs some work, because

     1. Not compatible with PostGIS 2.0 and the new pgRouting 2.0
     2. Cannot handle the new OSM bigint ID's

    It was some years ago written by Daniel Wendt and then hosted
    together with pgRouting and like this found its way to Github.
    There is not much activity except some modifications over the
    years. But it has so far worked and just recently we have the
    issues as described before.

    Currently pgRouting has priority. If someone wants to fix the
    issues with osm2pgrouting, then that's very welcome.
    There is a good alternative to process OSM data, named "osm2po".
    But it's not released under Open Source license, if that's OK for you.

    Daniel

    --
    Georepublic UG & Georepublic Japan
    eMail: daniel.kastl@georepublic.de
    <mailto:daniel.kastl@georepublic.de>
    Web: http://georepublic.de/&gt;

    _______________________________________________
    pgrouting-dev mailing list
    pgrouting-dev@lists.osgeo.org <mailto:pgrouting-dev@lists.osgeo.org>
    http://lists.osgeo.org/mailman/listinfo/pgrouting-dev

    _______________________________________________
    pgrouting-dev mailing list
    pgrouting-dev@lists.osgeo.org <mailto:pgrouting-dev@lists.osgeo.org>
    http://lists.osgeo.org/mailman/listinfo/pgrouting-dev

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de <mailto:daniel.kastl@georepublic.de>
Web: http://georepublic.de/&gt;

_______________________________________________
pgrouting-dev mailing list
pgrouting-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-dev

On Tue, Jun 11, 2013 at 1:13 PM, Stephen Woodbridge <woodbri@swoodbridge.com

wrote:

Daniel,

I'm not sure all of the pgrouting code supports bigint, in fact, I'm
pretty sure most of it does not. We would need to change all id variables
to be declared "long int" in the C code and

We should probably open a ticket for this and assign it to 2.1.

Hi Steve,

I think the problem is not so much pgRouting as parsing OSM data, and the
current implementation cannot handle 32bit ID's.
There is lot of OSM data we don't want to use and which gets filtered by
osm2pgrouting (ie. POI's polygons, etc), but in OSM it has an ID.

It makes no sense to use original OSM ID's, but it's good to keep them as a
reference.
OSM network data also needs to be noded, so it's anyhow necessary to create
own ID's and I doubt we need bigint for that ... at least not for the near
future, I hope :wink:

Daniel

-Steve

On 6/10/2013 11:24 PM, Daniel Kastl wrote:

On Tue, Jun 11, 2013 at 12:10 PM, Stephen Mather
<stephen@smathermather.com <mailto:stephen@smathermather.**com<stephen@smathermather.com>>>
wrote:

    Hi Daniel,

    I noticed the bigint issue-- I suppose this only became a problem a
    few months back... .

There is an issue for this:
https://github.com/pgRouting/**osm2pgrouting/issues/16&lt;https://github.com/pgRouting/osm2pgrouting/issues/16&gt;

    Re: 2.0, any sense of what API changes would affect osm2pgrouting?
    I might poke under the hood to procrastinate from other work... .

It should only affect function names, mainly pgr_createTopology:
I think this file:
https://github.com/pgRouting/**osm2pgrouting/blob/master/src/**
Export2DB.cpp<https://github.com/pgRouting/osm2pgrouting/blob/master/src/Export2DB.cpp&gt;

Daniel

    Best,
    Steve

    On 06/10/2013 11:01 PM, Daniel Kastl wrote:

    On Tue, Jun 11, 2013 at 11:11 AM, Stephen Mather
    <mather.stephen@gmail.com <mailto:mather.stephen@gmail.**com<mather.stephen@gmail.com>>>
wrote:

        Hi All,

        Is (for the moment) OSM2pgrouting a zombie project, or has
        there been work to port this for 2.0? I'm using OSM2po at the
        moment, but thought I'd check in on status of free as in
        freedom alternatives.

        Thanks,
        Best,
        Steve

    Hi Steve,

    osm2pgrouting needs some work, because

     1. Not compatible with PostGIS 2.0 and the new pgRouting 2.0
     2. Cannot handle the new OSM bigint ID's

    It was some years ago written by Daniel Wendt and then hosted
    together with pgRouting and like this found its way to Github.
    There is not much activity except some modifications over the
    years. But it has so far worked and just recently we have the
    issues as described before.

    Currently pgRouting has priority. If someone wants to fix the
    issues with osm2pgrouting, then that's very welcome.
    There is a good alternative to process OSM data, named "osm2po".
    But it's not released under Open Source license, if that's OK for
you.

    Daniel

    --
    Georepublic UG & Georepublic Japan
    eMail: daniel.kastl@georepublic.de
    <mailto:daniel.kastl@**georepublic.de <daniel.kastl@georepublic.de>>
    Web: http://georepublic.de/&gt;

    ______________________________**_________________
    pgrouting-dev mailing list
    pgrouting-dev@lists.osgeo.org <mailto:pgrouting-dev@lists.**
osgeo.org <pgrouting-dev@lists.osgeo.org>>
    http://lists.osgeo.org/**mailman/listinfo/pgrouting-dev&lt;http://lists.osgeo.org/mailman/listinfo/pgrouting-dev&gt;

    ______________________________**_________________
    pgrouting-dev mailing list
    pgrouting-dev@lists.osgeo.org <mailto:pgrouting-dev@lists.**osgeo.org<pgrouting-dev@lists.osgeo.org>
>

    http://lists.osgeo.org/**mailman/listinfo/pgrouting-dev&lt;http://lists.osgeo.org/mailman/listinfo/pgrouting-dev&gt;

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de <mailto:daniel.kastl@**georepublic.de<daniel.kastl@georepublic.de>
>
Web: http://georepublic.de/&gt;

______________________________**_________________
pgrouting-dev mailing list
pgrouting-dev@lists.osgeo.org
http://lists.osgeo.org/**mailman/listinfo/pgrouting-dev&lt;http://lists.osgeo.org/mailman/listinfo/pgrouting-dev&gt;

______________________________**_________________
pgrouting-dev mailing list
pgrouting-dev@lists.osgeo.org
http://lists.osgeo.org/**mailman/listinfo/pgrouting-dev&lt;http://lists.osgeo.org/mailman/listinfo/pgrouting-dev&gt;

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

Hi Steve,

Today I have created a new “develop” branch [1] for osm2pgrouting, merged some pull requests, fixed conflicts and did some small changes.
If nothing went wrong, then the “develop” branch should now support 32bit ID’s and pgRouting 2.0 function names.

[1] https://github.com/pgRouting/osm2pgrouting/tree/develop

I just made one simple test with Bangladesh data and got 2 suspicious messages:

Classes table created
Adding tag types and classes to database…
ERROR: duplicate key value violates unique constraint “classes_pkey”
DETAIL: Key (id)=(100) already exists.
CONTEXT: COPY classes, line 28: “100 1 unclassified 1 50”

There is a new PRIMARY KEY added for the “id” attribute, so it will just fail to insert the same class id twice.
Not sure why this happens, but it seems no big issue. Before there was no unique constraint at all.

And in the end it reported

NOTICE: 0 out of 27919 edges processed
NOTICE: 10000 out of 27919 edges processed
NOTICE: 20000 out of 27919 edges processed
Create Topology failed:

···

On Tue, Jun 11, 2013 at 12:10 PM, Stephen Mather <stephen@smathermather.com> wrote:

Hi Daniel,

I noticed the bigint issue-- I suppose this only became a problem a few months back… .

Re: 2.0, any sense of what API changes would affect osm2pgrouting? I might poke under the hood to procrastinate from other work… .

Best,
Steve

On 06/10/2013 11:01 PM, Daniel Kastl wrote:

_______________________________________________
pgrouting-dev mailing list
[pgrouting-dev@lists.osgeo.org](mailto:pgrouting-dev@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/pgrouting-dev](http://lists.osgeo.org/mailman/listinfo/pgrouting-dev)


pgrouting-dev mailing list
pgrouting-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-dev


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

On Tue, Jun 11, 2013 at 11:11 AM, Stephen Mather <mather.stephen@gmail.com> wrote:

Hi All,

Is (for the moment) OSM2pgrouting a zombie project, or has there been work to port this for 2.0? I’m using OSM2po at the moment, but thought I’d check in on status of free as in freedom alternatives.

Thanks,
Best,
Steve

Hi Steve,

osm2pgrouting needs some work, because

  1. Not compatible with PostGIS 2.0 and the new pgRouting 2.0
  2. Cannot handle the new OSM bigint ID’s
    It was some years ago written by Daniel Wendt and then hosted together with pgRouting and like this found its way to Github.
    There is not much activity except some modifications over the years. But it has so far worked and just recently we have the issues as described before.

Currently pgRouting has priority. If someone wants to fix the issues with osm2pgrouting, then that’s very welcome.
There is a good alternative to process OSM data, named “osm2po”. But it’s not released under Open Source license, if that’s OK for you.

Daniel


Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de
Web: http://georepublic.de

Wos, I wasn't expecting a response so soone. I'll give your new version a test.

Best,
Steve

On 06/10/2013 11:01 PM, Daniel Kastl wrote:

On Tue, Jun 11, 2013 at 11:11 AM, Stephen Mather <mather.stephen@gmail.com <mailto:mather.stephen@gmail.com>> wrote:

    Hi All,

    Is (for the moment) OSM2pgrouting a zombie project, or has there
    been work to port this for 2.0? I'm using OSM2po at the moment,
    but thought I'd check in on status of free as in freedom alternatives.

    Thanks,
    Best,
    Steve

Hi Steve,

osm2pgrouting needs some work, because

1. Not compatible with PostGIS 2.0 and the new pgRouting 2.0
2. Cannot handle the new OSM bigint ID's

It was some years ago written by Daniel Wendt and then hosted together with pgRouting and like this found its way to Github.
There is not much activity except some modifications over the years. But it has so far worked and just recently we have the issues as described before.

Currently pgRouting has priority. If someone wants to fix the issues with osm2pgrouting, then that's very welcome.
There is a good alternative to process OSM data, named "osm2po". But it's not released under Open Source license, if that's OK for you.

Daniel

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de <mailto:daniel.kastl@georepublic.de>
Web: http://georepublic.de/&gt;

_______________________________________________
pgrouting-dev mailing list
pgrouting-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-dev

Cool. I got the same errors re: topology and unique contraints, so we'll see how it goes under actual use.

Best,
Steve

-------------------------------------------

Hi Steve,

Today I have created a new "develop" branch [1] for osm2pgrouting, merged
some pull requests, fixed conflicts and did some small changes.
If nothing went wrong, then the "develop" branch should now support 32bit
ID's and pgRouting 2.0 function names.

[1]https://github.com/pgRouting/osm2pgrouting/tree/develop

I just made one simple test with Bangladesh data and got 2 suspicious
messages:

Classes table created
Adding tag types and classes to database...
ERROR: duplicate key value violates unique constraint "classes_pkey"
DETAIL: Key (id)=(100) already exists.
CONTEXT: COPY classes, line 28: "100 1 unclassified 1 50"

There is a new PRIMARY KEY added for the "id" attribute, so it will just
fail to insert the same class id twice.
Not sure why this happens, but it seems no big issue. Before there was no
unique constraint at all.

And in the end it reported

NOTICE: 0 out of 27919 edges processed
NOTICE: 10000 out of 27919 edges processed
NOTICE: 20000 out of 27919 edges processed
Create Topology failed:
#########################
size of streets: 13123
size of splitted ways : 27919

But the network table actually looked OK, so maybe it's just the error
message that is wrong.
I need to look at this some time later.

If you have a time to test and make sure that it works with 32bit ID's,
that would be great.

Daniel

--------------------------------------

On 06/12/2013 11:39 PM, Stephen Mather wrote:

Wos, I wasn't expecting a response so soone. I'll give your new version a test.

Best,
Steve

On 06/10/2013 11:01 PM, Daniel Kastl wrote:

On Tue, Jun 11, 2013 at 11:11 AM, Stephen Mather <mather.stephen@gmail.com <mailto:mather.stephen@gmail.com>> wrote:

    Hi All,

    Is (for the moment) OSM2pgrouting a zombie project, or has there
    been work to port this for 2.0? I'm using OSM2po at the moment,
    but thought I'd check in on status of free as in freedom
    alternatives.

    Thanks,
    Best,
    Steve

Hi Steve,

osm2pgrouting needs some work, because

1. Not compatible with PostGIS 2.0 and the new pgRouting 2.0
2. Cannot handle the new OSM bigint ID's

It was some years ago written by Daniel Wendt and then hosted together with pgRouting and like this found its way to Github.
There is not much activity except some modifications over the years. But it has so far worked and just recently we have the issues as described before.

Currently pgRouting has priority. If someone wants to fix the issues with osm2pgrouting, then that's very welcome.
There is a good alternative to process OSM data, named "osm2po". But it's not released under Open Source license, if that's OK for you.

Daniel

--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl@georepublic.de <mailto:daniel.kastl@georepublic.de>
Web: http://georepublic.de/&gt;

_______________________________________________
pgrouting-dev mailing list
pgrouting-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-dev