Skip to content

Instantly share code, notes, and snippets.

@davidmcclure
Created February 18, 2013 15:19
Show Gist options
  • Save davidmcclure/4978146 to your computer and use it in GitHub Desktop.
Save davidmcclure/4978146 to your computer and use it in GitHub Desktop.
SVGtoWKT.convert('<svg><polygon points="1,2 3,4 5,6" /><line x1="7" y1="8" x2="9" y2="10" /></svg>');
>>> "GEOMETRYCOLLECTION(POLYGON((1 -2,3 -4,5 -6,1 -2)),LINESTRING(7 -8,9 -10))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment