{"name":"@turf/point-grid","version":"6.5.0","keywords":["turf","grid","points","geojson"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/point-grid@6.5.0","contributors":[{"name":"Stefano Borghi","email":"@stebogit"},{"name":"Denis Carriere","email":"@DenisCarriere"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"f628d30afe29d60dcbf54b195e46eab48a4fbfaa","tarball":"http://registry-npm.ywwl.com/@turf/point-grid/download/@turf/point-grid-6.5.0.tgz","fileCount":7,"integrity":"sha512-Iq38lFokNNtQJnOj/RBKmyt6dlof0yhaHEDELaWHuECm1lIZLY3ZbVMwbs+nXkwTAHjKfS/OtMheUBkw+ee49w==","signatures":[{"sig":"MEUCIGPa7Bzm2pBG2V9L54eM1uLhw4N4JpBKKUBWdz7W6PyAAiEAhn8MKdf0O74RtqDv4s6rpbD9fl+f3CLLPpdbwuUr58E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2fKHCRA9TVsSAnZWagAAiBUP/jxlailwRyxRHdpuPsAh\neIbCIS6X20c3mt4ln3jY/3Cx1Ux9JbIt4zIaYxdUgGJxUwsLwwPrJe4bTJ7W\nQA8GuSezAvk5v+25ofCSy9mk/ixxcJrTPC+q+eLi7Qcsad6GlcYBZdrjf/cz\nKC7JUc0Ft2foJWYplKxR5oTkDSSzCTksncSyPCh7BuvrVYhJ8mGf+lX5O340\nlV7e5G+qn6/HzTO9YkqEmmXC2XWrljty2r+1dtHFFEEjPaPhNR5JFnP6nhtk\nAy5ouDYIAHph/vHHdWB7YymttLqSrAPoqpwvGqlrXCxlVIFpA/2oMBrRkT10\nXvwj4kYt9iIaQT3geG0kldgaC9CDoDlll86qIuIwKV7ISBZ5gwImqFsn3Nt6\nfp+F0Y/3vW4W+luo91EY0SOA1lcEBiPhaKXG2vYwA0FFGjMTAV9/8L/1yb+B\n3uc6qYCAZKj+WquJgzqYuovId9QWEihUQms0jMnmzx23RvsUK34O8BmtAcCW\nG77RgWaslpGnTIQpLxZJZVlI8XvxSMUPBFZzu7F5eC0UcP74U5464HDWMIjO\nvGt7SFd1jL4JNs+SJMwoc+d3QavIaBSRLbXHKknapDr1q43UI3jb2I5XfVaQ\nrGFy1QjjprlAQ/Pu19WxpNOSa9v/hNtukrUkkMq3NATsA6ofndKHJ/kdb3zd\nR6TK\r\n=C+hT\r\n-----END PGP SIGNATURE-----\r\n","size":3969,"noattachment":false,"key":"/@turf/point-grid/-/@turf/point-grid-6.5.0.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"funding":"https://opencollective.com/turf","gitHead":"5375941072b90d489389db22b43bfe809d5e451e","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"ts-node bench.js","build":"npm-run-all build:*","build:es":"tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json","build:js":"tsc","test:tape":"ts-node -r esm test.js","test:types":"tsc --esModuleInterop --noEmit types.ts"},"_npmUser":{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.8.0+x64 (darwin)","description":"turf point-grid module","directories":{},"sideEffects":false,"_nodeVersion":"14.8.0","dependencies":{"@turf/helpers":"^6.5.0","@turf/distance":"^6.5.0","@turf/invariant":"^6.5.0","@turf/boolean-within":"^6.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","@turf/truncate":"^6.5.0","load-json-file":"*","write-json-file":"*","@turf/bbox-polygon":"^6.5.0"},"_npmOperationalInternal":{"tmp":"tmp/point-grid_6.5.0_1625912275815_0.9598445617311311","host":"s3://npm-registry-packages"},"readme":"# @turf/point-grid\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## pointGrid\n\nCreates a grid of points\n\n### Parameters\n\n*   `bbox` **[BBox][1]** extent of grid in \\[minX, minY, maxX, maxY] order\n*   `cellSide` **[number][2]** the distance between points\n*   `options` **[Object][3]** Optional parameters (optional, default `{}`)\n\n    *   `options.units` **Units** the units of the cellSide value.  Supports all valid Turf [Units][4] (optional, default `'kilometers'`)\n    *   `options.mask` **[Feature][5]<([Polygon][6] | [MultiPolygon][7])>?** if passed a Polygon or MultiPolygon, the grid Points will be created only inside it\n    *   `options.properties` **[Object][3]** passed to each point of the grid (optional, default `{}`)\n\n### Examples\n\n```javascript\nvar extent = [-70.823364, -33.553984, -70.473175, -33.302986];\nvar cellSide = 3;\nvar options = {units: 'miles'};\n\nvar grid = turf.pointGrid(extent, cellSide, options);\n\n//addToMap\nvar addToMap = [grid];\n```\n\nReturns **[FeatureCollection][8]<[Point][9]>** grid of points\n\n[1]: https://tools.ietf.org/html/rfc7946#section-5\n\n[2]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\n\n[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[4]: https://github.com/Turfjs/turf/blob/master/packages/turf-helpers/README_UNITS.md\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[6]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[7]: https://tools.ietf.org/html/rfc7946#section-3.1.7\n\n[8]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n[9]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run \"yarn docs\" from the root of the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](https://turfjs.org/), an open source module collection dedicated to geographic algorithms. It is maintained in the [Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create PRs and issues.\n\n### Installation\n\nInstall this single module individually:\n\n```sh\n$ npm install @turf/point-grid\n```\n\nOr install the all-encompassing @turf/turf module that includes all modules as functions:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1625912275943,"maintainers":[{"name":"smallsaucepan","email":"james@smallsaucepan.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"_cnpm_publish_time":1625912275943,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}