{"action":"created","issue":{"url":"https://api.github.com/repos/mbloch/mapshaper/issues/305","repository_url":"https://api.github.com/repos/mbloch/mapshaper","labels_url":"https://api.github.com/repos/mbloch/mapshaper/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/mbloch/mapshaper/issues/305/comments","events_url":"https://api.github.com/repos/mbloch/mapshaper/issues/305/events","html_url":"https://github.com/mbloch/mapshaper/issues/305","id":365567781,"node_id":"MDU6SXNzdWUzNjU1Njc3ODE=","number":305,"title":"Partially OT: remove duplicate geometries","user":{"login":"aborruso","id":30607,"node_id":"MDQ6VXNlcjMwNjA3","avatar_url":"https://avatars1.githubusercontent.com/u/30607?v=4","gravatar_id":"","url":"https://api.github.com/users/aborruso","html_url":"https://github.com/aborruso","followers_url":"https://api.github.com/users/aborruso/followers","following_url":"https://api.github.com/users/aborruso/following{/other_user}","gists_url":"https://api.github.com/users/aborruso/gists{/gist_id}","starred_url":"https://api.github.com/users/aborruso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aborruso/subscriptions","organizations_url":"https://api.github.com/users/aborruso/orgs","repos_url":"https://api.github.com/users/aborruso/repos","events_url":"https://api.github.com/users/aborruso/events{/privacy}","received_events_url":"https://api.github.com/users/aborruso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-01T17:39:15Z","updated_at":"2018-10-01T18:51:57Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nis there a way to remove duplicate geometries in mapshaper?\r\n\r\nI think no, it's not its job, but probably there is some magic tip :)\r\n\r\nThank you\r\n"},"comment":{"url":"https://api.github.com/repos/mbloch/mapshaper/issues/comments/426021014","html_url":"https://github.com/mbloch/mapshaper/issues/305#issuecomment-426021014","issue_url":"https://api.github.com/repos/mbloch/mapshaper/issues/305","id":426021014,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjAyMTAxNA==","user":{"login":"mbloch","id":1232222,"node_id":"MDQ6VXNlcjEyMzIyMjI=","avatar_url":"https://avatars0.githubusercontent.com/u/1232222?v=4","gravatar_id":"","url":"https://api.github.com/users/mbloch","html_url":"https://github.com/mbloch","followers_url":"https://api.github.com/users/mbloch/followers","following_url":"https://api.github.com/users/mbloch/following{/other_user}","gists_url":"https://api.github.com/users/mbloch/gists{/gist_id}","starred_url":"https://api.github.com/users/mbloch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbloch/subscriptions","organizations_url":"https://api.github.com/users/mbloch/orgs","repos_url":"https://api.github.com/users/mbloch/repos","events_url":"https://api.github.com/users/mbloch/events{/privacy}","received_events_url":"https://api.github.com/users/mbloch/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T18:51:57Z","updated_at":"2018-10-01T18:51:57Z","author_association":"OWNER","body":"If you have one point per feature (as opposed to \"multi-point\" features), then the following method should work: \r\n\r\n* generate an identifier for each point based on the point's coordinates\r\n* use `-uniq` to remove the dupes.\r\n\r\nLike this:\r\n```\r\nmapshaper points.json -each 'key = this.x + \",\" + this.y' -uniq key -o unique_points.json\r\n\r\n```\r\n\r\nIf you have multi-points, then insert the `-explode` command before your `-each` command."}}
{"actor":{"display_login":"mbloch"}}