{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/cardboard/issues/173","repository_url":"https://api.github.com/repos/mapbox/cardboard","labels_url":"https://api.github.com/repos/mapbox/cardboard/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/cardboard/issues/173/comments","events_url":"https://api.github.com/repos/mapbox/cardboard/issues/173/events","html_url":"https://github.com/mapbox/cardboard/issues/173","id":165443586,"number":173,"title":"Add support for null geometry","user":{"login":"mcwhittemore","id":1551510,"avatar_url":"https://avatars.githubusercontent.com/u/1551510?v=3","gravatar_id":"","url":"https://api.github.com/users/mcwhittemore","html_url":"https://github.com/mcwhittemore","followers_url":"https://api.github.com/users/mcwhittemore/followers","following_url":"https://api.github.com/users/mcwhittemore/following{/other_user}","gists_url":"https://api.github.com/users/mcwhittemore/gists{/gist_id}","starred_url":"https://api.github.com/users/mcwhittemore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcwhittemore/subscriptions","organizations_url":"https://api.github.com/users/mcwhittemore/orgs","repos_url":"https://api.github.com/users/mcwhittemore/repos","events_url":"https://api.github.com/users/mcwhittemore/events{/privacy}","received_events_url":"https://api.github.com/users/mcwhittemore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-13T23:21:53Z","updated_at":"2016-07-29T19:32:22Z","closed_at":null,"body":"Currently cardboard [doesn't view null geometry as valid](https://github.com/mapbox/cardboard/blob/master/lib/utils.js#L82-L83) even though it is valid in GeoJSON. At first I thought that this was OK but I've had a few ideas recently that have been hindered by not being able to have features with no geometry set. What is the reason cardboard doesn't support this?"},"comment":{"url":"https://api.github.com/repos/mapbox/cardboard/issues/comments/236273096","html_url":"https://github.com/mapbox/cardboard/issues/173#issuecomment-236273096","issue_url":"https://api.github.com/repos/mapbox/cardboard/issues/173","id":236273096,"user":{"login":"mcwhittemore","id":1551510,"avatar_url":"https://avatars.githubusercontent.com/u/1551510?v=3","gravatar_id":"","url":"https://api.github.com/users/mcwhittemore","html_url":"https://github.com/mcwhittemore","followers_url":"https://api.github.com/users/mcwhittemore/followers","following_url":"https://api.github.com/users/mcwhittemore/following{/other_user}","gists_url":"https://api.github.com/users/mcwhittemore/gists{/gist_id}","starred_url":"https://api.github.com/users/mcwhittemore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcwhittemore/subscriptions","organizations_url":"https://api.github.com/users/mcwhittemore/orgs","repos_url":"https://api.github.com/users/mcwhittemore/repos","events_url":"https://api.github.com/users/mcwhittemore/events{/privacy}","received_events_url":"https://api.github.com/users/mcwhittemore/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T19:32:21Z","updated_at":"2016-07-29T19:32:21Z","body":"I've been thinking about creating a world editing game for a little bit. In this game, each user is able to extract resources from the world and deposit them somewhere else. I see these extractions as features with null geometry but a set of properties. Now, I could set the geometry to be a point at null island or something so I don't think this would be a must, but it would be nice.\r\n\r\nAnother use case where I might want null geometry is a survey tool where each point on the map represents a user who has taken the survey. Part of the survey might be asking them to let me use the location of their device to fill out an answer. Some users aren't going to want to fill that out. For the sake of argument, let's say I'm ok with users not wanting to tell me where they are, now I have a survey result with no lng,lat. What do I do? Again, I could put it on null island and flag it as 'location not provided', or I could just not fill out the geometry. By not filling out the geometry I wouldn't be filling up my bbox requests that cover null island with non-located data which might be something I care about...\r\n\r\nIt looks like [PostGis doesn't support null features](https://www.postgresql.org/docs/current/static/datatype-geometric.html#DATATYPE-GEO-TABLE). That said. PostGis also has all of SQL support with it so this isn't as much of a problem for it.\r\n\r\n> We're not all that interested in providing an arbitrary key-value store here, but in providing a data store for spatial information.\r\n\r\nCardboard is a dataset for spatial information but does that mean it's not also a key-value store? I think making this too limited to spatial information impacts the desirability of using it for spatial information.\r\n\r\nIn the two cases above, if I decided that using null island wasn't valid, then I'd need to introduce another datastore into my application. I could look at using a custom dynamo table but now I have two tables where I'd only need one if cardboard supported null geometry."}}
{"actor":{"display_login":"mcwhittemore"}}