{"action":"closed","issue":{"url":"https://api.github.com/repos/nhibernate/NHibernate.Spatial/issues/1","repository_url":"https://api.github.com/repos/nhibernate/NHibernate.Spatial","labels_url":"https://api.github.com/repos/nhibernate/NHibernate.Spatial/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nhibernate/NHibernate.Spatial/issues/1/comments","events_url":"https://api.github.com/repos/nhibernate/NHibernate.Spatial/issues/1/events","html_url":"https://github.com/nhibernate/NHibernate.Spatial/issues/1","id":7523781,"number":1,"title":"Issue Intersects","user":{"login":"Aramos87","id":2538627,"avatar_url":"https://avatars.githubusercontent.com/u/2538627?v=3","gravatar_id":"","url":"https://api.github.com/users/Aramos87","html_url":"https://github.com/Aramos87","followers_url":"https://api.github.com/users/Aramos87/followers","following_url":"https://api.github.com/users/Aramos87/following{/other_user}","gists_url":"https://api.github.com/users/Aramos87/gists{/gist_id}","starred_url":"https://api.github.com/users/Aramos87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aramos87/subscriptions","organizations_url":"https://api.github.com/users/Aramos87/orgs","repos_url":"https://api.github.com/users/Aramos87/repos","events_url":"https://api.github.com/users/Aramos87/events{/privacy}","received_events_url":"https://api.github.com/users/Aramos87/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2012-10-11T19:24:21Z","updated_at":"2016-05-21T02:51:13Z","closed_at":"2016-05-21T02:51:13Z","body":"Hi\r\n\r\nI have the following code: \r\n\r\n                IPolygon boundingBox = Geometry.DefaultFactory.CreatePolygon(Geometry.DefaultFactory\r\n                                                                          .CreateLinearRing(new[]\r\n                                                                       {\r\n                                                                           new Coordinate(-101.20332217930151, 23.904319047265624), \r\n                                                                           new Coordinate(-99.3891350206985, -99.3891350206985),\r\n                                                                           new Coordinate(-99.3891350206985, 27.373252152734374), \r\n                                                                           new Coordinate(-101.20332217930151, 27.373252152734374),\r\n                                                                           new Coordinate(-101.20332217930151, 23.904319047265624)\r\n                                                                       }), null);\r\n\r\nvar result2 = session.QueryOver<Person>().WhereSpatialRestrictionOn(p => p.Location).Intersects(boundingBox).List();\r\n\r\nand throws the following exception ExceptionObject = {\"Must declare the scalar variable \\\"@p0\\\".\"}\r\n\r\nthe last part of the generated query is \"WHERE this_.Location.STIntersects(@p0) = 1\".\r\n\r\nI hope that you help me with my issue.\r\n\r\nAntonio Ramos\r\n"}}
{"actor":{"display_login":"suryapratap"}}