{"action":"created","issue":{"url":"https://api.github.com/repos/Toblerity/Shapely/issues/275","labels_url":"https://api.github.com/repos/Toblerity/Shapely/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/Toblerity/Shapely/issues/275/comments","events_url":"https://api.github.com/repos/Toblerity/Shapely/issues/275/events","html_url":"https://github.com/Toblerity/Shapely/issues/275","id":79182826,"number":275,"title":"Point within LinearRing returns False?","user":{"login":"shongololo","id":4347878,"avatar_url":"https://avatars.githubusercontent.com/u/4347878?v=3","gravatar_id":"","url":"https://api.github.com/users/shongololo","html_url":"https://github.com/shongololo","followers_url":"https://api.github.com/users/shongololo/followers","following_url":"https://api.github.com/users/shongololo/following{/other_user}","gists_url":"https://api.github.com/users/shongololo/gists{/gist_id}","starred_url":"https://api.github.com/users/shongololo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shongololo/subscriptions","organizations_url":"https://api.github.com/users/shongololo/orgs","repos_url":"https://api.github.com/users/shongololo/repos","events_url":"https://api.github.com/users/shongololo/events{/privacy}","received_events_url":"https://api.github.com/users/shongololo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-21T22:15:22Z","updated_at":"2015-05-23T11:18:43Z","closed_at":null,"body":"Checking if the following point is within a LinearRing returns False:\r\n \r\n<code>\r\nsq = geometry.LinearRing([[0,0], [1,0], [1,1], [0,1]]) \r\nprint(geometry.Point([0.5, 0.5]).within(sq))\r\n</code>\r\nWhereas something similar as a Polygon instead, returns True:\r\n<code>\r\nsq = geometry.Polygon([[0,0], [1,0], [1,1], [0,1]]) \r\nprint(geometry.Point([0.5, 0.5]).within(sq))\r\n</code>\r\n\r\nIs this an issue, or is there something I'm missing?"},"comment":{"url":"https://api.github.com/repos/Toblerity/Shapely/issues/comments/104883316","html_url":"https://github.com/Toblerity/Shapely/issues/275#issuecomment-104883316","issue_url":"https://api.github.com/repos/Toblerity/Shapely/issues/275","id":104883316,"user":{"login":"shongololo","id":4347878,"avatar_url":"https://avatars.githubusercontent.com/u/4347878?v=3","gravatar_id":"","url":"https://api.github.com/users/shongololo","html_url":"https://github.com/shongololo","followers_url":"https://api.github.com/users/shongololo/followers","following_url":"https://api.github.com/users/shongololo/following{/other_user}","gists_url":"https://api.github.com/users/shongololo/gists{/gist_id}","starred_url":"https://api.github.com/users/shongololo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shongololo/subscriptions","organizations_url":"https://api.github.com/users/shongololo/orgs","repos_url":"https://api.github.com/users/shongololo/repos","events_url":"https://api.github.com/users/shongololo/events{/privacy}","received_events_url":"https://api.github.com/users/shongololo/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T11:18:43Z","updated_at":"2015-05-23T11:18:43Z","body":"I've been thinking about this some more and wish to suggest that this behaviour be revised. I realise the strict geometric interpretation behind this rationale, but it is counterintuitive and possibly results in more steps being required to get things done from the point of view of working with the actual geometries in python.\r\n\r\nFor example, to check if a point is within an interior hole inside a polygon, one first has to convert the interior LinearRing to a Polygon, then do the check.\r\n\r\nSimilarly, to find a representative_point() of an interior hole, then it is necessary to first cast to a Polygon, and then deduce the point.\r\n\r\nI imagine there are use cases for the current methodology, but I struggle to think what these are?\r\n\r\nThanks."}}