Skip to content

Change 'gid' column in 'ways' table to id' #290

Open
@skyNacho

Description

@skyNacho

Problem

After importing OSM data using osm2pgrouting, path calculations with pgRouting give an error: column "id" not found. Need to change by hand from "gid" in table "ways" to "id" to make it work.

To Reproduce

Just follow the instructions in the documentation (https://github.com/pgRouting/osm2pgrouting -> "how to use it" and https://docs.pgrouting.org/latest/en/pgRouting-concepts.html#getting-started)

Expectation

Following the instructions step by step, the process should work out of the box, without undocumented errors.

Sample Data

Platform/versions

PostgreSQL 11.11
PostGIS 3.1.1
pgRouting 3.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions