{"_id":"wkt","_rev":"22-afbb1209a56db1a6e1d6f9f64c09e878","time":{"0.0.10":"2018-03-14T23:04:44.224Z","0.0.11":"2018-03-14T23:04:44.224Z","0.0.12":"2018-03-14T23:04:44.224Z","0.0.13":"2018-03-14T23:04:44.224Z","0.0.18":"2018-03-14T23:04:44.224Z","0.0.22":"2018-03-14T23:04:44.224Z","0.0.23":"2018-03-14T23:04:44.224Z","0.0.25":"2018-03-14T23:04:44.224Z","0.0.26":"2018-03-14T23:04:44.224Z","0.0.27":"2018-03-14T23:04:44.224Z","0.0.28":"2018-03-14T23:04:44.224Z","0.0.29":"2018-03-14T23:04:44.224Z","0.0.3":"2018-03-14T23:04:44.224Z","0.0.33":"2018-03-14T23:04:44.224Z","0.0.34":"2018-03-14T23:04:44.224Z","0.0.35":"2018-03-14T23:04:44.224Z","0.0.5":"2018-03-14T23:04:44.224Z","0.0.7":"2018-03-14T23:04:44.224Z","0.0.8":"2018-03-14T23:04:44.224Z","created":"2019-10-31T10:23:02.686Z","0.1.0":"2019-10-31T10:23:02.875Z","modified":"2022-05-24T15:03:11.343Z","0.1.1":"2019-11-01T09:45:09.711Z"},"name":"wkt","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"wkt","version":"0.1.0","description":"Parse WKT (Well-known text) into geoJSON or stringify geoJSON into WKT","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/benrei/wkt.git"},"keywords":["WKT","GeoJSON","parse","stringify","convert","wellknown"],"author":{"name":"Benjamin Reiersølmoen"},"license":"MIT","bugs":{"url":"https://github.com/benrei/wkt/issues"},"homepage":"https://github.com/benrei/wkt#readme","gitHead":"d48e95ea8833e10dca1853381dcd4e985af9cd77","_id":"wkt@0.1.0","_nodeVersion":"10.7.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-cdKdxNXE1fJP05l0UQ9AoRSA7OM0m6c/KZvR0NdC2YlVIbMvBjO/nh5zmKrpl+kAqQ7jVz9qPN5sPoo9WSRnGg==","shasum":"595977772efee2768da3b198491e37b5c873e3d4","tarball":"https://registry.npmjs.org/wkt/-/wkt-0.1.0.tgz","fileCount":12,"unpackedSize":16579,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdurYHCRA9TVsSAnZWagAAVlAP/10D+wLSy1eOJ+XUYl65\na92J7MWie7hbgHcr76JIiOoUlqVNg434nnDiPm0hg/lUdPboDeetPWGuGFGC\nYktBOtdAuJip4lzQx23NbbQ/WkqdDUlRWwjWtACr9wrOI8HpL5/LG1Ncbik9\nxAXvSTw10vQt4mQ74snVL+3MIb3J3QXNYWbQ8B7v3Vf1owm+a1V6PRYnqp9S\n9Bb088S0nHot1RduPrqE+nJqVdc2MVO/6Stb77IRs8aDKQqhtCXZqYvz29YM\nmEifg2ddmqICGs171FKLmfZOvewH5IY6YExwEyntyzG6ZT4gtLpxIjWbNXT3\nvhLHnZbeJXiEoMbrW0oJgn1fktE1/Evd8bjUc9Iu7oqgejlD8bHYOFAn9ktk\nzTyEz6OITciTGxsn4KokC3QK9tZUadqpuuNYZ7eJVM1dGCZQUCBIOcK0ngxu\nqm0FAmdKPiJlnScrKAjhfHjxM8iTgEUVw1kA9FxdiwU9PLhVpkalt5Ymv+Ai\nsHA/qpS73RFfPXuNluwQcsP54vHIueHLVDwZuDqd7NNrLlhs961+y39myD+p\nFLFkDj5vYsGJumwbVeqe2LimAQYdaiurh6sI1pk3S2GIZJMZNAQTYCGW7L1u\nsEw2WouD6wIIAiJyRvj4TQsnYxOGg4+6JJpGiwkiOZn3dQ7un5LCfFs/DhY7\n3LBG\r\n=gEgK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQ0nmbr1RoSkelJrALAKKp1Urg+Rvt7amt1H2f5AipEAiEAmHTrFuOa1baO5rcQ3UF/xp+lcXOEAT53pA4+kxQzuvI="}]},"maintainers":[{"name":"benjrei","email":"benrei.reg@gmail.com"}],"_npmUser":{"name":"benjrei","email":"benrei.reg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wkt_0.1.0_1572517382686_0.5672088019132848"},"_hasShrinkwrap":false},"0.1.1":{"name":"wkt","version":"0.1.1","description":"Parse WKT (Well-known text) into geoJSON or stringify geoJSON into WKT","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/benrei/wkt.git"},"keywords":["WKT","GeoJSON","parse","stringify","convert","wellknown"],"author":{"name":"Benjamin Reiersølmoen"},"license":"MIT","bugs":{"url":"https://github.com/benrei/wkt/issues"},"homepage":"https://github.com/benrei/wkt#readme","gitHead":"465cad08293a9fa661438571bd013eafd9bc3e31","_id":"wkt@0.1.1","_nodeVersion":"10.7.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-2vtzYZOqN0VZdtDTMDUgbpXpE+MXRdsFTiCpS08FZ4yktT9pPylVMZaLxcIqT9pRkBp5FIAGVQyJ/kJa9b8uGg==","shasum":"8d3280cb0d7664343d8987a30c85806554618bf8","tarball":"https://registry.npmjs.org/wkt/-/wkt-0.1.1.tgz","fileCount":12,"unpackedSize":16748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdu/6mCRA9TVsSAnZWagAA4M8P/3LAEcf/ZjlNrKhYOK4a\n14KvrWXs7h3EhwnRlIfQymJpDpE9GeGGWlB0d0UUm2P98eXlJ8j54yTSyfgb\nIIhLiYOvd3oqa8dKhuOkbQAiKtnrGXRrgVQEySMzX0A5HGhNN76Z7uVJ6RTq\ne/2D42Inol2o0Y1wNFt/Axtska34e3RGSi1hio+DB7+qAzUePTsEKVs1knZf\nhWumOIqyoRom5QaGJOAnFtQr+rh8GqF7TZQVylGheb93W1YtRYEukqqgmrXg\n8RTxDw8GX6zSE07ItyZUvGR8lNZEndFJ3FQrM5osdwh2AniQ8Qzvrk52N99v\nBMHLuRwWCWGEvWowachqNqUIoy2riBAHKrGem3HNivPhN4MQzE0PAOhSEt7S\nDHYT7Yw+luW5KTbbVGe/snwLcvmrRt19QSJTejxBc65C1YwBON9PrPMSUJEW\ni6p68cSpSrhA9ALQHAf1dCralhu+8hx35+PHqrWUdONpu7c0taxRylYJERgv\nIRr8Rt3RvG+iKLZbCCLYzqLbVfy42haKOGMvGX49S5b6ST2cXftTdMeEe+9C\nszC6HviHJgC9w0kJrfvAOLIhKnP6xQ8hScDlp41miqnV31FEqlVYPDG3JMAY\nlJYhKghYq4JHjRzOhN+7fWTGgJMdSGMWJ1beHDa0Nz3Fm6B3JobaeyfEkPPm\nFGTw\r\n=KgR/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHfHnMd6sgiB41O1BQQzvHozXlB7E9rPh+BufPRb/5ieAiAaikoK2I07zQ7EQRhObrT3hUsJBKXculFP+JWfpdZZMg=="}]},"maintainers":[{"name":"benjrei","email":"benrei.reg@gmail.com"}],"_npmUser":{"name":"benjrei","email":"benrei.reg@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wkt_0.1.1_1572601509375_0.6786764723492522"},"_hasShrinkwrap":false}},"maintainers":[{"name":"benjrei","email":"benrei.reg@gmail.com"}],"description":"Parse WKT (Well-known text) into geoJSON or stringify geoJSON into WKT","homepage":"https://github.com/benrei/wkt#readme","keywords":["WKT","GeoJSON","parse","stringify","convert","wellknown"],"repository":{"type":"git","url":"git+https://github.com/benrei/wkt.git"},"author":{"name":"Benjamin Reiersølmoen"},"bugs":{"url":"https://github.com/benrei/wkt/issues"},"license":"MIT","readme":"# wkt\n[![NPM version](https://img.shields.io/npm/v/wkt.svg)](https://www.npmjs.com/package/wkt)\n\n- Parse WKT ([Well-known text](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry)) \ninto GeoJSON\n- Stringify [GeoJSON](https://geojson.org/) into WKT\n\n## Install\n\n    npm install wkt\n\n## Usage\n\n### Parse\n```js\nconst wkt = require('wkt');\nconst { parse } = require('wkt');\n\n//  See return values in output section\nwkt.parse('POINT(1 2)');\nparse(\"POINT Z (58.51466818909509 8.629797415591964 61.77237)\");\nparse(\"LINESTRING (30 10, 10 30, 40 40)\");\nparse(\"POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))\");\n```\n#### Output from `parse()`\n```\n{ type: 'Point', coordinates: [ 1, 2 ] }\n{ type: 'Point', coordinates: [ 58.51466818909509, 8.629797415591964, 61.77237 ] }\n{ type: 'LineString', coordinates: [ [ 30, 10 ], [ 10, 30 ], [ 40, 40 ] ] }\n{ type: 'Polygon', coordinates: [[[30,10], [40,40], [20,40], [10,20], [30,10]]] }\n```\n### Stringify\n```javascript\nconst { stringify } = require('wkt');\n\nconst geometry = {\n  type: \"Point\",\n  coordinates: [125.6, 10.1, 54.2]\n};\nconst geometry2 = { \n  type: 'LineString',\n  coordinates: [ [ 30, 10 ], [ 10, 30 ], [ 40, 40 ] ] \n};\n\n//  See return values in output section\nstringify(geometry);\nstringify(geometry2);\n```\n#### Output from `stringify()`\n```\n\"POINT Z (125.6 10.1 54.2)\"\n\"LINESTRING (30 10, 10 30, 40 40)\"\n```\n\n## Docs\n\n### `parse(wkt)`\nParse [Well-known text](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry) string into GeoJSON\n\n### `stringify(geojson)`\n\nStringifies a [GeoJSON](https://geojson.org/) `geometry` object or Feature object into a WKT (Well-known text) string.\nThrows an error if given a `FeatureCollection` or unknown input.\n\n### Supported types\n* Point + MultiPoint\n* LineString + MultiLineString\n* Polygon + MultiPolygon\n* GeometryCollection\n* WKT's containing \"Z\"\n\n\n","readmeFilename":"README.md"}