A Pen by Anonasaurus Rex on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fromWKT2Json(WKTstr) { | |
var mods = {}; | |
var convertToPointArray = function (ptArrayString) { | |
var points = [], | |
ptStringArray = ptArrayString.replace(/\)|\(/gi, "").split(","); | |
ptStringArray.forEach(function (pt) { | |
var splitpt = pt.trim().split(" "), | |
x = parseFloat(splitpt[0], 10), | |
y = parseFloat(splitpt[1], 10); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.