{"name":"@turf/boolean-crosses","version":"6.0.0","keywords":["turf","equal","boolean","de-9im"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/boolean-crosses@6.0.0","contributors":[{"name":"Rowan Winsemius","email":"@rowanwins"},{"name":"Denis Carriere","email":"@DenisCarriere"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"75b1b1ca90206c8b5e146ffd0d78983067c10d2e","tarball":"http://registry-npm.ywwl.com/@turf/boolean-crosses/download/@turf/boolean-crosses-6.0.0.tgz","fileCount":5,"integrity":"sha512-xXycNjPic6fw1nW0dhjhQaPkmCXC0ruUE75BMEWoOCyMIRE2pNyNuZpLaO1dTCPBeuU6B6lwKJSvrZiNSU8vkg==","signatures":[{"sig":"MEUCICjBR6nmU3+FrizBWg11NTEqFuCWy5mLEzVlCk7WEIGeAiEAxQxKRWQ2qk0x4e88Mqcho7vhcaggXoaH88929S4XlLc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17492,"size":3844,"noattachment":false,"key":"/@turf/boolean-crosses/-/@turf/boolean-crosses-6.0.0.tgz"},"main":"index","files":["index.js","index.ts"],"scripts":{"docs":"node ../../scripts/generate-readmes","test":"node test.js","bench":"node bench.js","pretest":"tsc"},"_npmUser":{"name":"deniscarriere","email":"carriere.denis@gmail.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"5.6.0","description":"turf boolean-crosses module","directories":{},"_nodeVersion":"9.3.0","dependencies":{"@turf/helpers":"6.x","@turf/invariant":"6.x","@turf/line-intersect":"6.x","@turf/polygon-to-line":"6.x","@turf/boolean-point-in-polygon":"6.x"},"_hasShrinkwrap":false,"devDependencies":{"glob":"*","tape":"*","benchmark":"*","typescript":"*","load-json-file":"*","boolean-shapely":"*"},"_npmOperationalInternal":{"tmp":"tmp/boolean-crosses_6.0.0_1519236828055_0.3500655198914524","host":"s3://npm-registry-packages"},"readme":"# @turf/boolean-crosses\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## booleanCrosses\n\nBoolean-Crosses returns True if the intersection results in a geometry whose dimension is one less than\nthe maximum dimension of the two source geometries and the intersection set is interior to\nboth source geometries.\n\nBoolean-Crosses returns t (TRUE) for only multipoint/polygon, multipoint/linestring, linestring/linestring, linestring/polygon, and linestring/multipolygon comparisons.\nOther comparisons are not supported as they are outside the OpenGIS Simple Features spec and may give unexpected results.\n\n### Parameters\n\n*   `feature1` **([Geometry][1] | [Feature][2]\\<any>)** GeoJSON Feature or Geometry\n*   `feature2` **([Geometry][1] | [Feature][2]\\<any>)** GeoJSON Feature or Geometry\n\n### Examples\n\n```javascript\nvar line1 = turf.lineString([[-2, 2], [4, 2]]);\nvar line2 = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);\n\nvar cross = turf.booleanCrosses(line1, line2);\n//=true\n```\n\nReturns **[boolean][3]** true/false\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean\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/boolean-crosses\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\n\n### Diagrams\n\n![esri-crosses](diagrams/esri-crosses.gif)","publish_time":1519236828096,"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":1519236828096,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}