{"action":"created","issue":{"url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/14","repository_url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi","labels_url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/14/comments","events_url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/14/events","html_url":"https://github.com/Bolton-and-Menk-GIS/restapi/issues/14","id":339052284,"node_id":"MDU6SXNzdWUzMzkwNTIyODQ=","number":14,"title":"[bug] JSON_CODE not defined","user":{"login":"sallaben","id":7699235,"node_id":"MDQ6VXNlcjc2OTkyMzU=","avatar_url":"https://avatars0.githubusercontent.com/u/7699235?v=4","gravatar_id":"","url":"https://api.github.com/users/sallaben","html_url":"https://github.com/sallaben","followers_url":"https://api.github.com/users/sallaben/followers","following_url":"https://api.github.com/users/sallaben/following{/other_user}","gists_url":"https://api.github.com/users/sallaben/gists{/gist_id}","starred_url":"https://api.github.com/users/sallaben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallaben/subscriptions","organizations_url":"https://api.github.com/users/sallaben/orgs","repos_url":"https://api.github.com/users/sallaben/repos","events_url":"https://api.github.com/users/sallaben/events{/privacy}","received_events_url":"https://api.github.com/users/sallaben/received_events","type":"User","site_admin":false},"labels":[{"id":184373544,"node_id":"MDU6TGFiZWwxODQzNzM1NDQ=","url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-06T19:45:55Z","updated_at":"2018-07-11T14:58:52Z","closed_at":null,"author_association":"NONE","body":"hey there, what is JSON_CODE enum?  when exporting mapserver layer to shapefile I get this error:\r\n\r\n    Traceback (most recent call last):\r\n    File \"test.py\", line 9, in <module>\r\n    layer.layer_to_fc(output)\r\n    File \"/usr/local/lib/python2.7/site-packages/restapi/common_types.py\", line 1311, in export_layer\r\n    exportFeatureSet(fs, out_fc, outSR=sr)\r\n    File \"/usr/local/lib/python2.7/site-packages/restapi/common_types.py\", line 289, in exportFeatureSet\r\n    w.add_row(Geometry(feat.geometry).asShape(), row)\r\n    File \"/usr/local/lib/python2.7/site-packages/restapi/open_restapi.py\", line 358, in asShape\r\n    shp.points = self.json[JSON_CODE[self.geometryType]]\r\n    NameError: global name 'JSON_CODE' is not defined"},"comment":{"url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/comments/404200971","html_url":"https://github.com/Bolton-and-Menk-GIS/restapi/issues/14#issuecomment-404200971","issue_url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/14","id":404200971,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDIwMDk3MQ==","user":{"login":"CalebM1987","id":6826046,"node_id":"MDQ6VXNlcjY4MjYwNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/6826046?v=4","gravatar_id":"","url":"https://api.github.com/users/CalebM1987","html_url":"https://github.com/CalebM1987","followers_url":"https://api.github.com/users/CalebM1987/followers","following_url":"https://api.github.com/users/CalebM1987/following{/other_user}","gists_url":"https://api.github.com/users/CalebM1987/gists{/gist_id}","starred_url":"https://api.github.com/users/CalebM1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CalebM1987/subscriptions","organizations_url":"https://api.github.com/users/CalebM1987/orgs","repos_url":"https://api.github.com/users/CalebM1987/repos","events_url":"https://api.github.com/users/CalebM1987/events{/privacy}","received_events_url":"https://api.github.com/users/CalebM1987/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T14:58:52Z","updated_at":"2018-07-11T14:58:52Z","author_association":"MEMBER","body":"@sallaben Thanks for pointing this out!  Looks like I accidentally deleted the ```JSON_CODE``` dict a while back while cleaning some stuff up.  Luckily I was able to recover this from an old version.  I just tested this as the open source version and it now works again.  Let me know if you have any other issues, thanks!\r\n\r\nSorry for the inconvenience!"}}
{"actor":{"display_login":"CalebM1987"}}