{"action":"created","issue":{"url":"https://api.github.com/repos/omniscale/imposm3/issues/108","repository_url":"https://api.github.com/repos/omniscale/imposm3","labels_url":"https://api.github.com/repos/omniscale/imposm3/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/omniscale/imposm3/issues/108/comments","events_url":"https://api.github.com/repos/omniscale/imposm3/issues/108/events","html_url":"https://github.com/omniscale/imposm3/issues/108","id":162819028,"number":108,"title":"Import custom relations","user":{"login":"edpop","id":13479292,"avatar_url":"https://avatars.githubusercontent.com/u/13479292?v=3","gravatar_id":"","url":"https://api.github.com/users/edpop","html_url":"https://github.com/edpop","followers_url":"https://api.github.com/users/edpop/followers","following_url":"https://api.github.com/users/edpop/following{/other_user}","gists_url":"https://api.github.com/users/edpop/gists{/gist_id}","starred_url":"https://api.github.com/users/edpop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edpop/subscriptions","organizations_url":"https://api.github.com/users/edpop/orgs","repos_url":"https://api.github.com/users/edpop/repos","events_url":"https://api.github.com/users/edpop/events{/privacy}","received_events_url":"https://api.github.com/users/edpop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-29T00:52:57Z","updated_at":"2016-06-29T03:40:48Z","closed_at":null,"body":"Hello.\r\nI have my own non-geometry relations similar to [associatedStreet](http://wiki.openstreetmap.org/wiki/Relation:associatedStreet).\r\n```xml\r\n<relation id=\"198\" version = \"1\" changeset=\"28864\" timestamp=\"2016-06-29T09:50:13Z\">\r\n  <member type=\"way\" ref=\"123\" role=\"road\"/>\r\n  <member type=\"way\" ref=\"1234\" role=\"road\"/>\r\n  <member type=\"way\" ref=\"12345\" role=\"building\"/>\r\n  <tag k=\"name\" v=\"Arseniev street\"/>\r\n  <tag k=\"addr:type\" v=\"street\"/>\r\n</relation>\r\n```\r\n\r\nI expect to get these tables:\r\n```yml\r\nstreet:\r\n  id\r\n  name\r\n\r\nroad:\r\n  the_geom\r\n  street_id\r\n```\r\n\r\nI try to get it reading an route example in [documentation](https://github.com/omniscale/imposm3/blob/master/docs/relations.rst).\r\nMy **mapping.yml**:\r\n```yml\r\ntables:\r\n  road:\r\n    type: relation_member\r\n    mapping:\r\n      addr:type: [street]\r\n    columns:\r\n    - name: the_geom\r\n      type: geometry\r\n    - name: street_id\r\n      type: id\r\n\r\n  street:\r\n    type: relation\r\n    mapping:\r\n      addr:type: [street]\r\n    columns:\r\n    - name: osm_id\r\n      type: id\r\n    - name: name\r\n      type: string\r\n      key: name\r\n```\r\n\r\nAfter importing this tables are empty. Can you explain, please, what is wrong?\r\n\r\nUbuntu 14.04\r\nImposm3 0.2.0dev-20160615-d495ca4\r\nPostgreSQL 9.5"},"comment":{"url":"https://api.github.com/repos/omniscale/imposm3/issues/comments/229248599","html_url":"https://github.com/omniscale/imposm3/issues/108#issuecomment-229248599","issue_url":"https://api.github.com/repos/omniscale/imposm3/issues/108","id":229248599,"user":{"login":"edpop","id":13479292,"avatar_url":"https://avatars.githubusercontent.com/u/13479292?v=3","gravatar_id":"","url":"https://api.github.com/users/edpop","html_url":"https://github.com/edpop","followers_url":"https://api.github.com/users/edpop/followers","following_url":"https://api.github.com/users/edpop/following{/other_user}","gists_url":"https://api.github.com/users/edpop/gists{/gist_id}","starred_url":"https://api.github.com/users/edpop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edpop/subscriptions","organizations_url":"https://api.github.com/users/edpop/orgs","repos_url":"https://api.github.com/users/edpop/repos","events_url":"https://api.github.com/users/edpop/events{/privacy}","received_events_url":"https://api.github.com/users/edpop/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T03:40:48Z","updated_at":"2016-06-29T03:40:48Z","body":"Yes, my relation is not assiciatedStreet, but similar (if some one converted it by imposm). The data is valid and JOSM reads it fine. This problem may be related to https://github.com/omniscale/imposm3/issues/12."}}
{"actor":{"display_login":"edpop"}}