{"action":"created","issue":{"url":"https://api.github.com/repos/paulmach/orb/issues/2","repository_url":"https://api.github.com/repos/paulmach/orb","labels_url":"https://api.github.com/repos/paulmach/orb/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/paulmach/orb/issues/2/comments","events_url":"https://api.github.com/repos/paulmach/orb/issues/2/events","html_url":"https://github.com/paulmach/orb/issues/2","id":296346941,"number":2,"title":"Deep copy of FeatureCollection and Feature?","user":{"login":"s8mathur","id":5669765,"avatar_url":"https://avatars0.githubusercontent.com/u/5669765?v=4","gravatar_id":"","url":"https://api.github.com/users/s8mathur","html_url":"https://github.com/s8mathur","followers_url":"https://api.github.com/users/s8mathur/followers","following_url":"https://api.github.com/users/s8mathur/following{/other_user}","gists_url":"https://api.github.com/users/s8mathur/gists{/gist_id}","starred_url":"https://api.github.com/users/s8mathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s8mathur/subscriptions","organizations_url":"https://api.github.com/users/s8mathur/orgs","repos_url":"https://api.github.com/users/s8mathur/repos","events_url":"https://api.github.com/users/s8mathur/events{/privacy}","received_events_url":"https://api.github.com/users/s8mathur/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-12T11:43:56Z","updated_at":"2018-02-15T08:28:13Z","closed_at":"2018-02-15T08:28:13Z","author_association":"NONE","body":"Paul, \r\n\r\nDo you have any guidance on how to solve this use case?\r\n\r\nStep 1: I have an input GeoJSON that has dozens of hexagonal `Polygon`s for a given city. I unmarshal this and have a `FeatureCollection` or its wrapper struct initialized. \r\n\r\nStep 2: After binning a million geo-tagged input data samples from say three mobile networks (\"Sprint\", \"AT&T\", \"Verizon\") into each of the above-mentioned hexagonal bins, I have some statistics for a given network for each of the grids (`Features`) with the city. \r\n\r\n Step 3: I wish to now serialize three GeoJSONs (one per mobile network) with all of the information from Step (1) + stats from Step (2) inserted inside Feature->Properties->\"QoS\".  With these GeoJSONs, I have easy ability to build three independent data sources for the mobile networks. \r\n\r\nThe problem: Since we use `*FeatureCollection` and `*Feature` everywhere, the only way to initialize a fresh copy of `FeatureCollection` and `Feature` that can be stuffed with an independent copy of \"extra\" data (such as Sprint's metrics for a hexagon without clobbering Verizon's stats) is to Marshal and Unmarshal to text repeatedly. \r\n\r\nWhat am I missing? :) \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/paulmach/orb/issues/comments/365856565","html_url":"https://github.com/paulmach/orb/issues/2#issuecomment-365856565","issue_url":"https://api.github.com/repos/paulmach/orb/issues/2","id":365856565,"user":{"login":"s8mathur","id":5669765,"avatar_url":"https://avatars0.githubusercontent.com/u/5669765?v=4","gravatar_id":"","url":"https://api.github.com/users/s8mathur","html_url":"https://github.com/s8mathur","followers_url":"https://api.github.com/users/s8mathur/followers","following_url":"https://api.github.com/users/s8mathur/following{/other_user}","gists_url":"https://api.github.com/users/s8mathur/gists{/gist_id}","starred_url":"https://api.github.com/users/s8mathur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s8mathur/subscriptions","organizations_url":"https://api.github.com/users/s8mathur/orgs","repos_url":"https://api.github.com/users/s8mathur/repos","events_url":"https://api.github.com/users/s8mathur/events{/privacy}","received_events_url":"https://api.github.com/users/s8mathur/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T08:28:13Z","updated_at":"2018-02-15T08:28:13Z","author_association":"NONE","body":"Thank you! I will attempt to use the existing clone in geometry and properties. "}}
{"actor":{"display_login":"s8mathur"}}