omniscale / imposm3

Imposm imports OpenStreetMap data into PostGIS
http://imposm.org/docs/imposm3/latest/
Apache License 2.0
719 stars 157 forks source link

Relations not working? #96

Closed JanJakes closed 8 years ago

JanJakes commented 8 years ago

Are the relations working? My mapping goes like:

tables:
  destinations:
    type: relation
    fields: ...
    mapping: ...

  destination_members:
    type: relation_member
    fields: ...
    mapping: ...

tags:
  load_all: true

But I get the following error:

SQL Error: pq: Invalid type name "RELATION(2)" - valid ones are:
    POINT, MULTIPOINT,
    LINESTRING, MULTILINESTRING,
    POLYGON, MULTIPOLYGON,
    CIRCULARSTRING, COMPOUNDCURVE, MULTICURVE,
    CURVEPOLYGON, MULTISURFACE,
    GEOMETRY, GEOMETRYCOLLECTION,
    POINTM, MULTIPOINTM,
    LINESTRINGM, MULTILINESTRINGM,
    POLYGONM, MULTIPOLYGONM,
    CIRCULARSTRINGM, COMPOUNDCURVEM, MULTICURVEM
    CURVEPOLYGONM, MULTISURFACEM, TRIANGLE, TRIANGLEM,
    POLYHEDRALSURFACE, POLYHEDRALSURFACEM, TIN, TINM
    or GEOMETRYCOLLECTIONM in query SELECT AddGeometryColumn('import', 'osm_destinations', 'geometry', '3857', 'RELATION', 2);

I've tried installation from source and latest version from http://imposm.org/static/rel/ (including relations-dev).

JanJakes commented 8 years ago

Update: The error seems to occur when the relation table has geometry in its mapping ({name: geometry, type: geometry}).