{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/terraformer-wkt-parser/issues/7","repository_url":"https://api.github.com/repos/Esri/terraformer-wkt-parser","labels_url":"https://api.github.com/repos/Esri/terraformer-wkt-parser/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Esri/terraformer-wkt-parser/issues/7/comments","events_url":"https://api.github.com/repos/Esri/terraformer-wkt-parser/issues/7/events","html_url":"https://github.com/Esri/terraformer-wkt-parser/issues/7","id":44493102,"number":7,"title":"unable to parse scientific notation numbers (i.e 1.234E-4)","user":{"login":"tfordon","id":1718496,"avatar_url":"https://avatars.githubusercontent.com/u/1718496?v=3","gravatar_id":"","url":"https://api.github.com/users/tfordon","html_url":"https://github.com/tfordon","followers_url":"https://api.github.com/users/tfordon/followers","following_url":"https://api.github.com/users/tfordon/following{/other_user}","gists_url":"https://api.github.com/users/tfordon/gists{/gist_id}","starred_url":"https://api.github.com/users/tfordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfordon/subscriptions","organizations_url":"https://api.github.com/users/tfordon/orgs","repos_url":"https://api.github.com/users/tfordon/repos","events_url":"https://api.github.com/users/tfordon/events{/privacy}","received_events_url":"https://api.github.com/users/tfordon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-09-30T20:00:23Z","updated_at":"2016-03-09T17:55:47Z","closed_at":null,"body":"I cannot parse WKTs that use scientific notation, so something like: 'POINT (3.234E-2 10)' doesn't work, even though this seems proper.  I didn't have access to the ISO, but it is allowed in the OpenGIS implementation specification.\r\n\r\nHere is a jsfiddle that demonstrates my problem:\r\nhttp://jsfiddle.net/qfxxLx95/4/"},"comment":{"url":"https://api.github.com/repos/Esri/terraformer-wkt-parser/issues/comments/194423953","html_url":"https://github.com/Esri/terraformer-wkt-parser/issues/7#issuecomment-194423953","issue_url":"https://api.github.com/repos/Esri/terraformer-wkt-parser/issues/7","id":194423953,"user":{"login":"tfordon","id":1718496,"avatar_url":"https://avatars.githubusercontent.com/u/1718496?v=3","gravatar_id":"","url":"https://api.github.com/users/tfordon","html_url":"https://github.com/tfordon","followers_url":"https://api.github.com/users/tfordon/followers","following_url":"https://api.github.com/users/tfordon/following{/other_user}","gists_url":"https://api.github.com/users/tfordon/gists{/gist_id}","starred_url":"https://api.github.com/users/tfordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfordon/subscriptions","organizations_url":"https://api.github.com/users/tfordon/orgs","repos_url":"https://api.github.com/users/tfordon/repos","events_url":"https://api.github.com/users/tfordon/events{/privacy}","received_events_url":"https://api.github.com/users/tfordon/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T17:55:47Z","updated_at":"2016-03-09T17:55:47Z","body":"I looked a little closer.  I think it should be a pretty small change.  I can't try it now, but maybe tonight.\r\n\r\nThis file defines the grammar:  terraformer-wkt-parser/src/wkt.yy\r\n\r\nI think we can just change line 10 to be:\r\n\"-\"?[0-9]+(\".\"[0-9]+)?([eE][\\-\\+]?[0-9]+)? return 'DOUBLE_TOK'\r\n\r\nThe DOUBLE_TOK tokens seem to be passed into Number which supports sci-notation.\r\n\r\nI'll try it soon, but feel free to try it and submit the pull request if you don't want to wait on me Oliver."}}