{"action":"opened","issue":{"url":"https://api.github.com/repos/edzer/sfr/issues/29","repository_url":"https://api.github.com/repos/edzer/sfr","labels_url":"https://api.github.com/repos/edzer/sfr/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/edzer/sfr/issues/29/comments","events_url":"https://api.github.com/repos/edzer/sfr/issues/29/events","html_url":"https://github.com/edzer/sfr/issues/29","id":181303060,"number":29,"title":"MapInfo closed linestring interpreted as POLYGON","user":{"login":"mdsumner","id":4107631,"avatar_url":"https://avatars.githubusercontent.com/u/4107631?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsumner","html_url":"https://github.com/mdsumner","followers_url":"https://api.github.com/users/mdsumner/followers","following_url":"https://api.github.com/users/mdsumner/following{/other_user}","gists_url":"https://api.github.com/users/mdsumner/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsumner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsumner/subscriptions","organizations_url":"https://api.github.com/users/mdsumner/orgs","repos_url":"https://api.github.com/users/mdsumner/repos","events_url":"https://api.github.com/users/mdsumner/events{/privacy}","received_events_url":"https://api.github.com/users/mdsumner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-06T01:11:00Z","updated_at":"2016-10-06T01:11:00Z","closed_at":null,"body":"I've attached two folder data sources \"TABBED\" and \"MIFFED\", each contain the same 2 POLYGONs and 2 LINESTRINGs. \r\n\r\n[linestring_as_polygon.zip](https://github.com/edzer/sfr/files/512645/linestring_as_polygon.zip)\r\n\r\n1. feature is a box\r\n2. feature is boundary of 1.\r\n3. feature is a box\r\n4. feature is modfied boundary of 3. with closing vertex moved from origin\r\n\r\nogrinfo sees the same for both folders, namely POLYGON, LINESTRING, POLYGON, LINESTRING\r\n\r\n```bash\r\nogrinfo MIFFED Drawing\r\nHad to open data source read-only.\r\nINFO: Open of `MIFFED'\r\n      using driver `MapInfo File' successful.\r\n\r\nLayer name: Drawing\r\nGeometry: Unknown (any)\r\nFeature Count: 4\r\nExtent: (-82.000000, -23.500000) - (282.000000, 76.500000)\r\nLayer SRS WKT:\r\nLOCAL_CS[\"Nonearth\",\r\n    UNIT[\"Meter\",1.0]]\r\nID: Integer (0.0)\r\nOGRFeature(Drawing):1\r\n  ID (Integer) = 1\r\n  Style = BRUSH(fc:#c0c0c0,bc:#808080,id:\"mapinfo-brush-2,ogr-brush-0\");PEN(w:0pt,c:#808080,id:\"mapinfo-pen-2,ogr-pen-0\")\r\n  POLYGON ((-82.0 16.5,-82.0 76.5,-22.0 76.5,-22.0 16.5,-82.0 16.5))\r\n\r\nOGRFeature(Drawing):2\r\n  ID (Integer) = 2\r\n  Style = PEN(w:1px,c:#000000,id:\"mapinfo-pen-2,ogr-pen-0\")\r\n  LINESTRING (-82.0 16.5,-82.0 76.5,-22.0 76.5,-22.0 16.5,-82.0 16.5)\r\n\r\nOGRFeature(Drawing):3\r\n  ID (Integer) = 3\r\n  Style = BRUSH(fc:#c0c0c0,bc:#808080,id:\"mapinfo-brush-2,ogr-brush-0\");PEN(w:0pt,c:#808080,id:\"mapinfo-pen-2,ogr-pen-0\")\r\n  POLYGON ((194.0 -23.5,194.0 62.5,282.0 62.5,282.0 -23.5,194.0 -23.5))\r\n\r\nOGRFeature(Drawing):4\r\n  ID (Integer) = 4\r\n  Style = PEN(w:1px,c:#000000,id:\"mapinfo-pen-2,ogr-pen-0\")\r\n  LINESTRING (189.5 -18.625,194.0 62.5,282.0 62.5,282.0 -23.5,194.0 -23.5)\r\n```\r\n\r\nsf sees 2. as a POLYGON\r\n\r\n```R\r\nst_read(\"TABBED\", \"Drawing\")\r\n## same as below\r\nst_read(\"MIFFED\", \"Drawing\")\r\n...\r\n\r\n\r\nprecision:      double (default; no precision model)\r\n  ID                       geometry\r\n1  1 GEOMETRYCOLLECTION(POLYGON(...\r\n2  2 GEOMETRYCOLLECTION(POLYGON(...\r\n3  3 GEOMETRYCOLLECTION(POLYGON(...\r\n4  4 GEOMETRYCOLLECTION(LINESTRI...\r\n\r\n```"}}
{"actor":{"display_login":"mdsumner"}}