{"action":"created","issue":{"url":"https://api.github.com/repos/hotosm/osm-export-tool2/issues/130","repository_url":"https://api.github.com/repos/hotosm/osm-export-tool2","labels_url":"https://api.github.com/repos/hotosm/osm-export-tool2/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/hotosm/osm-export-tool2/issues/130/comments","events_url":"https://api.github.com/repos/hotosm/osm-export-tool2/issues/130/events","html_url":"https://github.com/hotosm/osm-export-tool2/issues/130","id":181982357,"number":130,"title":"Export issues (in Haiti); lots of points/lines exported, can't limit to one type of feature?","user":{"login":"PaulUithol","id":670670,"avatar_url":"https://avatars.githubusercontent.com/u/670670?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulUithol","html_url":"https://github.com/PaulUithol","followers_url":"https://api.github.com/users/PaulUithol/followers","following_url":"https://api.github.com/users/PaulUithol/following{/other_user}","gists_url":"https://api.github.com/users/PaulUithol/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulUithol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulUithol/subscriptions","organizations_url":"https://api.github.com/users/PaulUithol/orgs","repos_url":"https://api.github.com/users/PaulUithol/repos","events_url":"https://api.github.com/users/PaulUithol/events{/privacy}","received_events_url":"https://api.github.com/users/PaulUithol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-10T10:32:05Z","updated_at":"2016-11-02T04:55:20Z","closed_at":null,"body":"Some observations from doing some exports for Haiti (for inclusion in the HDX). These probably apply more broadly. As we'd like to automate these (see #126), we'll need to find a way around both of these. See the test export at http://export.hotosm.org/en/exports/150ae762-eb56-4071-9af6-97281e25c70c/. The preset file only request the following:\n\n```\n<item name=\"Building\" type=\"closedway,relation\">\n    <combo key=\"building\" values=\"yes,commercial,residential\"/>\n    <text key=\"name\"/>\n</item>\n```\n\nThis yields shapefiles with the following:\n- A great deal of points and lines? They're nodes like [this church](http://www.openstreetmap.org/node/1167000185#map=19/18.61537/-72.32096), which do have a `name` attribute. These points/lines never seem to get discarded. However, the final export doesn't actually contain the `name` attribute, just geometry and the `osm_id`.\n- In the polygon shapefile, also all features that aren't buildings but do have a `name`. Meaning you need to export, then move to QGis for an additional filter step (`building IN ('yes','commercial','residential')`).\n\nThe first one seems like a bug to me.\n\nNot sure what to do about the second one, any ideas? As far as I can tell, it's related to using JOSM preset files as a querying mechanism, where you can't really be very specific, for example by querying \"I want these features (buildings), and for those features give me the following list of attributes: x, y and z\"? Or is there another way to do that currently?\n"},"comment":{"url":"https://api.github.com/repos/hotosm/osm-export-tool2/issues/comments/257772525","html_url":"https://github.com/hotosm/osm-export-tool2/issues/130#issuecomment-257772525","issue_url":"https://api.github.com/repos/hotosm/osm-export-tool2/issues/130","id":257772525,"user":{"login":"mojodna","id":45,"avatar_url":"https://avatars.githubusercontent.com/u/45?v=3","gravatar_id":"","url":"https://api.github.com/users/mojodna","html_url":"https://github.com/mojodna","followers_url":"https://api.github.com/users/mojodna/followers","following_url":"https://api.github.com/users/mojodna/following{/other_user}","gists_url":"https://api.github.com/users/mojodna/gists{/gist_id}","starred_url":"https://api.github.com/users/mojodna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojodna/subscriptions","organizations_url":"https://api.github.com/users/mojodna/orgs","repos_url":"https://api.github.com/users/mojodna/repos","events_url":"https://api.github.com/users/mojodna/events{/privacy}","received_events_url":"https://api.github.com/users/mojodna/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T04:55:20Z","updated_at":"2016-11-02T04:55:20Z","body":"Since presets aren't intended as filters, we'd either need to assume \"AND\" or \"OR\" for each key included in an `item`. At the moment, the choice appears to be \"OR\". Changing that to \"AND\" could produce a different set of problems.\r\n\r\n[`osmfilter`](https://wiki.openstreetmap.org/wiki/Osmfilter) is used under the hood, so we could store a separate filter string (initially derived from the presets) that could be modified to do more advanced filtering that can't be described just by using presets."}}
{"actor":{"display_login":"mojodna"}}