├── .eslintrc.json ├── .github └── workflows │ ├── build.yml │ └── release.yml ├── .gitignore ├── bench.md ├── docs ├── css │ └── example.css ├── index.html └── js │ └── examples.js ├── index.js ├── license.txt ├── package-lock.json ├── package.json ├── readme.md ├── rollup.config.js ├── src ├── contains │ └── index.js ├── coveredby │ ├── index.js │ ├── line.js │ ├── point.js │ └── polygon.js ├── covers │ └── index.js ├── crosses │ ├── index.js │ ├── line.js │ ├── point.js │ └── polygon.js ├── disjoint │ └── index.js ├── equals │ └── index.js ├── intersects │ ├── index.js │ ├── line.js │ ├── point.js │ └── polygon.js ├── overlaps │ ├── index.js │ ├── line.js │ ├── point.js │ └── polygon.js ├── touches │ ├── index.js │ ├── line.js │ ├── point.js │ └── polygon.js ├── util │ ├── clipper.js │ ├── helpers.js │ ├── index.js │ ├── invariant.js │ ├── line.js │ ├── meta.js │ ├── partition.js │ ├── point.js │ ├── polygon.js │ └── triangulate.js └── within │ ├── index.js │ ├── line.js │ ├── point.js │ └── polygon.js └── test ├── bench.js ├── data ├── bench │ ├── LineString │ │ ├── LineString │ │ │ ├── contains.geojson │ │ │ ├── coveredby.geojson │ │ │ ├── covers.geojson │ │ │ ├── crosses.geojson │ │ │ ├── disjoint.geojson │ │ │ ├── equals.geojson │ │ │ ├── intersects.geojson │ │ │ ├── overlaps.geojson │ │ │ ├── touches.geojson │ │ │ └── within.geojson │ │ └── Polygon │ │ │ ├── coveredby.geojson │ │ │ ├── crosses.geojson │ │ │ ├── disjoint.geojson │ │ │ ├── intersects.geojson │ │ │ ├── touches.geojson │ │ │ └── within.geojson │ ├── MultiPoint │ │ ├── LineString │ │ │ ├── coveredby.geojson │ │ │ ├── crosses.geojson │ │ │ ├── disjoint.geojson │ │ │ ├── intersects.geojson │ │ │ ├── touches.geojson │ │ │ └── within.geojson │ │ ├── MultiPoint │ │ │ ├── contains.geojson │ │ │ ├── coveredby.geojson │ │ │ ├── covers.geojson │ │ │ ├── disjoint.geojson │ │ │ ├── equals.geojson │ │ │ ├── intersects.geojson │ │ │ ├── overlaps.geojson │ │ │ └── within.geojson │ │ └── Polygon │ │ │ ├── coveredby.geojson │ │ │ ├── disjoint.geojson │ │ │ ├── intersects.geojson │ │ │ ├── touches.geojson │ │ │ └── within.geojson │ └── Polygon │ │ └── Polygon │ │ ├── contains.geojson │ │ ├── coveredby.geojson │ │ ├── covers.geojson │ │ ├── disjoint.geojson │ │ ├── equals.geojson │ │ ├── intersects.geojson │ │ ├── overlaps.geojson │ │ ├── touches.geojson │ │ └── within.geojson ├── de9im │ ├── contains │ │ ├── false │ │ │ ├── GeometryCollection │ │ │ │ └── GeometryCollection │ │ │ │ │ ├── GeometryCollectionDoesNotContainBoundaryGeometryCollection-1.geojson │ │ │ │ │ ├── GeometryCollectionDoesNotContainDisjointGeometryCollection-1.geojson │ │ │ │ │ ├── GeometryCollectionDoesNotContainDisjointGeometryCollection-2.geojson │ │ │ │ │ └── GeometryCollectionDoesNotContainExteriorGeometryCollection-1.geojson │ │ │ ├── LineString │ │ │ │ ├── LineString │ │ │ │ │ ├── LineStringDoesNotContainBoundaryExteriorLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotContainDisjointLineString-1.geojson │ │ │ │ │ └── LineStringDoesNotContainIntersectingLineString-1.geojson │ │ │ │ └── Point │ │ │ │ │ ├── LineStringDoesNotContainBoundaryPoint-1.geojson │ │ │ │ │ ├── LineStringDoesNotContainBoundaryPoint-2.geojson │ │ │ │ │ ├── LineStringDoesNotContainDisjointPoint-1.geojson │ │ │ │ │ └── LineStringDoesNotContainDisjointPoint-2.geojson │ │ │ ├── MultiLineString │ │ │ │ ├── MultiLineString │ │ │ │ │ ├── MultiLineStringDoesNotContainExteriorMultiLineString-1.geojson │ │ │ │ │ └── MultiLineStringDoesNotContainOverlapsMultiLineString-1.geojson │ │ │ │ └── MultiPoint │ │ │ │ │ ├── MultiLineStringDoesNotContainBoundaryMultiPoint-1.geojson │ │ │ │ │ └── MultiLineStringDoesNotContainExteriorMultiPoint-1.geojson │ │ │ ├── MultiPoint │ │ │ │ └── MultiPoint │ │ │ │ │ ├── MultiPointDoesNotContainExteriorMultiPoint-1.geojson │ │ │ │ │ └── MultiPointDoesNotContainOverlapsMultiPoint-1.geojson │ │ │ ├── MultiPolygon │ │ │ │ ├── MultiLineString │ │ │ │ │ ├── MultiPolygonDoesNotContainExteriorHoleMultiLineString-1.geojson │ │ │ │ │ ├── MultiPolygonDoesNotContainExteriorMultiLineString-1.geojson │ │ │ │ │ └── MultiPolygonDoesNotContainOverlapsMultiLineString-1.geojson │ │ │ │ ├── MultiPoint │ │ │ │ │ ├── MultiPolygonDoesNotContainBoundaryMultiPoint-1.geojson │ │ │ │ │ └── MultiPolygonDoesNotContainExteriorMultiPoint-1.geojson │ │ │ │ └── MultiPolygon │ │ │ │ │ ├── MultiPolygonDoesNotContainBoundaryExteriorMultiPolygon-1.geojson │ │ │ │ │ ├── MultiPolygonDoesNotContainExteriorHoleMultiPolygon-1.geojson │ │ │ │ │ ├── MultiPolygonDoesNotContainExteriorMultiPolygon-1.geojson │ │ │ │ │ └── MultiPolygonDoesNotContainIntersectingMultiPolygon-1.geojson │ │ │ ├── Point │ │ │ │ └── Point │ │ │ │ │ ├── PointDoesNotContainDisjointPoint-1.geojson │ │ │ │ │ ├── PointDoesNotContainDisjointPoint-2.geojson │ │ │ │ │ └── PointDoesNotContainDisjointPoint-3.geojson │ │ │ └── Polygon │ │ │ │ ├── LineString │ │ │ │ ├── PolygonDoesNotContainBoundaryLineString-1.geojson │ │ │ │ ├── PolygonDoesNotContainExteriorLineString-1.geojson │ │ │ │ ├── PolygonDoesNotContainIntersectingLineString-1.geojson │ │ │ │ ├── PolygonDoesNotContainIntersectingLineString-2.geojson │ │ │ │ └── PolygonDoesNotContainIntersectingLineString-3.geojson │ │ │ │ ├── Point │ │ │ │ ├── PolygonDoesNotContainBoundaryPoint-1.geojson │ │ │ │ ├── PolygonDoesNotContainExteriorHolePoint-1.geojson │ │ │ │ └── PolygonDoesNotContainExteriorPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ ├── PolygonDoesNotContainBoundaryExteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotContainDisjointPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotContainExteriorHolePolygon-1.geojson │ │ │ │ ├── PolygonDoesNotContainExteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotContainExteriorPolygon-2.geojson │ │ │ │ ├── PolygonDoesNotContainIntersectsHolePolygon-1.geojson │ │ │ │ ├── PolygonDoesNotContainOverlapsPolygon-1.geojson │ │ │ │ └── PolygonDoesNotContainOverlapsPolygon-2.geojson │ │ ├── throws │ │ │ ├── LineString │ │ │ │ └── Polygon │ │ │ │ │ └── LineStringDoesNotContainAnyPolygon-1.geojson │ │ │ └── Point │ │ │ │ ├── LineString │ │ │ │ └── PointDoesNotContainAnyLineString-1.geojson │ │ │ │ └── Polygon │ │ │ │ └── PointDoesNotContainAnyPolygon-1.geojson │ │ └── true │ │ │ ├── GeometryCollection │ │ │ └── GeometryCollection │ │ │ │ ├── GeometryCollectionContainsEqualGeometryCollection-1.geojson │ │ │ │ ├── GeometryCollectionContainsInteriorGeometryCollection-1.geojson │ │ │ │ └── GeometryCollectionContainsInteriorGeometryCollection-2.geojson │ │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ ├── LineStringContainsContainingLineString-1.geojson │ │ │ │ ├── LineStringContainsEqualLineString-1.geojson │ │ │ │ └── LineStringContainsInteriorLineString-1.geojson │ │ │ └── Point │ │ │ │ ├── LineStringContainsInteriorPoint-1.geojson │ │ │ │ └── LineStringContainsInteriorPoint-2.geojson │ │ │ ├── MultiLineString │ │ │ ├── MultiLineString │ │ │ │ ├── MultiLineStringContainsContainingMultiLineString-1.geojson │ │ │ │ ├── MultiLineStringContainsContainingMultiLineString-2.geojson │ │ │ │ └── MultiLineStringContainsEqualMultiLineString-1.geojson │ │ │ └── MultiPoint │ │ │ │ ├── MultiLineStringContainsBoundaryInteriorMultiPoint-1.geojson │ │ │ │ └── MultiLineStringContainsInteriorMultiPoint-1.geojson │ │ │ ├── MultiPoint │ │ │ └── MultiPoint │ │ │ │ ├── MultiPointContainsEqualMultiPoint-1.geojson │ │ │ │ └── MultiPointContainsInteriorMultiPoint-1.geojson │ │ │ ├── MultiPolygon │ │ │ ├── MultiLineString │ │ │ │ ├── MultiPolygonContainsBoundaryInteriorMultiLineString-1.geojson │ │ │ │ └── MultiPolygonContainsInteriorMultiLineString-1.geojson │ │ │ ├── MultiPoint │ │ │ │ └── MultiPolygonContainsInteriorMultiPoint-1.geojson │ │ │ └── MultiPolygon │ │ │ │ ├── MultiPolygonContainsBoundaryInteriorMultiPolygon-1.geojson │ │ │ │ ├── MultiPolygonContainsInteriorMultiPolygon-1.geojson │ │ │ │ └── MultiPolygonContainsInteriorMultiPolygon-2.geojson │ │ │ ├── Point │ │ │ └── Point │ │ │ │ ├── PointContainsEqualPoint-1.geojson │ │ │ │ ├── PointContainsEqualPoint-2.geojson │ │ │ │ └── PointContainsEqualPoint-3.geojson │ │ │ └── Polygon │ │ │ ├── LineString │ │ │ ├── PolygonContainsBoundaryInteriorLineString-1.geojson │ │ │ ├── PolygonContainsBoundaryInteriorLineString-2.geojson │ │ │ ├── PolygonContainsBoundaryInteriorLineString-3.geojson │ │ │ └── PolygonContainsInteriorLineString-1.geojson │ │ │ ├── Point │ │ │ └── PolygonContainsInteriorPoint-1.geojson │ │ │ └── Polygon │ │ │ ├── PolygonContainsBoundaryInteriorPolygon-1.geojson │ │ │ ├── PolygonContainsBoundaryInteriorPolygon-2.geojson │ │ │ ├── PolygonContainsEqualPolygon-1.geojson │ │ │ ├── PolygonContainsInteriorPolygon-1.geojson │ │ │ ├── PolygonContainsInteriorPolygon-2.geojson │ │ │ └── PolygonContainsInteriorPolygon-3.geojson │ ├── coveredby │ │ ├── false │ │ │ ├── GeometryCollection │ │ │ │ └── GeometryCollection │ │ │ │ │ ├── GeometryCollectionIsNotCoveredbyDisjointGeometryCollection-1.geojson │ │ │ │ │ ├── GeometryCollectionIsNotCoveredbyDisjointGeometryCollection-2.geojson │ │ │ │ │ └── GeometryCollectionIsNotCoveredbyExteriorGeometryCollection-1.geojson │ │ │ ├── LineString │ │ │ │ ├── LineString │ │ │ │ │ ├── LineStringIsNotCoveredbyBoundaryExteriorLineString-1.geojson │ │ │ │ │ ├── LineStringIsNotCoveredbyDisjointLineString-1.geojson │ │ │ │ │ └── LineStringIsNotCoveredbyIntersectingLineString-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── LineStringIsNotCoveredbyExteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotCoveredbyIntersectingPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotCoveredbyIntersectingPolygon-2.geojson │ │ │ │ │ └── LineStringIsNotCoveredbyIntersectingPolygon-3.geojson │ │ │ ├── MultiLineString │ │ │ │ ├── MultiLineString │ │ │ │ │ ├── MultiLineStringIsNotCoveredbyExteriorMultiLineString-1.geojson │ │ │ │ │ └── MultiLineStringIsNotCoveredbyOverlapsMultiLineString-1.geojson │ │ │ │ └── MultiPolygon │ │ │ │ │ ├── MultiLineStringIsNotCoveredbyExteriorHoleMultiPolygon-1.geojson │ │ │ │ │ ├── MultiLineStringIsNotCoveredbyExteriorMultiPolygon-1.geojson │ │ │ │ │ └── MultiLineStringIsNotCoveredbyOverlapsMultiPolygon-1.geojson │ │ │ ├── MultiPoint │ │ │ │ ├── MultiLineString │ │ │ │ │ └── MultiPointIsNotCoveredbyExteriorMultiLineString-1.geojson │ │ │ │ ├── MultiPoint │ │ │ │ │ ├── MultiPointIsNotCoveredbyExteriorMultiPoint-1.geojson │ │ │ │ │ └── MultiPointIsNotCoveredbyOverlapsMultiPoint-1.geojson │ │ │ │ └── MultiPolygon │ │ │ │ │ └── MultiPointIsNotCoveredbyExteriorMultiPolygon-1.geojson │ │ │ ├── MultiPolygon │ │ │ │ └── MultiPolygon │ │ │ │ │ ├── MultiPolygonIsNotCoveredbyBoundaryExteriorMultiPolygon-1.geojson │ │ │ │ │ ├── MultiPolygonIsNotCoveredbyExteriorHoleMultiPolygon-1.geojson │ │ │ │ │ ├── MultiPolygonIsNotCoveredbyExteriorMultiPolygon-1.geojson │ │ │ │ │ └── MultiPolygonIsNotCoveredbyIntersectingMultiPolygon-1.geojson │ │ │ ├── Point │ │ │ │ ├── LineString │ │ │ │ │ ├── PointIsNotCoveredbyDisjointLineString-1.geojson │ │ │ │ │ └── PointIsNotCoveredbyDisjointLineString-2.geojson │ │ │ │ ├── Point │ │ │ │ │ ├── PointIsNotCoveredbyDisjointPoint-1.geojson │ │ │ │ │ ├── PointIsNotCoveredbyDisjointPoint-2.geojson │ │ │ │ │ └── PointIsNotCoveredbyDisjointPoint-3.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── PointIsNotCoveredbyExteriorHolePolygon-1.geojson │ │ │ │ │ └── PointIsNotCoveredbyExteriorPolygon-1.geojson │ │ │ └── Polygon │ │ │ │ └── Polygon │ │ │ │ ├── PolygonIsNotCoveredbyBoundaryExteriorPolygon-1.geojson │ │ │ │ ├── PolygonIsNotCoveredbyDisjointPolygon-1.geojson │ │ │ │ ├── PolygonIsNotCoveredbyExteriorHolePolygon-1.geojson │ │ │ │ ├── PolygonIsNotCoveredbyExteriorPolygon-1.geojson │ │ │ │ ├── PolygonIsNotCoveredbyExteriorPolygon-2.geojson │ │ │ │ ├── PolygonIsNotCoveredbyIntersectsHolePolygon-1.geojson │ │ │ │ ├── PolygonIsNotCoveredbyOverlapsPolygon-1.geojson │ │ │ │ └── PolygonIsNotCoveredbyOverlapsPolygon-2.geojson │ │ ├── throws │ │ │ ├── LineString │ │ │ │ └── Point │ │ │ │ │ └── LineStringIsNotCoveredbyAnyPoint-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineString │ │ │ │ └── PolygonIsNotCoveredbyAnyLineString-1.geojson │ │ │ │ └── Point │ │ │ │ └── PolygonIsNotCoveredbyAnyPoint-1.geojson │ │ └── true │ │ │ ├── GeometryCollection │ │ │ └── GeometryCollection │ │ │ │ ├── GeometryCollectionCoveredbyBoundaryGeometryCollection-1.geojson │ │ │ │ ├── GeometryCollectionCoveredbyEqualGeometryCollection-1.geojson │ │ │ │ ├── GeometryCollectionCoveredbyInteriorGeometryCollection-1.geojson │ │ │ │ └── GeometryCollectionCoveredbyInteriorGeometryCollection-2.geojson │ │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ ├── LineStringCoveredbyContainingLineString-1.geojson │ │ │ │ ├── LineStringCoveredbyEqualLineString-1.geojson │ │ │ │ └── LineStringCoveredbyInteriorLineString-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineStringCoveredbyBoundaryInteriorPolygon-1.geojson │ │ │ │ ├── LineStringCoveredbyBoundaryInteriorPolygon-2.geojson │ │ │ │ ├── LineStringCoveredbyBoundaryInteriorPolygon-3.geojson │ │ │ │ ├── LineStringCoveredbyBoundaryPolygon-1.geojson │ │ │ │ └── LineStringCoveredbyInteriorPolygon-1.geojson │ │ │ ├── MultiLineString │ │ │ ├── MultiLineString │ │ │ │ ├── MultiLineStringCoveredbyContainingMultiLineString-1.geojson │ │ │ │ ├── MultiLineStringCoveredbyContainingMultiLineString-2.geojson │ │ │ │ └── MultiLineStringCoveredbyEqualMultiLineString-1.geojson │ │ │ └── MultiPolygon │ │ │ │ ├── MultiLineStringCoveredbyBoundaryInteriorMultiPolygon-1.geojson │ │ │ │ └── MultiLineStringCoveredbyInteriorMultiPolygon-1.geojson │ │ │ ├── MultiPoint │ │ │ ├── MultiLineString │ │ │ │ ├── MultiPointCoveredbyBoundaryInteriorMultiLineString-1.geojson │ │ │ │ ├── MultiPointCoveredbyBoundaryMultiLineString-1.geojson │ │ │ │ └── MultiPointCoveredbyInteriorMultiLineString-1.geojson │ │ │ ├── MultiPoint │ │ │ │ ├── MultiPointCoveredbyEqualMultiPoint-1.geojson │ │ │ │ └── MultiPointCoveredbyInteriorMultiPoint-1.geojson │ │ │ └── MultiPolygon │ │ │ │ ├── MultiPointCoveredbyBoundaryMultiPolygon-1.geojson │ │ │ │ └── MultiPointCoveredbyInteriorMultiPolygon-1.geojson │ │ │ ├── MultiPolygon │ │ │ └── MultiPolygon │ │ │ │ ├── MultiPolygonCoveredbyBoundaryInteriorMultiPolygon-1.geojson │ │ │ │ ├── MultiPolygonCoveredbyInteriorMultiPolygon-1.geojson │ │ │ │ └── MultiPolygonCoveredbyInteriorMultiPolygon-2.geojson │ │ │ ├── Point │ │ │ ├── LineString │ │ │ │ ├── PointCoveredbyBoundaryLineString-1.geojson │ │ │ │ ├── PointCoveredbyBoundaryLineString-2.geojson │ │ │ │ ├── PointCoveredbyInteriorLineString-1.geojson │ │ │ │ └── PointCoveredbyInteriorLineString-2.geojson │ │ │ ├── Point │ │ │ │ ├── PointCoveredbyEqualPoint-1.geojson │ │ │ │ ├── PointCoveredbyEqualPoint-2.geojson │ │ │ │ └── PointCoveredbyEqualPoint-3.geojson │ │ │ └── Polygon │ │ │ │ ├── PointCoveredbyBoundaryPolygon-1.geojson │ │ │ │ └── PointCoveredbyInteriorPolygon-1.geojson │ │ │ └── Polygon │ │ │ └── Polygon │ │ │ ├── PolygonCoveredbyBoundaryInteriorPolygon-1.geojson │ │ │ ├── PolygonCoveredbyBoundaryInteriorPolygon-2.geojson │ │ │ ├── PolygonCoveredbyEqualPolygon-1.geojson │ │ │ ├── PolygonCoveredbyInteriorPolygon-1.geojson │ │ │ ├── PolygonCoveredbyInteriorPolygon-2.geojson │ │ │ └── PolygonCoveredbyInteriorPolygon-3.geojson │ ├── covers │ │ ├── false │ │ │ ├── GeometryCollection │ │ │ │ └── GeometryCollection │ │ │ │ │ ├── GeometryCollectionDoesNotCoverDisjointGeometryCollection-1.geojson │ │ │ │ │ ├── GeometryCollectionDoesNotCoverDisjointGeometryCollection-2.geojson │ │ │ │ │ └── GeometryCollectionDoesNotCoverExteriorGeometryCollection-1.geojson │ │ │ ├── LineString │ │ │ │ ├── LineString │ │ │ │ │ ├── LineStringDoesNotCoverBoundaryExteriorLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotCoverDisjointLineString-1.geojson │ │ │ │ │ └── LineStringDoesNotCoverIntersectingLineString-1.geojson │ │ │ │ └── Point │ │ │ │ │ ├── LineStringDoesNotCoverDisjointPoint-1.geojson │ │ │ │ │ └── LineStringDoesNotCoverDisjointPoint-2.geojson │ │ │ ├── MultiLineString │ │ │ │ ├── MultiLineString │ │ │ │ │ ├── MultiLineStringDoesNotCoverExteriorMultiLineString-1.geojson │ │ │ │ │ └── MultiLineStringDoesNotCoverOverlapsMultiLineString-1.geojson │ │ │ │ └── MultiPoint │ │ │ │ │ └── MultiLineStringDoesNotCoverExteriorMultiPoint-1.geojson │ │ │ ├── MultiPoint │ │ │ │ └── MultiPoint │ │ │ │ │ ├── MultiPointDoesNotCoverExteriorMultiPoint-1.geojson │ │ │ │ │ └── MultiPointDoesNotCoverOverlapsMultiPoint-1.geojson │ │ │ ├── MultiPolygon │ │ │ │ ├── MultiLineString │ │ │ │ │ ├── MultiPolygonDoesNotCoverExteriorHoleMultiLineString-1.geojson │ │ │ │ │ ├── MultiPolygonDoesNotCoverExteriorMultiLineString-1.geojson │ │ │ │ │ └── MultiPolygonDoesNotCoverOverlapsMultiLineString-1.geojson │ │ │ │ ├── MultiPoint │ │ │ │ │ └── MultiPolygonDoesNotCoverExteriorMultiPoint-1.geojson │ │ │ │ └── MultiPolygon │ │ │ │ │ ├── MultiPolygonDoesNotCoverBoundaryExteriorMultiPolygon-1.geojson │ │ │ │ │ ├── MultiPolygonDoesNotCoverExteriorHoleMultiPolygon-1.geojson │ │ │ │ │ ├── MultiPolygonDoesNotCoverExteriorMultiPolygon-1.geojson │ │ │ │ │ └── MultiPolygonDoesNotCoverIntersectingMultiPolygon-1.geojson │ │ │ ├── Point │ │ │ │ └── Point │ │ │ │ │ ├── PointDoesNotCoverDisjointPoint-1.geojson │ │ │ │ │ ├── PointDoesNotCoverDisjointPoint-2.geojson │ │ │ │ │ └── PointDoesNotCoverDisjointPoint-3.geojson │ │ │ └── Polygon │ │ │ │ ├── LineString │ │ │ │ ├── PolygonDoesNotCoverExteriorLineString-1.geojson │ │ │ │ ├── PolygonDoesNotCoverIntersectingLineString-1.geojson │ │ │ │ ├── PolygonDoesNotCoverIntersectingLineString-2.geojson │ │ │ │ └── PolygonDoesNotCoverIntersectingLineString-3.geojson │ │ │ │ ├── Point │ │ │ │ ├── PolygonDoesNotCoverExteriorHolePoint-1.geojson │ │ │ │ └── PolygonDoesNotCoverExteriorPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ ├── PolygonDoesNotCoverBoundaryExteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCoverDisjointPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCoverExteriorHolePolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCoverExteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCoverExteriorPolygon-2.geojson │ │ │ │ ├── PolygonDoesNotCoverIntersectsHolePolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCoverOverlapsPolygon-1.geojson │ │ │ │ └── PolygonDoesNotCoverOverlapsPolygon-2.geojson │ │ ├── throws │ │ │ ├── LineString │ │ │ │ └── Polygon │ │ │ │ │ └── LineStringDoesNotCoverAnyPolygon-1.geojson │ │ │ └── Point │ │ │ │ ├── LineString │ │ │ │ └── PointDoesNotCoverAnyLineString-1.geojson │ │ │ │ └── Polygon │ │ │ │ └── PointDoesNotCoverAnyPolygon-1.geojson │ │ └── true │ │ │ ├── GeometryCollection │ │ │ └── GeometryCollection │ │ │ │ ├── GeometryCollectionCoversBoundaryGeometryCollection-1.geojson │ │ │ │ ├── GeometryCollectionCoversEqualGeometryCollection-1.geojson │ │ │ │ ├── GeometryCollectionCoversInteriorGeometryCollection-1.geojson │ │ │ │ └── GeometryCollectionCoversInteriorGeometryCollection-2.geojson │ │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ ├── LineStringCoversContainingLineString-1.geojson │ │ │ │ ├── LineStringCoversEqualLineString-1.geojson │ │ │ │ └── LineStringCoversInteriorLineString-1.geojson │ │ │ └── Point │ │ │ │ ├── LineStringCoversBoundaryPoint-1.geojson │ │ │ │ ├── LineStringCoversBoundaryPoint-2.geojson │ │ │ │ ├── LineStringCoversInteriorPoint-1.geojson │ │ │ │ └── LineStringCoversInteriorPoint-2.geojson │ │ │ ├── MultiLineString │ │ │ ├── MultiLineString │ │ │ │ ├── MultiLineStringCoversContainingMultiLineString-1.geojson │ │ │ │ ├── MultiLineStringCoversContainingMultiLineString-2.geojson │ │ │ │ └── MultiLineStringCoversEqualMultiLineString-1.geojson │ │ │ └── MultiPoint │ │ │ │ ├── MultiLineStringCoversBoundaryInteriorMultiPoint-1.geojson │ │ │ │ ├── MultiLineStringCoversBoundaryMultiPoint-1.geojson │ │ │ │ └── MultiLineStringCoversInteriorMultiPoint-1.geojson │ │ │ ├── MultiPoint │ │ │ └── MultiPoint │ │ │ │ ├── MultiPointCoversEqualMultiPoint-1.geojson │ │ │ │ └── MultiPointCoversInteriorMultiPoint-1.geojson │ │ │ ├── MultiPolygon │ │ │ ├── MultiLineString │ │ │ │ ├── MultiPolygonCoversBoundaryInteriorMultiLineString-1.geojson │ │ │ │ └── MultiPolygonCoversInteriorMultiLineString-1.geojson │ │ │ ├── MultiPoint │ │ │ │ ├── MultiPolygonCoversBoundaryMultiPoint-1.geojson │ │ │ │ └── MultiPolygonCoversInteriorMultiPoint-1.geojson │ │ │ └── MultiPolygon │ │ │ │ ├── MultiPolygonCoversBoundaryInteriorMultiPolygon-1.geojson │ │ │ │ ├── MultiPolygonCoversInteriorMultiPolygon-1.geojson │ │ │ │ └── MultiPolygonCoversInteriorMultiPolygon-2.geojson │ │ │ ├── Point │ │ │ └── Point │ │ │ │ ├── PointCoversEqualPoint-1.geojson │ │ │ │ ├── PointCoversEqualPoint-2.geojson │ │ │ │ └── PointCoversEqualPoint-3.geojson │ │ │ └── Polygon │ │ │ ├── LineString │ │ │ ├── PolygonCoversBoundaryInteriorLineString-1.geojson │ │ │ ├── PolygonCoversBoundaryInteriorLineString-2.geojson │ │ │ ├── PolygonCoversBoundaryInteriorLineString-3.geojson │ │ │ ├── PolygonCoversBoundaryLineString-1.geojson │ │ │ └── PolygonCoversInteriorLineString-1.geojson │ │ │ ├── Point │ │ │ ├── PolygonCoversBoundaryPoint-1.geojson │ │ │ └── PolygonCoversInteriorPoint-1.geojson │ │ │ └── Polygon │ │ │ ├── PolygonCoversBoundaryInteriorPolygon-1.geojson │ │ │ ├── PolygonCoversBoundaryInteriorPolygon-2.geojson │ │ │ ├── PolygonCoversEqualPolygon-1.geojson │ │ │ ├── PolygonCoversInteriorPolygon-1.geojson │ │ │ ├── PolygonCoversInteriorPolygon-2.geojson │ │ │ └── PolygonCoversInteriorPolygon-3.geojson │ ├── crosses │ │ ├── false │ │ │ ├── LineString │ │ │ │ ├── LineString │ │ │ │ │ ├── LineStringDoesNotCrossBoundaryLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotCrossContainedLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotCrossDisjointLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotCrossEqualLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotCrossInteriorLineString-1.geojson │ │ │ │ │ └── LineStringDoesNotCrossOverlappingLineString-1.geojson │ │ │ │ ├── MultiPoint │ │ │ │ │ ├── LineStringDoesNotCrossBoundaryMultiPoint-1.geojson │ │ │ │ │ ├── LineStringDoesNotCrossDisjointMultiPoint-1.geojson │ │ │ │ │ └── LineStringDoesNotCrossInteriorMultiPoint-1.geojson │ │ │ │ ├── Point │ │ │ │ │ ├── LineStringDoesNotCrossBoundaryPoint-1.geojson │ │ │ │ │ ├── LineStringDoesNotCrossDisjointPoint-1.geojson │ │ │ │ │ └── LineStringDoesNotCrossInteriorPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── LineStringDoesNotCrossBoundaryPolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotCrossContainingPolygon-1.geojson │ │ │ │ │ └── LineStringDoesNotCrossDisjointPolygon-1.geojson │ │ │ ├── MultiLineString │ │ │ │ └── MultiPoint │ │ │ │ │ ├── MultiLineStringDoesNotCrossBoundaryMultiPoint-1.geojson │ │ │ │ │ ├── MultiLineStringDoesNotCrossDisjointMultiPoint-1.geojson │ │ │ │ │ └── MultiLineStringDoesNotCrossInteriorMultiPoint-1.geojson │ │ │ ├── Point │ │ │ │ ├── LineString │ │ │ │ │ ├── PointDoesNotCrossBoundaryLineString-1.geojson │ │ │ │ │ ├── PointDoesNotCrossContainingLineString-1.geojson │ │ │ │ │ └── PointDoesNotCrossDisjointLineString-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── PointDoesNotCrossBoundaryPolygon-1.geojson │ │ │ │ │ ├── PointDoesNotCrossContainingPolygon-1.geojson │ │ │ │ │ └── PointDoesNotCrossDisjointPolygon-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineString │ │ │ │ ├── PolygonDoesNotCrossBoundaryInteriorLineString-1.geojson │ │ │ │ ├── PolygonDoesNotCrossBoundaryInteriorLineString-2.geojson │ │ │ │ ├── PolygonDoesNotCrossBoundaryInteriorLineString-3.geojson │ │ │ │ ├── PolygonDoesNotCrossBoundaryLineString-1.geojson │ │ │ │ ├── PolygonDoesNotCrossExteriorHoleLineString-1.geojson │ │ │ │ ├── PolygonDoesNotCrossExteriorLineString-1.geojson │ │ │ │ └── PolygonDoesNotCrossInteriorLineString-1.geojson │ │ │ │ ├── MultiPoint │ │ │ │ ├── PolygonDoesNotCrossBoundaryExteriorMultiPoint-1.geojson │ │ │ │ ├── PolygonDoesNotCrossBoundaryMultiPoint-1.geojson │ │ │ │ ├── PolygonDoesNotCrossExteriorHoleMultiPoint-1.geojson │ │ │ │ ├── PolygonDoesNotCrossExteriorMultiPoint-1.geojson │ │ │ │ └── PolygonDoesNotCrossInteriorMultiPoint-1.geojson │ │ │ │ └── Point │ │ │ │ ├── PolygonDoesNotCrossBoundaryPoint-1.geojson │ │ │ │ ├── PolygonDoesNotCrossExteriorHolePoint-1.geojson │ │ │ │ ├── PolygonDoesNotCrossExteriorPoint-1.geojson │ │ │ │ └── PolygonDoesNotCrossInteriorPoint-1.geojson │ │ ├── throws │ │ │ ├── Point │ │ │ │ └── Point │ │ │ │ │ ├── PointDoesNotCrossDisjointPoint-1.geojson │ │ │ │ │ └── PointDoesNotCrossEqualPoint-1.geojson │ │ │ └── Polygon │ │ │ │ └── Polygon │ │ │ │ ├── PolygonDoesNotCrossBoundaryExteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCrossBoundaryInteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCrossBoundaryInteriorPolygon-2.geojson │ │ │ │ ├── PolygonDoesNotCrossEqualPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCrossExteriorHolePolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCrossExteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCrossInteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCrossOverlappingPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotCrossOverlappingPolygon-2.geojson │ │ │ │ └── PolygonDoesNotCrossOverlappingPolygon-3.geojson │ │ └── true │ │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ └── LineStringCrossesIntersectingLineString-1.geojson │ │ │ ├── MultiLineString │ │ │ │ └── LineStringCrossesCrossesMultiLineString-1.geojson │ │ │ ├── MultiPoint │ │ │ │ └── LineStringCrossesCrossesMultiPoint-1.geojson │ │ │ └── Polygon │ │ │ │ └── LineStringCrossesIntersectingPolygon-1.geojson │ │ │ ├── MultiLineString │ │ │ ├── MultiPoint │ │ │ │ └── MultiLineStringCrossesCrossesMultiPoint-1.geojson │ │ │ └── Polygon │ │ │ │ ├── MultiLineStringCrossesCrossesPolygon-1.geojson │ │ │ │ ├── MultiLineStringCrossesCrossesPolygon-2.geojson │ │ │ │ └── MultiLineStringCrossesCrossesPolygon-3.geojson │ │ │ ├── MultiPoint │ │ │ └── MultiLineString │ │ │ │ └── MultiPointCrossesCrossesMultiLineString-1.geojson │ │ │ └── Polygon │ │ │ ├── LineString │ │ │ ├── PolygonCrossesIntersectingLineString-1.geojson │ │ │ ├── PolygonCrossesIntersectingLineString-2.geojson │ │ │ └── PolygonCrossesIntersectingLineString-3.geojson │ │ │ └── MultiPoint │ │ │ └── PolygonCrossesCrossesMultiPoint-1.geojson │ ├── disjoint │ │ ├── false │ │ │ ├── LineString │ │ │ │ ├── LineString │ │ │ │ │ ├── LineStringIsNotDisjointBoundaryLineString-1.geojson │ │ │ │ │ ├── LineStringIsNotDisjointContainingLineString-1.geojson │ │ │ │ │ ├── LineStringIsNotDisjointContainingLineString-2.geojson │ │ │ │ │ ├── LineStringIsNotDisjointEqualLineString-1.geojson │ │ │ │ │ ├── LineStringIsNotDisjointInteriorLineString-1.geojson │ │ │ │ │ └── LineStringIsNotDisjointIntersectingLineString-1.geojson │ │ │ │ ├── MultiLineString │ │ │ │ │ ├── LineStringIsNotDisjointBoundaryMultiLineString-1.geojson │ │ │ │ │ └── LineStringIsNotDisjointBoundaryMultiLineString-2.geojson │ │ │ │ ├── Point │ │ │ │ │ ├── LineStringIsNotDisjointBoundaryPoint-1.geojson │ │ │ │ │ └── LineStringIsNotDisjointContainingPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── LineStringIsNotDisjointBoundaryInteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotDisjointBoundaryInteriorPolygon-2.geojson │ │ │ │ │ ├── LineStringIsNotDisjointBoundaryInteriorPolygon-3.geojson │ │ │ │ │ ├── LineStringIsNotDisjointBoundaryPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotDisjointInteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotDisjointIntersectingPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotDisjointIntersectingPolygon-2.geojson │ │ │ │ │ └── LineStringIsNotDisjointIntersectingPolygon-3.geojson │ │ │ ├── Point │ │ │ │ ├── LineString │ │ │ │ │ ├── PointIsNotDisjointBoundaryLineString-1.geojson │ │ │ │ │ └── PointIsNotDisjointInteriorLineString-1.geojson │ │ │ │ ├── Point │ │ │ │ │ └── PointIsNotDisjointEqualPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── PointIsNotDisjointBoundaryPolygon-1.geojson │ │ │ │ │ └── PointIsNotDisjointInteriorPolygon-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineString │ │ │ │ ├── PolygonIsNotDisjointBoundaryLineString-1.geojson │ │ │ │ ├── PolygonIsNotDisjointContainingLineString-1.geojson │ │ │ │ └── PolygonIsNotDisjointIntersectingLineString-1.geojson │ │ │ │ ├── Point │ │ │ │ ├── PolygonIsNotDisjointBoundaryPoint-1.geojson │ │ │ │ └── PolygonIsNotDisjointContainingPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ ├── PolygonIsNotDisjointBoundaryExteriorPolygon-1.geojson │ │ │ │ ├── PolygonIsNotDisjointBoundaryInteriorPolygon-1.geojson │ │ │ │ ├── PolygonIsNotDisjointBoundaryInteriorPolygon-2.geojson │ │ │ │ ├── PolygonIsNotDisjointEqualPolygon-1.geojson │ │ │ │ ├── PolygonIsNotDisjointInteriorPolygon-1.geojson │ │ │ │ ├── PolygonIsNotDisjointIntersectsHolePolygon-1.geojson │ │ │ │ ├── PolygonIsNotDisjointOverlapsPolygon-1.geojson │ │ │ │ └── PolygonIsNotDisjointOverlapsPolygon-2.geojson │ │ ├── throws │ │ │ └── MultiPoint │ │ │ │ └── FeatureCollection │ │ │ │ └── MultiPointIsNotDisjointMixedFeatureCollection-1.geojson │ │ └── true │ │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ ├── LineStringDisjointDisjointLineString-1.geojson │ │ │ │ └── LineStringDisjointDisjointLineString-2.geojson │ │ │ ├── Point │ │ │ │ └── LineStringDisjointDisjointPoint-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineStringDisjointExteriorHolePolygon-1.geojson │ │ │ │ └── LineStringDisjointExteriorPolygon-1.geojson │ │ │ ├── Point │ │ │ ├── LineString │ │ │ │ └── PointDisjointDisjointLineString-1.geojson │ │ │ ├── Point │ │ │ │ └── PointDisjointDisjointPoint-1.geojson │ │ │ └── Polygon │ │ │ │ ├── PointDisjointExteriorHolePolygon-1.geojson │ │ │ │ └── PointDisjointExteriorPolygon-1.geojson │ │ │ └── Polygon │ │ │ ├── LineString │ │ │ └── PolygonDisjointDisjointLineString-1.geojson │ │ │ ├── Point │ │ │ └── PolygonDisjointDisjointPoint-1.geojson │ │ │ └── Polygon │ │ │ ├── PolygonDisjointExteriorHolePolygon-1.geojson │ │ │ └── PolygonDisjointExteriorPolygon-1.geojson │ ├── equals │ │ ├── false │ │ │ ├── LineString │ │ │ │ └── LineString │ │ │ │ │ ├── LineStringIsNotEqualBoundaryLineString-1.geojson │ │ │ │ │ ├── LineStringIsNotEqualContainingLineString-1.geojson │ │ │ │ │ ├── LineStringIsNotEqualDisjointLineString-1.geojson │ │ │ │ │ ├── LineStringIsNotEqualInteriorLineString-1.geojson │ │ │ │ │ └── LineStringIsNotEqualIntersectingLineString-1.geojson │ │ │ ├── Point │ │ │ │ └── Point │ │ │ │ │ └── PointIsNotEqualDisjointPoint-1.geojson │ │ │ └── Polygon │ │ │ │ └── Polygon │ │ │ │ ├── PolygonIsNotEqualBoundaryExteriorPolygon-1.geojson │ │ │ │ ├── PolygonIsNotEqualBoundaryInteriorPolygon-1.geojson │ │ │ │ ├── PolygonIsNotEqualBoundaryInteriorPolygon-2.geojson │ │ │ │ ├── PolygonIsNotEqualExteriorHolePolygon-1.geojson │ │ │ │ ├── PolygonIsNotEqualExteriorPolygon-1.geojson │ │ │ │ ├── PolygonIsNotEqualInteriorPolygon-1.geojson │ │ │ │ ├── PolygonIsNotEqualIntersectsHolePolygon-1.geojson │ │ │ │ ├── PolygonIsNotEqualOverlapsPolygon-1.geojson │ │ │ │ └── PolygonIsNotEqualOverlapsPolygon-2.geojson │ │ ├── throws │ │ │ ├── LineString │ │ │ │ ├── Point │ │ │ │ │ └── LineStringIsNotEqualBoundaryPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── LineStringIsNotEqualBoundaryInteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotEqualBoundaryInteriorPolygon-2.geojson │ │ │ │ │ ├── LineStringIsNotEqualBoundaryInteriorPolygon-3.geojson │ │ │ │ │ ├── LineStringIsNotEqualBoundaryPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotEqualExteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotEqualInteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotEqualIntersectingPolygon-1.geojson │ │ │ │ │ ├── LineStringIsNotEqualIntersectingPolygon-2.geojson │ │ │ │ │ └── LineStringIsNotEqualIntersectingPolygon-3.geojson │ │ │ ├── Point │ │ │ │ ├── LineString │ │ │ │ │ ├── PointIsNotEqualBoundaryLineString-1.geojson │ │ │ │ │ ├── PointIsNotEqualDisjointLineString-1.geojson │ │ │ │ │ └── PointIsNotEqualInteriorLineString-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── PointIsNotEqualBoundaryPolygon-1.geojson │ │ │ │ │ ├── PointIsNotEqualExteriorHolePolygon-1.geojson │ │ │ │ │ ├── PointIsNotEqualExteriorPolygon-1.geojson │ │ │ │ │ └── PointIsNotEqualInteriorPolygon-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineString │ │ │ │ └── PolygonIsNotEqualIntersectingLineString-1.geojson │ │ │ │ └── Point │ │ │ │ └── PolygonIsNotEqualBoundaryPoint-1.geojson │ │ └── true │ │ │ ├── LineString │ │ │ └── LineString │ │ │ │ └── LineStringEqualsEqualLineString-1.geojson │ │ │ ├── MultiLineString │ │ │ └── MultiLineString │ │ │ │ └── MultiLineStringEqualsEqualsTopologicallyMultiLineString-1.geojson │ │ │ ├── MultiPoint │ │ │ └── MultiPoint │ │ │ │ └── MultiPointEqualsEqualsTopologicallyMultiPoint-1.geojson │ │ │ ├── MultiPolygon │ │ │ └── MultiPolygon │ │ │ │ └── MultiPolygonEqualsEqualAreasMultiPolygon-1.geojson │ │ │ ├── Point │ │ │ └── Point │ │ │ │ └── PointEqualsEqualPoint-1.geojson │ │ │ └── Polygon │ │ │ └── Polygon │ │ │ └── PolygonEqualsEqualPolygon-1.geojson │ ├── intersects │ │ ├── false │ │ │ ├── LineString │ │ │ │ ├── LineString │ │ │ │ │ ├── LineStringDoesNotIntersectDisjointLineString-1.geojson │ │ │ │ │ └── LineStringDoesNotIntersectDisjointLineString-2.geojson │ │ │ │ ├── Point │ │ │ │ │ └── LineStringDoesNotIntersectDisjointPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── LineStringDoesNotIntersectExteriorHolePolygon-1.geojson │ │ │ │ │ └── LineStringDoesNotIntersectExteriorPolygon-1.geojson │ │ │ ├── Point │ │ │ │ ├── LineString │ │ │ │ │ └── PointDoesNotIntersectDisjointLineString-1.geojson │ │ │ │ ├── Point │ │ │ │ │ └── PointDoesNotIntersectDisjointPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── PointDoesNotIntersectExteriorHolePolygon-1.geojson │ │ │ │ │ └── PointDoesNotIntersectExteriorPolygon-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineString │ │ │ │ └── PolygonDoesNotIntersectDisjointLineString-1.geojson │ │ │ │ ├── Point │ │ │ │ └── PolygonDoesNotIntersectDisjointPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ ├── PolygonDoesNotIntersectExteriorHolePolygon-1.geojson │ │ │ │ └── PolygonDoesNotIntersectExteriorPolygon-1.geojson │ │ ├── throws │ │ │ └── MixedFeatureCollection │ │ │ │ └── MultiPoint │ │ │ │ └── MixedFeatureCollectionDoesNotIntersectMultiPoint-1.geojson │ │ └── true │ │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ ├── LineStringIntersectsBoundaryLineString-1.geojson │ │ │ │ ├── LineStringIntersectsContainingLineString-1.geojson │ │ │ │ ├── LineStringIntersectsEqualLineString-1.geojson │ │ │ │ ├── LineStringIntersectsInteriorLineString-1.geojson │ │ │ │ └── LineStringIntersectsIntersectingLineString-1.geojson │ │ │ ├── MultiLineString │ │ │ │ ├── LineStringIntersectsBoundaryMultiLineString-1.geojson │ │ │ │ └── LineStringIntersectsBoundaryMultiLineString-2.geojson │ │ │ ├── Point │ │ │ │ ├── LineStringIntersectsBoundaryPoint-1.geojson │ │ │ │ └── LineStringIntersectsContainingPoint-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineStringIntersectsBoundaryInteriorPolygon-1.geojson │ │ │ │ ├── LineStringIntersectsBoundaryInteriorPolygon-2.geojson │ │ │ │ ├── LineStringIntersectsBoundaryInteriorPolygon-3.geojson │ │ │ │ ├── LineStringIntersectsBoundaryPolygon-1.geojson │ │ │ │ ├── LineStringIntersectsInteriorPolygon-1.geojson │ │ │ │ ├── LineStringIntersectsIntersectingPolygon-1.geojson │ │ │ │ ├── LineStringIntersectsIntersectingPolygon-2.geojson │ │ │ │ └── LineStringIntersectsIntersectingPolygon-3.geojson │ │ │ ├── Point │ │ │ ├── LineString │ │ │ │ ├── PointIntersectsBoundaryLineString-1.geojson │ │ │ │ └── PointIntersectsInteriorLineString-1.geojson │ │ │ ├── Point │ │ │ │ └── PointIntersectsEqualPoint-1.geojson │ │ │ └── Polygon │ │ │ │ ├── PointIntersectsBoundaryPolygon-1.geojson │ │ │ │ └── PointIntersectsInteriorPolygon-1.geojson │ │ │ └── Polygon │ │ │ ├── LineString │ │ │ ├── PolygonIntersectsBoundaryLineString-1.geojson │ │ │ ├── PolygonIntersectsContainingLineString-1.geojson │ │ │ └── PolygonIntersectsIntersectingLineString-1.geojson │ │ │ ├── Point │ │ │ ├── PolygonIntersectsBoundaryPoint-1.geojson │ │ │ └── PolygonIntersectsContainingPoint-1.geojson │ │ │ └── Polygon │ │ │ ├── PolygonIntersectsBoundaryExteriorPolygon-1.geojson │ │ │ ├── PolygonIntersectsBoundaryInteriorPolygon-1.geojson │ │ │ ├── PolygonIntersectsBoundaryInteriorPolygon-2.geojson │ │ │ ├── PolygonIntersectsEqualPolygon-1.geojson │ │ │ ├── PolygonIntersectsInteriorPolygon-1.geojson │ │ │ ├── PolygonIntersectsIntersectsHolePolygon-1.geojson │ │ │ ├── PolygonIntersectsOverlapsPolygon-1.geojson │ │ │ └── PolygonIntersectsOverlapsPolygon-2.geojson │ ├── overlaps │ │ ├── false │ │ │ ├── LineString │ │ │ │ └── LineString │ │ │ │ │ ├── LineStringDoesNotOverlapBoundaryLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapContainedLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapDisjointLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapEqualLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapInteriorLineString-1.geojson │ │ │ │ │ └── LineStringDoesNotOverlapIntersectingLineString-1.geojson │ │ │ ├── MultiPolygon │ │ │ │ └── Polygon │ │ │ │ │ └── MultiPolygonDoesNotOverlapCoveredPolygon-1.geojson │ │ │ ├── Point │ │ │ │ └── Point │ │ │ │ │ ├── PointDoesNotOverlapDisjointPoint-1.geojson │ │ │ │ │ └── PointDoesNotOverlapEqualPoint-1.geojson │ │ │ └── Polygon │ │ │ │ └── Polygon │ │ │ │ ├── PolygonDoesNotOverlapBoundaryExteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotOverlapBoundaryInteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotOverlapBoundaryInteriorPolygon-2.geojson │ │ │ │ ├── PolygonDoesNotOverlapEqualPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotOverlapExteriorHolePolygon-1.geojson │ │ │ │ ├── PolygonDoesNotOverlapExteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotOverlapInteriorPolygon-1.geojson │ │ │ │ └── PolygonDoesNotOverlapOverlappingPolygon-1.geojson │ │ ├── throws │ │ │ ├── LineString │ │ │ │ ├── Point │ │ │ │ │ ├── LineStringDoesNotOverlapBoundaryPoint-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapContainingPoint-1.geojson │ │ │ │ │ └── LineStringDoesNotOverlapDisjointPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── LineStringDoesNotOverlapBoundaryInteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapBoundaryInteriorPolygon-2.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapBoundaryInteriorPolygon-3.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapBoundaryPolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapExteriorHolePolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapExteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapInteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapIntersectingPolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotOverlapIntersectingPolygon-2.geojson │ │ │ │ │ └── LineStringDoesNotOverlapIntersectingPolygon-3.geojson │ │ │ ├── Point │ │ │ │ ├── LineString │ │ │ │ │ ├── PointDoesNotOverlapBoundaryLineString-1.geojson │ │ │ │ │ ├── PointDoesNotOverlapDisjointLineString-1.geojson │ │ │ │ │ └── PointDoesNotOverlapInteriorLineString-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── PointDoesNotOverlapBoundaryPolygon-1.geojson │ │ │ │ │ ├── PointDoesNotOverlapExteriorHolePolygon-1.geojson │ │ │ │ │ ├── PointDoesNotOverlapExteriorPolygon-1.geojson │ │ │ │ │ └── PointDoesNotOverlapInteriorPolygon-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineString │ │ │ │ ├── PolygonDoesNotOverlapBoundaryLineString-1.geojson │ │ │ │ ├── PolygonDoesNotOverlapContainingLineString-1.geojson │ │ │ │ ├── PolygonDoesNotOverlapDisjointLineString-1.geojson │ │ │ │ └── PolygonDoesNotOverlapIntersectingLineString-1.geojson │ │ │ │ └── Point │ │ │ │ ├── PolygonDoesNotOverlapBoundaryPoint-1.geojson │ │ │ │ ├── PolygonDoesNotOverlapContainingPoint-1.geojson │ │ │ │ └── PolygonDoesNotOverlapDisjointPoint-1.geojson │ │ └── true │ │ │ ├── LineString │ │ │ └── LineString │ │ │ │ └── LineStringOverlapsOverlappingLineString-1.geojson │ │ │ ├── MultiPoint │ │ │ └── MultiPoint │ │ │ │ └── MultiPointOverlapsOverlappingMultiPoint-1.geojson │ │ │ ├── MultiPolygon │ │ │ └── Polygon │ │ │ │ └── MultiPolygonOverlapsOverlappingPolygon-1.geojson │ │ │ └── Polygon │ │ │ └── Polygon │ │ │ ├── PolygonOverlapsOverlappingPolygon-1.geojson │ │ │ └── PolygonOverlapsOverlappingPolygon-2.geojson │ ├── touches │ │ ├── false │ │ │ ├── LineString │ │ │ │ ├── LineString │ │ │ │ │ ├── LineStringDoesNotTouchBoundaryLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotTouchContainingLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotTouchDisjointLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotTouchDisjointLineString-2.geojson │ │ │ │ │ ├── LineStringDoesNotTouchEqualLineString-1.geojson │ │ │ │ │ ├── LineStringDoesNotTouchInteriorLineString-1.geojson │ │ │ │ │ └── LineStringDoesNotTouchIntersectingLineString-1.geojson │ │ │ │ ├── MultiPoint │ │ │ │ │ ├── LineStringDoesNotTouchContainingMultiPoint-1.geojson │ │ │ │ │ ├── LineStringDoesNotTouchDisjointMultiPoint-1.geojson │ │ │ │ │ └── LineStringDoesNotTouchInteriorMultiPoint-1.geojson │ │ │ │ ├── Point │ │ │ │ │ ├── LineStringDoesNotTouchContainingPoint-1.geojson │ │ │ │ │ └── LineStringDoesNotTouchDisjointPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── LineStringDoesNotTouchBoundaryInteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotTouchBoundaryInteriorPolygon-2.geojson │ │ │ │ │ ├── LineStringDoesNotTouchBoundaryInteriorPolygon-3.geojson │ │ │ │ │ ├── LineStringDoesNotTouchExteriorHolePolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotTouchExteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotTouchInteriorPolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotTouchIntersectingPolygon-1.geojson │ │ │ │ │ ├── LineStringDoesNotTouchIntersectingPolygon-2.geojson │ │ │ │ │ └── LineStringDoesNotTouchIntersectingPolygon-3.geojson │ │ │ ├── MultiLineString │ │ │ │ ├── MultiLineString │ │ │ │ │ ├── MultiLineStringDoesNotTouchContainingMultiLineString-1.geojson │ │ │ │ │ ├── MultiLineStringDoesNotTouchDisjointMultiLineString-1.geojson │ │ │ │ │ ├── MultiLineStringDoesNotTouchDisjointMultiLineString-2.geojson │ │ │ │ │ ├── MultiLineStringDoesNotTouchEqualMultiLineString-1.geojson │ │ │ │ │ ├── MultiLineStringDoesNotTouchInteriorMultiLineString-1.geojson │ │ │ │ │ └── MultiLineStringDoesNotTouchIntersectingMultiLineString-1.geojson │ │ │ │ ├── MultiPoint │ │ │ │ │ ├── MultiLineStringDoesNotTouchContainingMultiPoint-1.geojson │ │ │ │ │ └── MultiLineStringDoesNotTouchDisjointMultiPoint-1.geojson │ │ │ │ └── MultiPolygon │ │ │ │ │ ├── MultiLineStringDoesNotTouchExteriorMultiPolygon-1.geojson │ │ │ │ │ ├── MultiLineStringDoesNotTouchIntersectingMultiPolygon-1.geojson │ │ │ │ │ ├── MultiLineStringDoesNotTouchOverlappingMultiPolygon-1.geojson │ │ │ │ │ └── MultiLineStringDoesNotTouchWithinMultiPolygon-1.geojson │ │ │ ├── MultiPolygon │ │ │ │ ├── MultiPoint │ │ │ │ │ ├── MultiPolygonDoesNotTouchCrossesMultiPoint-1.geojson │ │ │ │ │ └── MultiPolygonDoesNotTouchDisjointMultiPoint-1.geojson │ │ │ │ └── MultiPolygon │ │ │ │ │ ├── MultiPolygonDoesNotTouchExteriorHoleMultiPolygon-1.geojson │ │ │ │ │ └── MultiPolygonDoesNotTouchOverlapsMultiPolygon-1.geojson │ │ │ ├── Point │ │ │ │ ├── LineString │ │ │ │ │ ├── PointDoesNotTouchDisjointLineString-1.geojson │ │ │ │ │ └── PointDoesNotTouchInteriorLineString-1.geojson │ │ │ │ └── Polygon │ │ │ │ │ ├── PointDoesNotTouchExteriorHolePolygon-1.geojson │ │ │ │ │ ├── PointDoesNotTouchExteriorPolygon-1.geojson │ │ │ │ │ └── PointDoesNotTouchInteriorPolygon-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineString │ │ │ │ ├── PolygonDoesNotTouchContainingLineString-1.geojson │ │ │ │ ├── PolygonDoesNotTouchDisjointLineString-1.geojson │ │ │ │ └── PolygonDoesNotTouchIntersectingLineString-1.geojson │ │ │ │ ├── Point │ │ │ │ ├── PolygonDoesNotTouchContainingPoint-1.geojson │ │ │ │ └── PolygonDoesNotTouchDisjointPoint-1.geojson │ │ │ │ └── Polygon │ │ │ │ ├── PolygonDoesNotTouchBoundaryInteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotTouchBoundaryInteriorPolygon-2.geojson │ │ │ │ ├── PolygonDoesNotTouchEqualPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotTouchExteriorHolePolygon-1.geojson │ │ │ │ ├── PolygonDoesNotTouchExteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotTouchInteriorPolygon-1.geojson │ │ │ │ ├── PolygonDoesNotTouchIntersectsHolePolygon-1.geojson │ │ │ │ ├── PolygonDoesNotTouchOverlapsPolygon-1.geojson │ │ │ │ └── PolygonDoesNotTouchOverlapsPolygon-2.geojson │ │ ├── throws │ │ │ ├── MultiPoint │ │ │ │ └── MultiPoint │ │ │ │ │ ├── MultiPointDoesNotTouchDisjointMultiPoint-1.geojson │ │ │ │ │ └── MultiPointDoesNotTouchEqualMultiPoint-1.geojson │ │ │ └── Point │ │ │ │ └── Point │ │ │ │ ├── PointDoesNotTouchDisjointPoint-1.geojson │ │ │ │ └── PointDoesNotTouchEqualPoint-1.geojson │ │ └── true │ │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ └── LineStringTouchesBoundaryLineString-1.geojson │ │ │ ├── MultiLineString │ │ │ │ ├── LineStringTouchesBoundaryMultiLineString-1.geojson │ │ │ │ └── LineStringTouchesBoundaryMultiLineString-2.geojson │ │ │ ├── MultiPoint │ │ │ │ ├── LineStringTouchesBoundaryMultiPoint-1.geojson │ │ │ │ └── LineStringTouchesBoundaryMultiPoint-2.geojson │ │ │ ├── Point │ │ │ │ └── LineStringTouchesBoundaryPoint-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineStringTouchesBoundaryPolygon-1.geojson │ │ │ │ └── LineStringTouchesBoundaryPolygon-2.geojson │ │ │ ├── MultiLineString │ │ │ ├── MultiLineString │ │ │ │ ├── MultiLineStringTouchesBoundaryExteriorMultiLineString-1.geojson │ │ │ │ └── MultiLineStringTouchesBoundaryMultiLineString-1.geojson │ │ │ ├── MultiPoint │ │ │ │ └── MultiLineStringTouchesBoundaryMultiPoint-1.geojson │ │ │ └── MultiPolygon │ │ │ │ ├── MultiLineStringTouchesBoundaryMultiPolygon-1.geojson │ │ │ │ ├── MultiLineStringTouchesBoundaryMultiPolygon-2.geojson │ │ │ │ └── MultiLineStringTouchesBoundaryMultiPolygon-3.geojson │ │ │ ├── MultiPolygon │ │ │ ├── MultiPoint │ │ │ │ └── MultiPolygonTouchesBoundaryMultiPoint-1.geojson │ │ │ └── MultiPolygon │ │ │ │ ├── MultiPolygonTouchesBoundaryExteriorMultiPolygon-1.geojson │ │ │ │ └── MultiPolygonTouchesBoundaryExteriorMultiPolygon-2.geojson │ │ │ ├── Point │ │ │ ├── LineString │ │ │ │ └── PointTouchesBoundaryLineString-1.geojson │ │ │ └── Polygon │ │ │ │ └── PointTouchesBoundaryPolygon-1.geojson │ │ │ └── Polygon │ │ │ ├── LineString │ │ │ ├── PolygonTouchesBoundaryLineString-1.geojson │ │ │ ├── PolygonTouchesBoundaryLineString-2.geojson │ │ │ ├── PolygonTouchesBoundaryLineString-3.geojson │ │ │ └── PolygonTouchesBoundaryLineString-4.geojson │ │ │ ├── Point │ │ │ └── PolygonTouchesBoundaryPoint-1.geojson │ │ │ └── Polygon │ │ │ ├── PolygonTouchesBoundaryExteriorPolygon-1.geojson │ │ │ └── PolygonTouchesBoundaryExteriorPolygon-2.geojson │ └── within │ │ ├── false │ │ ├── GeometryCollection │ │ │ └── GeometryCollection │ │ │ │ ├── GeometryCollectionIsNotWithinBoundaryGeometryCollection-1.geojson │ │ │ │ ├── GeometryCollectionIsNotWithinDisjointGeometryCollection-1.geojson │ │ │ │ ├── GeometryCollectionIsNotWithinDisjointGeometryCollection-2.geojson │ │ │ │ └── GeometryCollectionIsNotWithinExteriorGeometryCollection-1.geojson │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ ├── LineStringIsNotWithinBoundaryExteriorLineString-1.geojson │ │ │ │ ├── LineStringIsNotWithinBoundaryExteriorLineString-2.geojson │ │ │ │ ├── LineStringIsNotWithinBoundaryExteriorLineString-3.geojson │ │ │ │ ├── LineStringIsNotWithinDisjointLineString-1.geojson │ │ │ │ └── LineStringIsNotWithinIntersectingLineString-1.geojson │ │ │ └── Polygon │ │ │ │ ├── LineStringIsNotWithinBoundaryPolygon-1.geojson │ │ │ │ ├── LineStringIsNotWithinExteriorPolygon-1.geojson │ │ │ │ ├── LineStringIsNotWithinIntersectingPolygon-1.geojson │ │ │ │ ├── LineStringIsNotWithinIntersectingPolygon-2.geojson │ │ │ │ └── LineStringIsNotWithinIntersectingPolygon-3.geojson │ │ ├── MultiLineString │ │ │ ├── MultiLineString │ │ │ │ ├── MultiLineStringIsNotWithinExteriorMultiLineString-1.geojson │ │ │ │ └── MultiLineStringIsNotWithinOverlapsMultiLineString-1.geojson │ │ │ └── MultiPolygon │ │ │ │ ├── MultiLineStringIsNotWithinExteriorHoleMultiPolygon-1.geojson │ │ │ │ ├── MultiLineStringIsNotWithinExteriorMultiPolygon-1.geojson │ │ │ │ └── MultiLineStringIsNotWithinOverlapsMultiPolygon-1.geojson │ │ ├── MultiPoint │ │ │ ├── MultiLineString │ │ │ │ ├── MultiPointIsNotWithinBoundaryMultiLineString-1.geojson │ │ │ │ └── MultiPointIsNotWithinExteriorMultiLineString-1.geojson │ │ │ ├── MultiPoint │ │ │ │ ├── MultiPointIsNotWithinExteriorMultiPoint-1.geojson │ │ │ │ └── MultiPointIsNotWithinOverlapsMultiPoint-1.geojson │ │ │ └── MultiPolygon │ │ │ │ ├── MultiPointIsNotWithinBoundaryMultiPolygon-1.geojson │ │ │ │ └── MultiPointIsNotWithinExteriorMultiPolygon-1.geojson │ │ ├── MultiPolygon │ │ │ └── MultiPolygon │ │ │ │ ├── MultiPolygonIsNotWithinBoundaryExteriorMultiPolygon-1.geojson │ │ │ │ ├── MultiPolygonIsNotWithinExteriorHoleMultiPolygon-1.geojson │ │ │ │ ├── MultiPolygonIsNotWithinExteriorMultiPolygon-1.geojson │ │ │ │ └── MultiPolygonIsNotWithinIntersectingMultiPolygon-1.geojson │ │ ├── Point │ │ │ ├── LineString │ │ │ │ ├── PointIsNotWithinBoundaryLineString-1.geojson │ │ │ │ ├── PointIsNotWithinBoundaryLineString-2.geojson │ │ │ │ ├── PointIsNotWithinDisjointLineString-1.geojson │ │ │ │ └── PointIsNotWithinDisjointLineString-2.geojson │ │ │ ├── Point │ │ │ │ ├── PointIsNotWithinDisjointPoint-1.geojson │ │ │ │ ├── PointIsNotWithinDisjointPoint-2.geojson │ │ │ │ └── PointIsNotWithinDisjointPoint-3.geojson │ │ │ └── Polygon │ │ │ │ ├── PointIsNotWithinBoundaryPolygon-1.geojson │ │ │ │ ├── PointIsNotWithinExteriorHolePolygon-1.geojson │ │ │ │ └── PointIsNotWithinExteriorPolygon-1.geojson │ │ └── Polygon │ │ │ └── Polygon │ │ │ ├── PolygonIsNotWithinBoundaryExteriorPolygon-1.geojson │ │ │ ├── PolygonIsNotWithinDisjointPolygon-1.geojson │ │ │ ├── PolygonIsNotWithinExteriorHolePolygon-1.geojson │ │ │ ├── PolygonIsNotWithinExteriorPolygon-1.geojson │ │ │ ├── PolygonIsNotWithinExteriorPolygon-2.geojson │ │ │ ├── PolygonIsNotWithinIntersectsHolePolygon-1.geojson │ │ │ ├── PolygonIsNotWithinOverlapsPolygon-1.geojson │ │ │ └── PolygonIsNotWithinOverlapsPolygon-2.geojson │ │ ├── throws │ │ ├── LineString │ │ │ └── Point │ │ │ │ └── LineStringIsNotWithinAnyPoint-1.geojson │ │ └── Polygon │ │ │ ├── LineString │ │ │ └── PolygonIsNotWithinAnyLineString-1.geojson │ │ │ └── Point │ │ │ └── PolygonIsNotWithinAnyPoint-1.geojson │ │ └── true │ │ ├── GeometryCollection │ │ └── GeometryCollection │ │ │ ├── GeometryCollectionWithinEqualGeometryCollection-1.geojson │ │ │ ├── GeometryCollectionWithinInteriorGeometryCollection-1.geojson │ │ │ └── GeometryCollectionWithinInteriorGeometryCollection-2.geojson │ │ ├── LineString │ │ ├── LineString │ │ │ ├── LineStringWithinContainingLineString-1.geojson │ │ │ ├── LineStringWithinEqualLineString-1.geojson │ │ │ └── LineStringWithinInteriorLineString-1.geojson │ │ └── Polygon │ │ │ ├── LineStringWithinBoundaryInteriorPolygon-1.geojson │ │ │ ├── LineStringWithinBoundaryInteriorPolygon-2.geojson │ │ │ ├── LineStringWithinBoundaryInteriorPolygon-3.geojson │ │ │ └── LineStringWithinInteriorPolygon-1.geojson │ │ ├── MultiLineString │ │ ├── MultiLineString │ │ │ ├── MultiLineStringWithinContainingMultiLineString-1.geojson │ │ │ ├── MultiLineStringWithinContainingMultiLineString-2.geojson │ │ │ └── MultiLineStringWithinEqualMultiLineString-1.geojson │ │ └── MultiPolygon │ │ │ ├── MultiLineStringWithinBoundaryInteriorMultiPolygon-1.geojson │ │ │ └── MultiLineStringWithinInteriorMultiPolygon-1.geojson │ │ ├── MultiPoint │ │ ├── MultiLineString │ │ │ ├── MultiPointWithinBoundaryInteriorMultiLineString-1.geojson │ │ │ └── MultiPointWithinInteriorMultiLineString-1.geojson │ │ ├── MultiPoint │ │ │ ├── MultiPointWithinEqualMultiPoint-1.geojson │ │ │ └── MultiPointWithinInteriorMultiPoint-1.geojson │ │ └── MultiPolygon │ │ │ └── MultiPointWithinInteriorMultiPolygon-1.geojson │ │ ├── MultiPolygon │ │ └── MultiPolygon │ │ │ ├── MultiPolygonWithinBoundaryInteriorMultiPolygon-1.geojson │ │ │ ├── MultiPolygonWithinInteriorMultiPolygon-1.geojson │ │ │ └── MultiPolygonWithinInteriorMultiPolygon-2.geojson │ │ ├── Point │ │ ├── LineString │ │ │ ├── PointWithinInteriorLineString-1.geojson │ │ │ └── PointWithinInteriorLineString-2.geojson │ │ ├── Point │ │ │ ├── PointWithinEqualPoint-1.geojson │ │ │ ├── PointWithinEqualPoint-2.geojson │ │ │ └── PointWithinEqualPoint-3.geojson │ │ └── Polygon │ │ │ └── PointWithinInteriorPolygon-1.geojson │ │ └── Polygon │ │ └── Polygon │ │ ├── PolygonWithinBoundaryInteriorPolygon-1.geojson │ │ ├── PolygonWithinBoundaryInteriorPolygon-2.geojson │ │ ├── PolygonWithinEqualPolygon-1.geojson │ │ ├── PolygonWithinInteriorPolygon-1.geojson │ │ ├── PolygonWithinInteriorPolygon-2.geojson │ │ └── PolygonWithinInteriorPolygon-3.geojson └── turf │ ├── contains │ ├── false │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ └── LineIsNotContainedByLine.geojson │ │ │ └── Polygon │ │ │ │ ├── LineIsNotContainedByPolygon.geojson │ │ │ │ └── LineIsNotContainedByPolygonBoundary.geojson │ │ ├── MultiPoint │ │ │ ├── LineString │ │ │ │ ├── MultiPointsIsNotContainedByLine.geojson │ │ │ │ └── MultiPointsOnLineEndsIsNotContainedByLine.geojson │ │ │ ├── MultiPoint │ │ │ │ └── MultiPointIsNotContainedByMultiPoint.geojson │ │ │ └── Polygon │ │ │ │ ├── MultiPointAllOnBoundaryIsNotContainedByPolygon.geojson │ │ │ │ └── MultiPointIsNotContainedByPolygon.geojson │ │ ├── Point │ │ │ ├── LineString │ │ │ │ ├── PointIsNotContainedByLine.geojson │ │ │ │ ├── PointIsNotContainedByLineBecauseOnEnd.geojson │ │ │ │ └── PointOnEndIsContainedByLinestring.geojson │ │ │ ├── MultiPoint │ │ │ │ └── PointIsNotContainedBYMultiPoint.geojson │ │ │ └── Polygon │ │ │ │ ├── PointIsNotContainedByPolygon.geojson │ │ │ │ └── PointOnPolygonBoundary.geojson │ │ └── Polygon │ │ │ ├── LineString │ │ │ └── issue-#1201-false.geojson │ │ │ └── Polygon │ │ │ ├── Polygon-Polygon.geojson │ │ │ └── Polygon-Polygon2.geojson │ └── true │ │ ├── LineString │ │ ├── LineString │ │ │ ├── LineIsContainedByLine.geojson │ │ │ └── LinesExactlySame.geojson │ │ └── Polygon │ │ │ ├── LineIsContainedByPolygon.geojson │ │ │ └── LineIsContainedByPolygonWithNoInternalVertices.geojson │ │ ├── MultiPoint │ │ ├── LineString │ │ │ └── MultipointsIsContainedByLine.geojson │ │ ├── MultiPoint │ │ │ ├── MultiPointsContainedByMultiPoints.geojson │ │ │ └── MultiPointsEqual.geojson │ │ └── Polygon │ │ │ └── MultiPointIsContainedByPolygonBoundary.geojson │ │ ├── Point │ │ ├── LineString │ │ │ └── PointIsContainedByLine.geojson │ │ ├── MultiPoint │ │ │ └── PointIsContainedByMultiPoint.geojson │ │ └── Polygon │ │ │ └── PointInsidePolygonBoundary.geojson │ │ └── Polygon │ │ ├── LineString │ │ └── issue-#1201-true.geojson │ │ └── Polygon │ │ ├── PolygonExactSameShape.geojson │ │ └── PolygonIsContainedByPolygon.geojson │ ├── crosses │ ├── false │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ ├── LineDoesNotCrossButTouches.geojson │ │ │ │ └── LineDoesNotCrossLine.geojson │ │ │ └── Polygon │ │ │ │ └── LineDoesNotCrossPolygon.geojson │ │ └── MultiPoint │ │ │ └── LineString │ │ │ ├── MultiPointNotCrossLine.geojson │ │ │ └── MultiPointNotCrossLineEnd.geojson │ └── true │ │ ├── LineString │ │ ├── LineString │ │ │ └── LineCrossesLine.geojson │ │ └── Polygon │ │ │ ├── LineCrossesPolygon.geojson │ │ │ └── LineCrossesPolygonPartial.geojson │ │ └── MultiPoint │ │ └── LineString │ │ └── MultiPointsCrossLine.geojson │ ├── disjoint │ ├── false │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ └── LineString-LineString.geojson │ │ │ ├── Point │ │ │ │ ├── LineString-Point-1.geojson │ │ │ │ └── LineString-Point-2.geojson │ │ │ └── Polygon │ │ │ │ ├── LineString-In-Polygon.geojson │ │ │ │ └── LineString-Polygon.geojson │ │ ├── MultiPoint │ │ │ ├── LineString │ │ │ │ └── MultiPoint-LineString.geojson │ │ │ ├── MultiPoint │ │ │ │ └── MultiPoint-MultiPoint.geojson │ │ │ └── Polygon │ │ │ │ └── MultiPoint-Polygon.geojson │ │ ├── MultiPolygon │ │ │ └── Polygon │ │ │ │ └── MultiPolygon-Polygon.geojson │ │ ├── Point │ │ │ ├── LineString │ │ │ │ ├── Point-LineString-1.geojson │ │ │ │ ├── Point-LineString-2.geojson │ │ │ │ ├── Point-LineString-3.geojson │ │ │ │ └── Point-LineString-4.geojson │ │ │ ├── MultiPoint │ │ │ │ └── Point-MultiPoint.geojson │ │ │ ├── Point │ │ │ │ └── Point-Point.geojson │ │ │ └── Polygon │ │ │ │ ├── Point-Polygon-1.geojson │ │ │ │ └── Point-Polygon-2.geojson │ │ └── Polygon │ │ │ ├── LineString │ │ │ ├── Polygon-Containing-Linestring.geojson │ │ │ └── Polygon-LineString.geojson │ │ │ ├── MultiPolygon │ │ │ └── Polygon-MultiPolygon.geojson │ │ │ ├── Point │ │ │ └── Polygon-Point.geojson │ │ │ └── Polygon │ │ │ ├── Large-Inside-Small.geojson │ │ │ ├── Polygon-Polygon.geojson │ │ │ ├── Small-Inside-Large.geojson │ │ │ └── issue-1216.geojson │ └── true │ │ ├── LineString │ │ ├── LineString │ │ │ └── LineString-LineString.geojson │ │ ├── Point │ │ │ └── LineString-Point.geojson │ │ └── Polygon │ │ │ └── LineString-Polygon.geojson │ │ ├── MultiPoint │ │ ├── LineString │ │ │ └── MultiPoint-LineString.geojson │ │ ├── MultiPoint │ │ │ └── MultiPoint-MultiPoint.geojson │ │ ├── Point │ │ │ └── MultiPoint-Point.geojson │ │ └── Polygon │ │ │ └── MultiPoint-Polygon.geojson │ │ ├── MultiPolygon │ │ └── Polygon │ │ │ └── MultiPolygon-Polygon.geojson │ │ ├── Point │ │ ├── LineString │ │ │ └── Point-LineString.geojson │ │ ├── MultiPoint │ │ │ └── Point-Multipoint.geojson │ │ ├── Point │ │ │ └── Point-Point.geojson │ │ └── Polygon │ │ │ └── Point-Polygon.geojson │ │ └── Polygon │ │ ├── LineString │ │ └── Polygon-LineString.geojson │ │ ├── MultiPolygon │ │ └── Polygon-MultiPolygon.geojson │ │ ├── Point │ │ └── Polygon-Point.geojson │ │ └── Polygon │ │ └── Polygon-Polygon.geojson │ ├── equals │ ├── false │ │ ├── linear-rings.geojson │ │ ├── lines.geojson │ │ ├── multipoints.geojson │ │ ├── points.geojson │ │ └── polygons.geojson │ └── true │ │ ├── different-initials-poly.geojson │ │ ├── linear-rings.geojson │ │ ├── lines-extra-vertices.geojson │ │ ├── lines-reverse.geojson │ │ ├── lines.geojson │ │ ├── multipoints.geojson │ │ ├── points.geojson │ │ ├── polygons.geojson │ │ ├── reverse-lines.geojson │ │ └── reverse-polygons.geojson │ ├── intersects │ ├── false │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ └── LineString-LineString.geojson │ │ │ ├── Point │ │ │ │ └── LineString-Point.geojson │ │ │ └── Polygon │ │ │ │ └── LineString-Polygon.geojson │ │ ├── MultiPoint │ │ │ ├── LineString │ │ │ │ └── MultiPoint-LineString.geojson │ │ │ ├── MultiPoint │ │ │ │ └── MultiPoint-MultiPoint.geojson │ │ │ ├── Point │ │ │ │ └── MultiPoint-Point.geojson │ │ │ └── Polygon │ │ │ │ └── MultiPoint-Polygon.geojson │ │ ├── MultiPolygon │ │ │ └── Polygon │ │ │ │ └── MultiPolygon-Polygon.geojson │ │ ├── Point │ │ │ ├── LineString │ │ │ │ └── Point-LineString.geojson │ │ │ ├── MultiPoint │ │ │ │ └── Point-Multipoint.geojson │ │ │ ├── Point │ │ │ │ └── Point-Point.geojson │ │ │ └── Polygon │ │ │ │ └── Point-Polygon.geojson │ │ └── Polygon │ │ │ ├── LineString │ │ │ └── Polygon-LineString.geojson │ │ │ ├── MultiPolygon │ │ │ └── Polygon-MultiPolygon.geojson │ │ │ ├── Point │ │ │ └── Polygon-Point.geojson │ │ │ └── Polygon │ │ │ └── Polygon-Polygon.geojson │ └── true │ │ ├── LineString │ │ ├── LineString │ │ │ └── LineString-LineString.geojson │ │ ├── Point │ │ │ ├── LineString-Point-1.geojson │ │ │ └── LineString-Point-2.geojson │ │ └── Polygon │ │ │ ├── LineString-In-Polygon.geojson │ │ │ └── LineString-Polygon.geojson │ │ ├── MultiPoint │ │ ├── LineString │ │ │ └── MultiPoint-LineString.geojson │ │ ├── MultiPoint │ │ │ └── MultiPoint-MultiPoint.geojson │ │ └── Polygon │ │ │ └── MultiPoint-Polygon.geojson │ │ ├── MultiPolygon │ │ └── Polygon │ │ │ └── MultiPolygon-Polygon.geojson │ │ ├── Point │ │ ├── LineString │ │ │ ├── Point-LineString-1.geojson │ │ │ ├── Point-LineString-2.geojson │ │ │ ├── Point-LineString-3.geojson │ │ │ └── Point-LineString-4.geojson │ │ ├── MultiPoint │ │ │ └── Point-MultiPoint.geojson │ │ ├── Point │ │ │ └── Point-Point.geojson │ │ └── Polygon │ │ │ ├── Point-Polygon-1.geojson │ │ │ └── Point-Polygon-2.geojson │ │ └── Polygon │ │ ├── LineString │ │ ├── Polygon-Containing-Linestring.geojson │ │ └── Polygon-LineString.geojson │ │ ├── MultiPolygon │ │ └── Polygon-MultiPolygon.geojson │ │ ├── Point │ │ └── Polygon-Point.geojson │ │ └── Polygon │ │ ├── Large-Inside-Small.geojson │ │ ├── Polygon-Polygon.geojson │ │ ├── Small-Inside-Large.geojson │ │ └── issue-1216.geojson │ ├── overlaps │ ├── false │ │ ├── equal-linear-rings.geojson │ │ ├── equal-lines.geojson │ │ ├── equal-multipoints.geojson │ │ ├── equal-polygons.geojson │ │ ├── linear-rings.geojson │ │ ├── lines.geojson │ │ ├── multipoints.geojson │ │ ├── polygon-with-hole-polygon.geojson │ │ └── polygons.geojson │ └── true │ │ ├── linear-rings.geojson │ │ ├── lines.geojson │ │ ├── multipoints.geojson │ │ ├── polygon-with-hole-polygon.geojson │ │ ├── polygons.geojson │ │ ├── simple-lines.geojson │ │ └── single-multipoints.geojson │ ├── touches │ ├── false │ │ ├── LineString │ │ │ ├── LineString │ │ │ │ ├── LinesExactSame.geojson │ │ │ │ └── LivesOverlap.geojson │ │ │ ├── MultiLineString │ │ │ │ ├── LineStringOverlapsMultiLinestring.geojson │ │ │ │ └── LineStringSameAsMultiLinestring.geojson │ │ │ ├── MultiPoint │ │ │ │ ├── LineStringDoesNotTouchMP.geojson │ │ │ │ └── LineStringTouchesMultiPointButInternal.geojson │ │ │ ├── MultiPolygon │ │ │ │ └── LineDoesNotTouchMultiPoly.geojson │ │ │ └── Polygon │ │ │ │ ├── LineCrossesPolygon.geojson │ │ │ │ ├── LineDoesNotTouch.geojson │ │ │ │ └── LineWIthinPolygon.geojson │ │ ├── MultiLineString │ │ │ ├── LineString │ │ │ │ ├── MultiLineStringOverlapsLine.geojson │ │ │ │ └── MultiLineStringSameAsLine.geojson │ │ │ ├── MultiLineString │ │ │ │ ├── MultiLineStringsOverlap.geojson │ │ │ │ └── MultiLineStringsSame.geojson │ │ │ ├── MultiPoint │ │ │ │ ├── MpTouchesInternalMultiline.geojson │ │ │ │ └── MultiPointNotTouchMultiline.geojson │ │ │ ├── MultiPolygon │ │ │ │ └── MultiLineInsideMultipoly.geojson │ │ │ ├── Point │ │ │ │ ├── PointNotTouchMultiLinestring.geojson │ │ │ │ └── PointTouchesMidLineString.geojson │ │ │ └── Polygon │ │ │ │ ├── MultiLineInsidePoly.geojson │ │ │ │ └── MultiLineNotTouchPoly.geojson │ │ ├── MultiPoint │ │ │ ├── LineString │ │ │ │ ├── MultiPointTouchesInsideLine.geojson │ │ │ │ └── MultipointDoesNotTouchLine.geojson │ │ │ ├── MultiLineString │ │ │ │ ├── MpDoesNotTouchMultiLine.geojson │ │ │ │ └── MpTouchesInternalMultiLine.geojson │ │ │ ├── MultiPolygon │ │ │ │ ├── MultiPointDoesNotTouchMultipolygon │ │ │ │ └── multipoint-inside-multipolygon.geojson │ │ │ └── Polygon │ │ │ │ ├── MultiPointInsidePolygon.geojson │ │ │ │ └── MultiPointNoTouchPolygon.geojson │ │ ├── MultiPolygon │ │ │ ├── LineString │ │ │ │ └── MultiPolyNotTouchLineString.geojson │ │ │ ├── MultiLineString │ │ │ │ └── MultiPolyOverlapsMultiLine.geojson │ │ │ ├── MultiPoint │ │ │ │ └── MultiPolyNotTouchMultiPoint.geojson │ │ │ ├── MultiPolygon │ │ │ │ ├── MultiPolysDoNotTouch.geojson │ │ │ │ └── MultiPolysOverlap.geojson │ │ │ └── Point │ │ │ │ └── MultiPolyNotTouchPoint.geojson │ │ ├── Point │ │ │ ├── LineString │ │ │ │ ├── PointIsNotTouchLine.geojson │ │ │ │ └── PointOnMidLinestring.geojson │ │ │ ├── MultiLineString │ │ │ │ ├── MpNotTouchMidLineString.geojson │ │ │ │ └── MpOnMidLineString.geojson │ │ │ ├── MultiPolygon │ │ │ │ └── PointNotTouchMultipolygon.geojson │ │ │ └── Polygon │ │ │ │ ├── PointDoesNotTouchPolygon.geojson │ │ │ │ └── PointInsidePolygon.geojson │ │ └── Polygon │ │ │ ├── LineString │ │ │ └── PolyDoesNotTouchLine.geojson │ │ │ ├── MultiLineString │ │ │ ├── PolyNotTouchMultiLine.geojson │ │ │ └── PolyOverlapMultiLine.geojson │ │ │ ├── MultiPoint │ │ │ ├── PolygonNoTouchMultiPoint.geojson │ │ │ └── PolygonOverlapsMultiPoint.geojson │ │ │ ├── MultiPolygon │ │ │ └── PolyNotTouchMultipoly.geojson │ │ │ ├── Point │ │ │ ├── PolygonDoesNotTouchPoint.geojson │ │ │ └── PolygonOverlapsPoint.geojson │ │ │ └── Polygon │ │ │ ├── PolygonsDontTouch.geojson │ │ │ └── PolygonsOverlap.geojson │ └── true │ │ ├── LineString │ │ ├── LineString │ │ │ └── LineTouchesEndpoint.geojson │ │ ├── MultiLineString │ │ │ ├── LineStringTouchesEnd.geojson │ │ │ └── LineStringTouchesStart.geojson │ │ ├── MultiPoint │ │ │ └── MultipointTouchesLine.geojson │ │ ├── MultiPolygon │ │ │ ├── LineTouchesMultiPoly.geojson │ │ │ └── LineTouchesSecondMultiPoly.geojson │ │ └── Polygon │ │ │ └── LineTouchesPolygon.geojson │ │ ├── MultiLineString │ │ ├── LineString │ │ │ └── MultiLineTouchesLine.geojson │ │ ├── MultiLineString │ │ │ └── MultiLineTouchesMultiLine.geojson │ │ ├── MultiPoint │ │ │ └── MultiLineTouchesMultiPoint.geojson │ │ ├── Point │ │ │ └── MultiLineTouchesPoint.geojson │ │ └── Polygon │ │ │ └── MultiLineTouchesPolygon.geojson │ │ ├── MultiPoint │ │ ├── LineString │ │ │ └── MultipointTouchesLine.geojson │ │ ├── MultiLineString │ │ │ ├── MpTouchesEndMultiLine.geojson │ │ │ └── MpTouchesSecondMultiLine.geojson │ │ ├── MultiPolygon │ │ │ └── multipoint-touches-multipolygon.geojson │ │ └── Polygon │ │ │ └── MultiPointIsWithinPolygon.geojson │ │ ├── MultiPolygon │ │ ├── MultiLineString │ │ │ └── MultiLineTouchesMultiPoly.geojson │ │ ├── MultiPoint │ │ │ └── MultiPolyTouchesMultiPoint.geojson │ │ ├── MultiPolygon │ │ │ └── MultiPolyTouchesMultiPoly.geojson │ │ ├── Point │ │ │ └── MpTouchesPoint.geojson │ │ └── Polygon │ │ │ └── MultiPolyTouchesPoly.geojson │ │ ├── Point │ │ ├── LineString │ │ │ ├── PointOnEndLine.geojson │ │ │ └── PointOnStartLine.geojson │ │ ├── MultiLineString │ │ │ ├── MpOnEndLine.geojson │ │ │ └── MpOnStartLine.geojson │ │ ├── MultiPolygon │ │ │ ├── PointTouchesMultipolygon.geojson │ │ │ └── PointTouchesMultipolygonHole.geojson │ │ └── Polygon │ │ │ ├── PointOnEdgePolygon.geojson │ │ │ ├── PointOnHole.geojson │ │ │ └── PointOnVerticePolygon.geojson │ │ └── Polygon │ │ ├── LineString │ │ └── PolygonTouchesLines.geojson │ │ ├── MultiLineString │ │ └── PolygonTouchesMultiline.geojson │ │ ├── MultiPoint │ │ └── PolygonTouchesMultiPoint.geojson │ │ ├── MultiPolygon │ │ └── PolyTouchMultiPolys.geojson │ │ ├── Point │ │ ├── PolygonTouchesPoint.geojson │ │ └── PolygonTouchesPointVertice.geojson │ │ └── Polygon │ │ ├── PolygonTouchesEdges.geojson │ │ └── PolygonsTouchVertices.geojson │ └── within │ ├── false │ ├── LineString │ │ ├── LineString │ │ │ └── LineIsNotWithinLine.geojson │ │ └── Polygon │ │ │ ├── LineIsNotWIthinPolygon.geojson │ │ │ └── LineIsNotWIthinPolygonBoundary.geojson │ ├── MultiLineString │ │ └── MultiPolygon │ │ │ └── skip-multilinestring-not-within-multipolygon.geojson │ ├── MultiPoint │ │ ├── LineString │ │ │ ├── MultiPointsIsNotWIthinLine.geojson │ │ │ └── MultiPointsOnLineEndsIsNotWIthinLine.geojson │ │ ├── MultiPoint │ │ │ └── MultiPointIsNotWithinMultiPoint.geojson │ │ ├── MultiPolygon │ │ │ └── multipoint-not-within-multipolygon.geojson │ │ └── Polygon │ │ │ ├── MultiPointAllOnBoundaryIsNotWithinPolygon.geojson │ │ │ └── MultiPointIsNotWithinPolygon.geojson │ ├── Point │ │ ├── LineString │ │ │ ├── PointIsNotWithinLine.geojson │ │ │ ├── PointIsNotWithinLineBecauseOnEnd.geojson │ │ │ └── PointOnEndIsWithinLinestring.geojson │ │ ├── MultiPoint │ │ │ └── PointIsNotWithinMultiPoint.geojson │ │ ├── MultiPolygon │ │ │ └── point-not-within-multipolygon.geojson │ │ └── Polygon │ │ │ ├── PointIsNotWithinPolygon.geojson │ │ │ └── PointOnPolygonBoundary.geojson │ └── Polygon │ │ ├── MultiPolygon │ │ └── polygon-not-within-multipolygon.geojson │ │ └── Polygon │ │ └── Polygon-Polygon.geojson │ └── true │ ├── LineString │ ├── LineString │ │ ├── LineIsWithinLine.geojson │ │ └── LinesExactSame.geojson │ └── Polygon │ │ ├── LineIsContainedByPolygon.geojson │ │ └── LineIsContainedByPolygonWithNoInternalVertices.geojson │ ├── MultiLineString │ └── MultiPolygon │ │ └── skip-multilinestring-within-multipolygon.geojson │ ├── MultiPoint │ ├── LineString │ │ └── MultipointsIsWithinLine.geojson │ ├── MultiPoint │ │ └── MultiPointsWithinMultiPoints.geojson │ ├── MultiPolygon │ │ └── multipoint-within-multipolygon.geojson │ └── Polygon │ │ └── MultiPointIsWithinPolygon.geojson │ ├── MultiPolygon │ └── MultiPolygon │ │ └── skip-multipolygon-within-multipolygon.geojson │ ├── Point │ ├── LineString │ │ └── PointIsWithinLine.geojson │ ├── MultiPoint │ │ └── PointIsWithinMultiPoint.geojson │ ├── MultiPolygon │ │ └── point-within-multipolygon.geojson │ └── Polygon │ │ └── PointIsWithinPolygon.geojson │ └── Polygon │ ├── MultiPolygon │ └── polygon-within-multipolygon.geojson │ └── Polygon │ ├── PolygonIsWIthinPolygon.geojson │ └── PolygonsExactSameShape.geojson ├── de9im.loader.js ├── de9im.test.js ├── report.js └── turf.test.js /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "commonjs": true, 4 | "es6": true, 5 | "node": true 6 | }, 7 | "extends": "google", 8 | "globals": { 9 | "Atomics": "readonly", 10 | "SharedArrayBuffer": "readonly" 11 | }, 12 | "parserOptions": { 13 | "ecmaVersion": 2018, 14 | "sourceType": "module" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: build 2 | 3 | on: ["push", "pull_request"] 4 | 5 | jobs: 6 | 7 | build: 8 | name: Build 9 | runs-on: ubuntu-latest 10 | steps: 11 | 12 | - uses: actions/checkout@v2 13 | - name: Use Node.js 16.x 14 | uses: actions/setup-node@v2 15 | with: 16 | node-version: 16.x 17 | - name: npm install, npm test 18 | run: | 19 | npm install 20 | npm test 21 | - name: Coveralls 22 | uses: coverallsapp/github-action@master 23 | with: 24 | github-token: ${{ secrets.GITHUB_TOKEN }} 25 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: release 2 | 3 | on: 4 | release: 5 | types: [created] 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@v2 12 | - uses: actions/setup-node@v2 13 | with: 14 | node-version: 16.x 15 | - run: npm ci 16 | - run: npm test 17 | 18 | publish-npm: 19 | needs: build 20 | runs-on: ubuntu-latest 21 | steps: 22 | - uses: actions/checkout@v2 23 | - uses: actions/setup-node@v2 24 | with: 25 | node-version: 16.x 26 | registry-url: https://registry.npmjs.org/ 27 | - run: npm ci 28 | - run: npm publish 29 | env: 30 | NODE_AUTH_TOKEN: ${{secrets.npm_token}} 31 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.nyc_output/ 2 | /.vscode/ 3 | /benchmark/ 4 | /coverage/ 5 | /docs/data/ 6 | /node_modules/ 7 | *.code-workspace 8 | de9im.js 9 | de9im.min.js 10 | -------------------------------------------------------------------------------- /docs/css/example.css: -------------------------------------------------------------------------------- 1 | html, body 2 | { 3 | margin: 0; 4 | padding: 0; 5 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 6 | } 7 | 8 | #banner 9 | { 10 | background-color: #000000; 11 | color: #ffffff; 12 | height: 40px; 13 | left: 0; 14 | line-height: 40px; 15 | padding-left: 20px; 16 | position: fixed; 17 | right: 0; 18 | top: 0; 19 | } 20 | 21 | #explorer 22 | { 23 | bottom: 0; 24 | left: 0; 25 | position: fixed; 26 | right: 0; 27 | top: 40px; 28 | } 29 | 30 | #label 31 | { 32 | text-decoration: none; 33 | color: white; 34 | font-size: 11pt; 35 | font-weight: bold; 36 | text-shadow: black 0.1em 0.1em 0.2em; 37 | } 38 | 39 | #marker 40 | { 41 | width: 20px; 42 | height: 20px; 43 | border: 1px solid #088; 44 | border-radius: 10px; 45 | background-color: #0ff; 46 | opacity: 0.5; 47 | } 48 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import contains from './src/contains'; 2 | import coveredby from './src/coveredby'; 3 | import covers from './src/covers'; 4 | import crosses from './src/crosses'; 5 | import disjoint from './src/disjoint'; 6 | import equals from './src/equals'; 7 | import intersects from './src/intersects'; 8 | import overlaps from './src/overlaps'; 9 | import touches from './src/touches'; 10 | import within from './src/within'; 11 | 12 | export default { 13 | contains, 14 | coveredby, 15 | covers, 16 | crosses, 17 | disjoint, 18 | equals, 19 | intersects, 20 | overlaps, 21 | touches, 22 | within, 23 | }; 24 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | import commonjs from 'rollup-plugin-commonjs'; 2 | import pkg from './package.json'; 3 | import resolve from 'rollup-plugin-node-resolve'; 4 | import {terser} from 'rollup-plugin-terser'; 5 | 6 | const banner = `\ 7 | /** 8 | * ${pkg.name} v${pkg.version} 9 | * ${pkg.description} 10 | * 11 | * @author ${pkg.author} 12 | * @license ${pkg.license} 13 | * @preserve 14 | */ 15 | `; 16 | 17 | const build = (filename, plugins) => ({ 18 | external: ['@turf/turf'], 19 | input: pkg.module, 20 | output: { 21 | banner: banner, 22 | file: filename, 23 | format: 'umd', 24 | name: pkg.name, 25 | }, 26 | plugins, 27 | }); 28 | 29 | export default [ 30 | build('de9im.js', [commonjs(), resolve()]), 31 | build('de9im.min.js', [commonjs(), resolve(), terser()]), 32 | ]; 33 | -------------------------------------------------------------------------------- /src/coveredby/polygon.js: -------------------------------------------------------------------------------- 1 | import util from '../util'; 2 | 3 | /** 4 | * @description Test if polygon(s) #1 is coveredby polygon(s) #2. 5 | * @param {Polygons} polygons1 Polygon #1. 6 | * @param {Polygons} polygons2 Polygon #2. 7 | * @private 8 | * @return {Boolean} True if covered otherwise false. 9 | */ 10 | const coveredbyPolygon = (polygons1, polygons2) => { 11 | if (util.helpers.disjoint(polygons1, polygons2)) { 12 | return false; 13 | } 14 | 15 | // Check the polygon #1 is within polygon #2. 16 | return util.polygon.isInPolygon(polygons1, polygons2); 17 | }; 18 | 19 | export default { 20 | coveredbyPolygon, 21 | }; 22 | -------------------------------------------------------------------------------- /src/crosses/polygon.js: -------------------------------------------------------------------------------- 1 | import line from './line'; 2 | import point from './point'; 3 | 4 | /** 5 | * @description Test if polygon(s) crosses line(s). 6 | * @param {Polygons} polygons Polygon to test. 7 | * @param {Lines} lines Lines to test. 8 | * @private 9 | * @return {Boolean} True if crosses otherwise false. 10 | */ 11 | const crossesLine = (polygons, lines) => { 12 | return line.crossesPolygon(lines, polygons); 13 | }; 14 | 15 | /** 16 | * @description Test if polygon(s) crosses point(s). 17 | * @param {Polygons} polygons Polygon to test. 18 | * @param {Points} points Points to test. 19 | * @private 20 | * @return {Boolean} True if crosses otherwise false. 21 | */ 22 | const crossesPoint = (polygons, points) => { 23 | return point.crossesPolygon(points, polygons); 24 | }; 25 | 26 | export default { 27 | crossesLine, 28 | crossesPoint, 29 | }; 30 | -------------------------------------------------------------------------------- /src/overlaps/point.js: -------------------------------------------------------------------------------- 1 | import util from '../util'; 2 | 3 | /** 4 | * @description Test if point(s) #1 overlaps point(s) #2. 5 | * @param {Points} points1 Point #1 to be tested. 6 | * @param {Points} points2 Point #2 to be tested. 7 | * @private 8 | * @return {Boolean} True if they overlap otherwise false. 9 | */ 10 | const overlapsPoint = (points1, points2) => { 11 | if (util.helpers.disjoint(points1, points2)) { 12 | return false; 13 | } 14 | 15 | // Find point #1 in points #2 16 | const oneInTwo = util.point.isInPoint(points1, points2, false, true); 17 | if (oneInTwo === false) { 18 | return false; 19 | } 20 | 21 | // Find point #1 not in points #2 22 | const oneNotInTwo = util.point.isInPoint(points1, points2, false, false); 23 | if (oneNotInTwo === false) { 24 | return false; 25 | } 26 | 27 | // Find point #2 not in points #1 28 | return util.point.isInPoint(points2, points1, false, false); 29 | }; 30 | 31 | export default { 32 | overlapsPoint, 33 | }; 34 | -------------------------------------------------------------------------------- /src/util/index.js: -------------------------------------------------------------------------------- 1 | import clipper from './clipper'; 2 | import helpers from './helpers'; 3 | import invariant from './invariant'; 4 | import line from './line'; 5 | import meta from './meta'; 6 | import partition from './partition'; 7 | import point from './point'; 8 | import polygon from './polygon'; 9 | import triangulate from './triangulate'; 10 | 11 | export default { 12 | clipper, 13 | helpers, 14 | invariant, 15 | line, 16 | meta, 17 | partition, 18 | point, 19 | polygon, 20 | triangulate, 21 | }; 22 | -------------------------------------------------------------------------------- /src/util/invariant.js: -------------------------------------------------------------------------------- 1 | import * as turf from '@turf/turf'; 2 | 3 | /** 4 | * @description Get base geometry type. Defined only for homogenous geometries. 5 | * @param {GeoJSON} geojson GeoJSON object. 6 | * @private 7 | * @return {Point|LineString|Polygon|Mixed|Unknown} Base geometry type. 8 | */ 9 | const type = (geojson) => { 10 | // Check if we have a single geometry type. 11 | const geoType = turf.getType(geojson); 12 | const isMany = ['Collection', 'Multi'].some((many) => geoType.includes(many)); 13 | if (isMany === false) { 14 | return geoType; 15 | } 16 | 17 | // For a collection or multipart geometry, flatten to find a common type. 18 | return turf.flattenReduce(geojson, (baseType, feature, index) => { 19 | if (baseType === 'Mixed') { 20 | return baseType; 21 | } 22 | const currentType = turf.getType(feature); 23 | if (baseType !== 'Unknown' && baseType !== currentType) { 24 | return 'Mixed'; 25 | } 26 | return currentType; 27 | }, 'Unknown'); 28 | }; 29 | 30 | export default { 31 | type, 32 | }; 33 | -------------------------------------------------------------------------------- /src/within/polygon.js: -------------------------------------------------------------------------------- 1 | import util from '../util'; 2 | 3 | /** 4 | * @description Test if polygon(s) #1 is within polygon(s) #2. 5 | * @param {Polygons} polygons1 Polygon #1. 6 | * @param {Polygons} polygons2 Polygon #2. 7 | * @private 8 | * @return {Boolean} True if within otherwise false. 9 | */ 10 | const withinPolygon = (polygons1, polygons2) => { 11 | if (util.helpers.disjoint(polygons1, polygons2)) { 12 | return false; 13 | } 14 | 15 | // Check the polygon #1 is within polygon #2. 16 | return util.polygon.isInPolygon(polygons1, polygons2); 17 | }; 18 | 19 | export default { 20 | withinPolygon, 21 | }; 22 | -------------------------------------------------------------------------------- /test/data/de9im/contains/false/Point/Point/PointDoesNotContainDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Point", 6 | "coordinates": [ 7 | 0, 8 | 0 9 | ] 10 | }, 11 | { 12 | "type": "Point", 13 | "coordinates": [ 14 | -1, 15 | 0 16 | ] 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test/data/de9im/contains/false/Point/Point/PointDoesNotContainDisjointPoint-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | -1, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/contains/throws/Point/LineString/PointDoesNotContainAnyLineString-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "LineString", 20 | "coordinates": [ 21 | [ 22 | 0, 23 | 0 24 | ], 25 | [ 26 | 1, 27 | 0 28 | ] 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/contains/true/Point/Point/PointContainsEqualPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Point", 6 | "coordinates": [ 7 | 0, 8 | 0 9 | ] 10 | }, 11 | { 12 | "type": "Point", 13 | "coordinates": [ 14 | 0, 15 | 0 16 | ] 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test/data/de9im/contains/true/Point/Point/PointContainsEqualPoint-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/coveredby/false/Point/Point/PointIsNotCoveredbyDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Point", 6 | "coordinates": [ 7 | -1, 8 | 0 9 | ] 10 | }, 11 | { 12 | "type": "Point", 13 | "coordinates": [ 14 | 0, 15 | 0 16 | ] 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test/data/de9im/coveredby/false/Point/Point/PointIsNotCoveredbyDisjointPoint-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | -1, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/coveredby/throws/LineString/Point/LineStringIsNotCoveredbyAnyPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 1, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/coveredby/true/Point/Point/PointCoveredbyEqualPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Point", 6 | "coordinates": [ 7 | 0, 8 | 0 9 | ] 10 | }, 11 | { 12 | "type": "Point", 13 | "coordinates": [ 14 | 0, 15 | 0 16 | ] 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test/data/de9im/coveredby/true/Point/Point/PointCoveredbyEqualPoint-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/covers/false/Point/Point/PointDoesNotCoverDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Point", 6 | "coordinates": [ 7 | 0, 8 | 0 9 | ] 10 | }, 11 | { 12 | "type": "Point", 13 | "coordinates": [ 14 | -1, 15 | 0 16 | ] 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test/data/de9im/covers/false/Point/Point/PointDoesNotCoverDisjointPoint-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | -1, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/covers/throws/Point/LineString/PointDoesNotCoverAnyLineString-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "LineString", 20 | "coordinates": [ 21 | [ 22 | 0, 23 | 0 24 | ], 25 | [ 26 | 1, 27 | 0 28 | ] 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/covers/true/Point/Point/PointCoversEqualPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Point", 6 | "coordinates": [ 7 | 0, 8 | 0 9 | ] 10 | }, 11 | { 12 | "type": "Point", 13 | "coordinates": [ 14 | 0, 15 | 0 16 | ] 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test/data/de9im/covers/true/Point/Point/PointCoversEqualPoint-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/crosses/false/Point/LineString/PointDoesNotCrossBoundaryLineString-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "LineString", 20 | "coordinates": [ 21 | [ 22 | 0, 23 | 0 24 | ], 25 | [ 26 | 1, 27 | 0 28 | ] 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/crosses/false/Point/LineString/PointDoesNotCrossContainingLineString-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "LineString", 20 | "coordinates": [ 21 | [ 22 | -1, 23 | 0 24 | ], 25 | [ 26 | 0, 27 | 0 28 | ], 29 | [ 30 | 1, 31 | 0 32 | ] 33 | ] 34 | } 35 | } 36 | ] 37 | } -------------------------------------------------------------------------------- /test/data/de9im/crosses/false/Point/LineString/PointDoesNotCrossDisjointLineString-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "LineString", 20 | "coordinates": [ 21 | [ 22 | 1, 23 | 0 24 | ], 25 | [ 26 | 2, 27 | 0 28 | ] 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/crosses/throws/Point/Point/PointDoesNotCrossDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | -1, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/crosses/throws/Point/Point/PointDoesNotCrossEqualPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/disjoint/false/LineString/Point/LineStringIsNotDisjointBoundaryPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 1, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/disjoint/false/LineString/Point/LineStringIsNotDisjointContainingPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | -1, 12 | 0 13 | ], 14 | [ 15 | 0, 16 | 0 17 | ], 18 | [ 19 | 1, 20 | 0 21 | ] 22 | ] 23 | } 24 | }, 25 | { 26 | "type": "Feature", 27 | "properties": {}, 28 | "geometry": { 29 | "type": "Point", 30 | "coordinates": [ 31 | 0, 32 | 0 33 | ] 34 | } 35 | } 36 | ] 37 | } -------------------------------------------------------------------------------- /test/data/de9im/disjoint/false/Point/Point/PointIsNotDisjointEqualPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/disjoint/true/LineString/Point/LineStringDisjointDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 1, 12 | 0 13 | ], 14 | [ 15 | 2, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/disjoint/true/Point/Point/PointDisjointDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | -1, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/equals/false/Point/Point/PointIsNotEqualDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | -1, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/equals/throws/LineString/Point/LineStringIsNotEqualBoundaryPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 1, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/equals/true/Point/Point/PointEqualsEqualPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/intersects/false/LineString/Point/LineStringDoesNotIntersectDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 1, 12 | 0 13 | ], 14 | [ 15 | 2, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/intersects/false/Point/Point/PointDoesNotIntersectDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | -1, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/intersects/true/LineString/Point/LineStringIntersectsBoundaryPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 1, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/intersects/true/LineString/Point/LineStringIntersectsContainingPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | -1, 12 | 0 13 | ], 14 | [ 15 | 0, 16 | 0 17 | ], 18 | [ 19 | 1, 20 | 0 21 | ] 22 | ] 23 | } 24 | }, 25 | { 26 | "type": "Feature", 27 | "properties": {}, 28 | "geometry": { 29 | "type": "Point", 30 | "coordinates": [ 31 | 0, 32 | 0 33 | ] 34 | } 35 | } 36 | ] 37 | } -------------------------------------------------------------------------------- /test/data/de9im/intersects/true/Point/Point/PointIntersectsEqualPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/overlaps/false/Point/Point/PointDoesNotOverlapDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | -1, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/overlaps/false/Point/Point/PointDoesNotOverlapEqualPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/overlaps/throws/LineString/Point/LineStringDoesNotOverlapBoundaryPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 1, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/overlaps/throws/LineString/Point/LineStringDoesNotOverlapDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 1, 12 | 0 13 | ], 14 | [ 15 | 2, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/touches/false/LineString/Point/LineStringDoesNotTouchContainingPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | -1, 12 | 0 13 | ], 14 | [ 15 | 0, 16 | 0 17 | ], 18 | [ 19 | 1, 20 | 0 21 | ] 22 | ] 23 | } 24 | }, 25 | { 26 | "type": "Feature", 27 | "properties": {}, 28 | "geometry": { 29 | "type": "Point", 30 | "coordinates": [ 31 | 0, 32 | 0 33 | ] 34 | } 35 | } 36 | ] 37 | } -------------------------------------------------------------------------------- /test/data/de9im/touches/false/LineString/Point/LineStringDoesNotTouchDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 1, 12 | 0 13 | ], 14 | [ 15 | 2, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/touches/throws/MultiPoint/MultiPoint/MultiPointDoesNotTouchDisjointMultiPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [ 10 | [ 11 | -1, 12 | 0 13 | ], 14 | [ 15 | 1, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "MultiPoint", 26 | "coordinates": [ 27 | [ 28 | 0, 29 | 0 30 | ] 31 | ] 32 | } 33 | } 34 | ] 35 | } -------------------------------------------------------------------------------- /test/data/de9im/touches/throws/MultiPoint/MultiPoint/MultiPointDoesNotTouchEqualMultiPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ] 14 | ] 15 | } 16 | }, 17 | { 18 | "type": "Feature", 19 | "properties": {}, 20 | "geometry": { 21 | "type": "MultiPoint", 22 | "coordinates": [ 23 | [ 24 | 0, 25 | 0 26 | ] 27 | ] 28 | } 29 | } 30 | ] 31 | } -------------------------------------------------------------------------------- /test/data/de9im/touches/throws/Point/Point/PointDoesNotTouchDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | -1, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/touches/throws/Point/Point/PointDoesNotTouchEqualPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/touches/true/LineString/Point/LineStringTouchesBoundaryPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 1, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/within/false/Point/Point/PointIsNotWithinDisjointPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Point", 6 | "coordinates": [ 7 | -1, 8 | 0 9 | ] 10 | }, 11 | { 12 | "type": "Point", 13 | "coordinates": [ 14 | 0, 15 | 0 16 | ] 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test/data/de9im/within/false/Point/Point/PointIsNotWithinDisjointPoint-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | -1, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/de9im/within/throws/LineString/Point/LineStringIsNotWithinAnyPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 1, 16 | 0 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [ 27 | 0, 28 | 0 29 | ] 30 | } 31 | } 32 | ] 33 | } -------------------------------------------------------------------------------- /test/data/de9im/within/true/Point/Point/PointWithinEqualPoint-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Point", 6 | "coordinates": [ 7 | 0, 8 | 0 9 | ] 10 | }, 11 | { 12 | "type": "Point", 13 | "coordinates": [ 14 | 0, 15 | 0 16 | ] 17 | } 18 | ] 19 | } -------------------------------------------------------------------------------- /test/data/de9im/within/true/Point/Point/PointWithinEqualPoint-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/LineString/LineString/LineIsNotContainedByLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 2], [1, 3], [1, 15.5]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/LineString/Polygon/LineIsNotContainedByPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 2], [1, 3], [1, 15.5]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/LineString/Polygon/LineIsNotContainedByPolygonBoundary.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 2], [1, 3], [1, 3.5]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/MultiPoint/LineString/MultiPointsIsNotContainedByLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12], [15, 15]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/MultiPoint/LineString/MultiPointsOnLineEndsIsNotContainedByLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/MultiPoint/MultiPoint/MultiPointIsNotContainedByMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [12, 12], [15, 15]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [1, 1.5]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/MultiPoint/Polygon/MultiPointAllOnBoundaryIsNotContainedByPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1,1],[1,10]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/MultiPoint/Polygon/MultiPointIsNotContainedByPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12], [15, 15]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/Point/LineString/PointIsNotContainedByLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [2, 2] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/Point/LineString/PointIsNotContainedByLineBecauseOnEnd.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 4] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/Point/LineString/PointOnEndIsContainedByLinestring.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 1] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/Point/MultiPoint/PointIsNotContainedBYMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [ 10 | [ 11 | 1, 12 | 1 13 | ], 14 | [ 15 | 12, 16 | 12 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [1, 4] 27 | } 28 | } 29 | ] 30 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/Point/Polygon/PointIsNotContainedByPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [14,14] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/Point/Polygon/PointOnPolygonBoundary.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1,1] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/false/Polygon/Polygon/Polygon-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 20], [1, 3], [1, 4], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/LineString/LineString/LineIsContainedByLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 2], [1, 3], [1, 3.5]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/LineString/LineString/LinesExactlySame.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/LineString/Polygon/LineIsContainedByPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [2, 3], [2, 3.5]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/LineString/Polygon/LineIsContainedByPolygonWithNoInternalVertices.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [10,10]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/MultiPoint/LineString/MultipointsIsContainedByLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [1, 1.5]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/MultiPoint/MultiPoint/MultiPointsContainedByMultiPoints.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [12, 12], [15, 15]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [15, 15]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/MultiPoint/MultiPoint/MultiPointsEqual.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [12, 12], [15, 15]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12], [15, 15]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/MultiPoint/Polygon/MultiPointIsContainedByPolygonBoundary.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[2,2],[4,4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/Point/LineString/PointIsContainedByLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 2] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/Point/MultiPoint/PointIsContainedByMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [ 10 | [ 11 | 1, 12 | 1 13 | ], 14 | [ 15 | 12, 16 | 12 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "Point", 26 | "coordinates": [1, 1] 27 | } 28 | } 29 | ] 30 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/Point/Polygon/PointInsidePolygonBoundary.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [4,4] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/contains/true/Polygon/Polygon/PolygonIsContainedByPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [2, 2], [3, 2], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/crosses/false/LineString/LineString/LineDoesNotCrossButTouches.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[-2, 2], [1, 1]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/crosses/false/LineString/LineString/LineDoesNotCrossLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[-2, 2], [-4, 2]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/crosses/false/LineString/Polygon/LineDoesNotCrossPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[-2, 2], [-4, 2]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/crosses/false/MultiPoint/LineString/MultiPointNotCrossLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[2, 2], [1, -1.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/crosses/false/MultiPoint/LineString/MultiPointNotCrossLineEnd.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [12, 12]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/crosses/true/LineString/LineString/LineCrossesLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[-2, 2], [4, 2]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/crosses/true/LineString/Polygon/LineCrossesPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/crosses/true/LineString/Polygon/LineCrossesPolygonPartial.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0.5, 2.5], [1, 1]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/crosses/true/MultiPoint/LineString/MultiPointsCrossLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 2], [12, 12]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/LineString/LineString/LineString-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0, 2], [12, 2], [12, 3], [12, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/LineString/Point/LineString-Point-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 1] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/LineString/Point/LineString-Point-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 1.5] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/LineString/Polygon/LineString-In-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1,2.5], [2,2.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/LineString/Polygon/LineString-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0, 2], [12, 2], [12, 3], [12, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/MultiPoint/LineString/MultiPoint-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [0, 0]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/MultiPoint/MultiPoint/MultiPoint-MultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[0, 0], [12, 12]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/MultiPoint/Polygon/MultiPoint-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[-1, 2], [-2, -2]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Point/LineString/Point-LineString-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Point/LineString/Point-LineString-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1.5] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Point/LineString/Point-LineString-3.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [2.5, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [2, 1], [3, 1], [4, 1]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Point/LineString/Point-LineString-4.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [2.5, 2.5] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [2, 2], [3, 3], [4, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Point/MultiPoint/Point-MultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Point/Point/Point-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [0, 0] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [0, 0] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Point/Polygon/Point-Polygon-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 2.5] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Point/Polygon/Point-Polygon-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [-1, 2] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Polygon/LineString/Polygon-Containing-Linestring.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1,2.5], [2,2.5]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Polygon/LineString/Polygon-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[0, 2], [12, 2], [12, 3], [12, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Polygon/Point/Polygon-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 2.5] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/false/Polygon/Polygon/Polygon-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [-13, -12], [-13, -13], [-11, -13], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/LineString/LineString/LineString-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0, 0], [12, 2], [12, 3], [12, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/LineString/Point/LineString-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [0, 0] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/LineString/Polygon/LineString-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0, 0], [12, 2], [12, 3], [12, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/MultiPoint/LineString/MultiPoint-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[2, 2], [0, 0]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/MultiPoint/MultiPoint/MultiPoint-MultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[0, 0], [13, 13]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/MultiPoint/Point/MultiPoint-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [12, 12]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [0, 0] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/MultiPoint/Polygon/MultiPoint-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[-3, -3], [-2, -2]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/Point/LineString/Point-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [0, 0] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/Point/MultiPoint/Point-Multipoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [0, 0] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/Point/Point/Point-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [0, 0] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [0, 1] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/Point/Polygon/Point-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/Polygon/LineString/Polygon-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[0, 0], [12, 2], [12, 3], [12, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/Polygon/Point/Polygon-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 1] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/disjoint/true/Polygon/Polygon/Polygon-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-11, -12], [-13, -12], [-13, -13], [-11, -13], [-11, -12]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/equals/false/lines.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 0, 16 | 5 17 | ], 18 | [ 19 | 5, 20 | 5 21 | ], 22 | [ 23 | 5, 24 | 0 25 | ] 26 | ] 27 | } 28 | }, 29 | { 30 | "type": "Feature", 31 | "properties": {}, 32 | "geometry": { 33 | "type": "LineString", 34 | "coordinates": [ 35 | [ 36 | 1, 37 | 0 38 | ], 39 | [ 40 | 1, 41 | 5 42 | ], 43 | [ 44 | 6, 45 | 5 46 | ], 47 | [ 48 | 6, 49 | 0 50 | ] 51 | ] 52 | } 53 | } 54 | ] 55 | } -------------------------------------------------------------------------------- /test/data/turf/equals/false/points.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 1, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/turf/equals/true/different-initials-poly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [ 10 | [ 11 | [ 12 | 1, 13 | 1 14 | ], 15 | [ 16 | 1, 17 | 0 18 | ], 19 | [ 20 | 0, 21 | 0 22 | ], 23 | [ 24 | 1, 25 | 1 26 | ] 27 | ] 28 | ] 29 | } 30 | }, 31 | { 32 | "type": "Feature", 33 | "properties": {}, 34 | "geometry": { 35 | "type": "Polygon", 36 | "coordinates": [ 37 | [ 38 | [ 39 | 0, 40 | 0 41 | ], 42 | [ 43 | 1, 44 | 1 45 | ], 46 | [ 47 | 1, 48 | 0 49 | ], 50 | [ 51 | 0, 52 | 0 53 | ] 54 | ] 55 | ] 56 | } 57 | } 58 | ] 59 | } -------------------------------------------------------------------------------- /test/data/turf/equals/true/lines-extra-vertices.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 2, 16 | 2 17 | ] 18 | ] 19 | } 20 | }, 21 | { 22 | "type": "Feature", 23 | "properties": {}, 24 | "geometry": { 25 | "type": "LineString", 26 | "coordinates": [ 27 | [ 28 | 0,0 29 | ], 30 | [ 31 | 1,1 32 | ], 33 | [ 34 | 2,2 35 | ] 36 | ] 37 | } 38 | } 39 | ] 40 | } -------------------------------------------------------------------------------- /test/data/turf/equals/true/lines-reverse.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[2, 2], [1, 1], [0, 0]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[0, 0], [1, 1], [2, 2]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/equals/true/lines.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 0, 16 | 5 17 | ], 18 | [ 19 | 5, 20 | 5 21 | ], 22 | [ 23 | 5, 24 | 0 25 | ] 26 | ] 27 | } 28 | }, 29 | { 30 | "type": "Feature", 31 | "properties": {}, 32 | "geometry": { 33 | "type": "LineString", 34 | "coordinates": [ 35 | [ 36 | 0, 37 | 0 38 | ], 39 | [ 40 | 0, 41 | 5 42 | ], 43 | [ 44 | 5, 45 | 5 46 | ], 47 | [ 48 | 5, 49 | 0 50 | ] 51 | ] 52 | } 53 | } 54 | ] 55 | } -------------------------------------------------------------------------------- /test/data/turf/equals/true/points.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [ 10 | 0, 11 | 0 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "Point", 20 | "coordinates": [ 21 | 0, 22 | 0 23 | ] 24 | } 25 | } 26 | ] 27 | } -------------------------------------------------------------------------------- /test/data/turf/equals/true/reverse-lines.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 0, 16 | 5 17 | ], 18 | [ 19 | 5, 20 | 5 21 | ], 22 | [ 23 | 5, 24 | 0 25 | ] 26 | ] 27 | } 28 | }, 29 | { 30 | "type": "Feature", 31 | "properties": {}, 32 | "geometry": { 33 | "type": "LineString", 34 | "coordinates": [ 35 | [ 36 | 5, 37 | 0 38 | ], 39 | [ 40 | 5, 41 | 5 42 | ], 43 | [ 44 | 0, 45 | 5 46 | ], 47 | [ 48 | 0, 49 | 0 50 | ] 51 | ] 52 | } 53 | } 54 | ] 55 | } -------------------------------------------------------------------------------- /test/data/turf/equals/true/reverse-polygons.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [ 10 | [ 11 | [ 12 | -53.57, 13 | 28.28 14 | ], 15 | [ 16 | -53.33, 17 | 28.29 18 | ], 19 | [ 20 | -53.34, 21 | 28.43 22 | ], 23 | [ 24 | -53.57, 25 | 28.28 26 | ] 27 | ] 28 | ] 29 | } 30 | }, 31 | { 32 | "type": "Feature", 33 | "properties": {}, 34 | "geometry": { 35 | "type": "Polygon", 36 | "coordinates": [ 37 | [ 38 | [ 39 | -53.57, 40 | 28.28 41 | ], 42 | [ 43 | -53.34, 44 | 28.43 45 | ], 46 | [ 47 | -53.33, 48 | 28.29 49 | ], 50 | [ 51 | -53.57, 52 | 28.28 53 | ] 54 | ] 55 | ] 56 | } 57 | } 58 | ] 59 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/LineString/LineString/LineString-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0, 0], [12, 2], [12, 3], [12, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/LineString/Point/LineString-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [0, 0] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/LineString/Polygon/LineString-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0, 0], [12, 2], [12, 3], [12, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/MultiPoint/LineString/MultiPoint-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[2, 2], [0, 0]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/MultiPoint/MultiPoint/MultiPoint-MultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[0, 0], [13, 13]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/MultiPoint/Point/MultiPoint-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [12, 12]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [0, 0] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/MultiPoint/Polygon/MultiPoint-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[-3, -3], [-2, -2]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/Point/LineString/Point-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [0, 0] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/Point/MultiPoint/Point-Multipoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [0, 0] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/Point/Point/Point-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [0, 0] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [0, 1] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/Point/Polygon/Point-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/Polygon/LineString/Polygon-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[0, 0], [12, 2], [12, 3], [12, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/Polygon/Point/Polygon-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 1] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/false/Polygon/Polygon/Polygon-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-11, -12], [-13, -12], [-13, -13], [-11, -13], [-11, -12]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/LineString/LineString/LineString-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0, 2], [12, 2], [12, 3], [12, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/LineString/Point/LineString-Point-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 1] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/LineString/Point/LineString-Point-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 1.5] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/LineString/Polygon/LineString-In-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1,2.5], [2,2.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/LineString/Polygon/LineString-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0, 2], [12, 2], [12, 3], [12, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/MultiPoint/LineString/MultiPoint-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [0, 0]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/MultiPoint/MultiPoint/MultiPoint-MultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[0, 0], [12, 12]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/MultiPoint/Polygon/MultiPoint-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[-1, 2], [-2, -2]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Point/LineString/Point-LineString-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Point/LineString/Point-LineString-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1.5] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Point/LineString/Point-LineString-3.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [2.5, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [2, 1], [3, 1], [4, 1]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Point/LineString/Point-LineString-4.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [2.5, 2.5] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [2, 2], [3, 3], [4, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Point/MultiPoint/Point-MultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Point/Point/Point-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [0, 0] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [0, 0] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Point/Polygon/Point-Polygon-1.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 2.5] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Point/Polygon/Point-Polygon-2.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [-1, 2] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Polygon/LineString/Polygon-Containing-Linestring.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1,2.5], [2,2.5]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Polygon/LineString/Polygon-LineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[0, 2], [12, 2], [12, 3], [12, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Polygon/Point/Polygon-Point.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1, 2.5] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/intersects/true/Polygon/Polygon/Polygon-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-1, 2], [-13, -12], [-13, -13], [-11, -13], [-1, 2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[-1, 2], [3, 2], [3, 3], [-1, 3], [-1, 2]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/overlaps/false/equal-lines.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 0, 16 | 5 17 | ], 18 | [ 19 | 5, 20 | 5 21 | ], 22 | [ 23 | 5, 24 | 0 25 | ] 26 | ] 27 | } 28 | }, 29 | { 30 | "type": "Feature", 31 | "properties": {}, 32 | "geometry": { 33 | "type": "LineString", 34 | "coordinates": [ 35 | [ 36 | 5, 37 | 0 38 | ], 39 | [ 40 | 5, 41 | 5 42 | ], 43 | [ 44 | 0, 45 | 5 46 | ], 47 | [ 48 | 0, 49 | 0 50 | ] 51 | ] 52 | } 53 | } 54 | ] 55 | } -------------------------------------------------------------------------------- /test/data/turf/overlaps/true/simple-lines.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [ 10 | [ 11 | 0, 12 | 0 13 | ], 14 | [ 15 | 0, 16 | 5 17 | ], 18 | [ 19 | 5, 20 | 5 21 | ], 22 | [ 23 | 5, 24 | 0 25 | ] 26 | ] 27 | } 28 | }, 29 | { 30 | "type": "Feature", 31 | "properties": {}, 32 | "geometry": { 33 | "type": "LineString", 34 | "coordinates": [ 35 | [ 36 | 0, 37 | 5 38 | ], 39 | [ 40 | 5, 41 | 5 42 | ], 43 | [ 44 | 5, 45 | 10 46 | ] 47 | ] 48 | } 49 | } 50 | ] 51 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/LineString/LineString/LinesExactSame.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/LineString/LineString/LivesOverlap.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 2], [1, 3], [1, 15.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/LineString/MultiLineString/LineStringOverlapsMultiLinestring.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[2, 2], [2, 3]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/LineString/MultiLineString/LineStringSameAsMultiLinestring.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/LineString/MultiPoint/LineStringDoesNotTouchMP.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[3, 1], [3, 3]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/LineString/MultiPoint/LineStringTouchesMultiPointButInternal.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [1, 3]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/LineString/MultiPolygon/LineDoesNotTouchMultiPoly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[-1, 1], [-1, 0.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/touches/false/LineString/Polygon/LineCrossesPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[2, 0], [11, 11]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/LineString/Polygon/LineDoesNotTouch.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[-1, -2], [-1, -3]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/LineString/Polygon/LineWIthinPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 2], [1, 3], [3, 3]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/LineString/MultiLineStringOverlapsLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | },{ 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[2, 2], [2, 3]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/LineString/MultiLineStringSameAsLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | },{ 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/MultiLineString/MultiLineStringsOverlap.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[2, 2], [2, 3]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/MultiLineString/MultiLineStringsSame.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/MultiPoint/MpTouchesInternalMultiline.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | },{ 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 2], [10,4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/MultiPoint/MultiPointNotTouchMultiline.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | },{ 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[12, 4], [10,4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/MultiPolygon/MultiLineInsideMultipoly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "MultiPolygon", 18 | "coordinates": [ 19 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 20 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 21 | ] 22 | } 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/Point/PointNotTouchMultiLinestring.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "Point", 18 | "coordinates": [1, 3] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/Point/PointTouchesMidLineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "Point", 18 | "coordinates": [10, 4] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/Polygon/MultiLineInsidePoly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "Polygon", 18 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiLineString/Polygon/MultiLineNotTouchPoly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "Polygon", 18 | "coordinates": [[[10, 10], [10, 100], [100, 100], [100, 10], [10, 10]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPoint/LineString/MultiPointTouchesInsideLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [1, 3]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPoint/LineString/MultipointDoesNotTouchLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[3, 1], [3, 3]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPoint/MultiLineString/MpDoesNotTouchMultiLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[12, 4], [10,4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPoint/MultiLineString/MpTouchesInternalMultiLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 2], [10,4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPoint/MultiPolygon/MultiPointDoesNotTouchMultipolygon: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[10, 14], [-14, -14]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPoint/MultiPolygon/multipoint-inside-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[4, 4], [-14, -14]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPoint/Polygon/MultiPointInsidePolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[2, 2], [12, 12], [15, 15]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPoint/Polygon/MultiPointNoTouchPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[0,0],[0,10]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPolygon/LineString/MultiPolyNotTouchLineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [ 10 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 11 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 12 | ] 13 | } 14 | },{ 15 | "type": "Feature", 16 | "properties": {}, 17 | "geometry": { 18 | "type": "LineString", 19 | "coordinates": [[-1, 1], [-1, 0.5]] 20 | } 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPolygon/MultiLineString/MultiPolyOverlapsMultiLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [ 10 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 11 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 12 | ] 13 | } 14 | },{ 15 | "type": "Feature", 16 | "properties": {}, 17 | "geometry": { 18 | "type": "MultiLineString", 19 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 20 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 21 | } 22 | } 23 | ] 24 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPolygon/MultiPoint/MultiPolyNotTouchMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [ 10 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 11 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 12 | ] 13 | } 14 | },{ 15 | "type": "Feature", 16 | "properties": {}, 17 | "geometry": { 18 | "type": "MultiPoint", 19 | "coordinates": [[10, 14], [-14, -14]] 20 | } 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPolygon/MultiPolygon/MultiPolysDoNotTouch.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [[[[10, 10], [10, 11], [11, 11], [11, 10], [10, 10]]], 10 | [[[30, 30], [30, 40], [40, 40], [40, 30], [30, 30]]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "MultiPolygon", 18 | "coordinates": [[[[1, 1], [1, 10], [9,9], [10, 1], [1, 1]]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPolygon/MultiPolygon/MultiPolysOverlap.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [[[[10, 10], [10, 11], [11, 11], [11, 10], [10, 10]]], 10 | [[[30, 30], [30, 40], [40, 40], [40, 30], [30, 30]]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "MultiPolygon", 18 | "coordinates": [[[[1, 1], [1, 10], [10.5, 10.5], [10, 1], [1, 1]]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/MultiPolygon/Point/MultiPolyNotTouchPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [ 10 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 11 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 12 | ] 13 | } 14 | },{ 15 | "type": "Feature", 16 | "properties": {}, 17 | "geometry": { 18 | "type": "Point", 19 | "coordinates": [14, 14] 20 | } 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /test/data/turf/touches/false/Point/LineString/PointIsNotTouchLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [2, 2] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Point/LineString/PointOnMidLinestring.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 2] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Point/MultiLineString/MpNotTouchMidLineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [10, 4] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Point/MultiLineString/MpOnMidLineString.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 3] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Point/MultiPolygon/PointNotTouchMultipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [14, 14] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/touches/false/Point/Polygon/PointDoesNotTouchPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [14,14] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Point/Polygon/PointInsidePolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [2,2] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Polygon/LineString/PolyDoesNotTouchLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[-1, -2], [-1, -3]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Polygon/MultiLineString/PolyNotTouchMultiLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[10, 10], [10, 100], [100, 100], [100, 10], [10, 10]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Polygon/MultiLineString/PolyOverlapMultiLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Polygon/MultiPoint/PolygonNoTouchMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[0,0],[0,10]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Polygon/MultiPoint/PolygonOverlapsMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[2, 2], [12, 12], [15, 15]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Polygon/MultiPolygon/PolyNotTouchMultipoly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [9,9], [10, 1], [1, 1]]] 10 | } 11 | }, { 12 | "type": "Feature", 13 | "properties": {}, 14 | "geometry": { 15 | "type": "MultiPolygon", 16 | "coordinates": [[[[10, 10], [10, 11], [11, 11], [11, 10], [10, 10]]], 17 | [[[30, 30], [30, 40], [40, 40], [40, 30], [30, 30]]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Polygon/Point/PolygonDoesNotTouchPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | },{ 12 | "type": "Feature", 13 | "properties": {}, 14 | "geometry": { 15 | "type": "Point", 16 | "coordinates": [14,14] 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Polygon/Point/PolygonOverlapsPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [2,2] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Polygon/Polygon/PolygonsDontTouch.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[10, 10], [10, 11], [11, 11], [11, 10], [10, 10]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [9, 9], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/false/Polygon/Polygon/PolygonsOverlap.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[10, 10], [10, 11], [11, 11], [11, 10], [10, 10]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [11, 11], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/LineString/LineString/LineTouchesEndpoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 2], [1, 3]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 3], [1, 4], [1,5]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/LineString/MultiLineString/LineStringTouchesEnd.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[2,5], [2,4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/LineString/MultiLineString/LineStringTouchesStart.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0,1], [1,1]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/LineString/MultiPoint/MultipointTouchesLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12], [15, 15]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/LineString/MultiPolygon/LineTouchesMultiPoly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0,1], [1, 1]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/touches/true/LineString/MultiPolygon/LineTouchesSecondMultiPoly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[-1, 1], [-1, -1]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/touches/true/LineString/Polygon/LineTouchesPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[0, 0], [1, 1], [1, 5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiLineString/LineString/MultiLineTouchesLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | },{ 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[2, 0], [2, 1]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiLineString/MultiLineString/MultiLineTouchesMultiLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | },{ 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[12, 10], [12, 11]], 18 | [[2, 0], [2, 1]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiLineString/MultiPoint/MultiLineTouchesMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | },{ 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [10,4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiLineString/Point/MultiLineTouchesPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "Point", 18 | "coordinates": [2, 4] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiLineString/Polygon/MultiLineTouchesPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 10 | [[2, -1], [2, 2], [2, 3], [2, 4]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "Polygon", 18 | "coordinates": [[[1, -1], [1, -10], [10, -10], [10, -1], [1, -1]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiPoint/LineString/MultipointTouchesLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [12, 12], [15, 15]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiPoint/MultiLineString/MpTouchesEndMultiLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 4], [10,4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiPoint/MultiLineString/MpTouchesSecondMultiLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[2, 4], [10,4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiPoint/MultiPolygon/multipoint-touches-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [-1, -1]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiPoint/Polygon/MultiPointIsWithinPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1,1],[14,14]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiPolygon/MultiLineString/MultiLineTouchesMultiPoly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [ 10 | [[[20, -2], [20, -20], [40, -20], [40, -2], [20, -2]]], 11 | [[[1, -1], [1, -10], [10, -10], [10, -1], [1, -1]]] 12 | ] 13 | } 14 | },{ 15 | "type": "Feature", 16 | "properties": {}, 17 | "geometry": { 18 | "type": "MultiLineString", 19 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 20 | [[2, -1], [2, 2], [2, 3], [2, 4]]] 21 | } 22 | } 23 | ] 24 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiPolygon/MultiPoint/MultiPolyTouchesMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [[[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]]] 10 | } 11 | },{ 12 | "type": "Feature", 13 | "properties": {}, 14 | "geometry": { 15 | "type": "MultiPoint", 16 | "coordinates": [[1,1],[14,14]] 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiPolygon/MultiPolygon/MultiPolyTouchesMultiPoly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [[[[10, 10], [10, 11], [11, 11], [11, 10], [10, 10]]], 10 | [[[30, 30], [30, 40], [40, 40], [40, 30], [30, 30]]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "MultiPolygon", 18 | "coordinates": [[[[1, 1], [1, 10], [10, 11], [10, 1], [1, 1]]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiPolygon/Point/MpTouchesPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [[[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]]] 10 | } 11 | },{ 12 | "type": "Feature", 13 | "properties": {}, 14 | "geometry": { 15 | "type": "Point", 16 | "coordinates": [1,5] 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/MultiPolygon/Polygon/MultiPolyTouchesPoly.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [[[[10, 10], [10, 11], [11, 11], [11, 10], [10, 10]]], 10 | [[[30, 30], [30, 40], [40, 40], [40, 30], [30, 30]]]] 11 | } 12 | }, 13 | { 14 | "type": "Feature", 15 | "properties": {}, 16 | "geometry": { 17 | "type": "Polygon", 18 | "coordinates": [[[1, 1], [1, 10], [10, 11], [10, 1], [1, 1]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Point/LineString/PointOnEndLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 4] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Point/LineString/PointOnStartLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Point/MultiLineString/MpOnEndLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 4] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Point/MultiLineString/MpOnStartLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [2, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, 1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Point/MultiPolygon/PointTouchesMultipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 2] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/touches/true/Point/MultiPolygon/PointTouchesMultipolygonHole.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [2, 2] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]], 19 | [[2, 2], [2, 4], [4, 4], [2, 2]]], 20 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 21 | ] 22 | } 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /test/data/turf/touches/true/Point/Polygon/PointOnEdgePolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1,5] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Point/Polygon/PointOnHole.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [2,2] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]], 18 | [[2, 2], [2, 4], [4, 4], [2, 2]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Point/Polygon/PointOnVerticePolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1,1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Polygon/LineString/PolygonTouchesLines.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | },{ 12 | "type": "Feature", 13 | "properties": {}, 14 | "geometry": { 15 | "type": "LineString", 16 | "coordinates": [[0, 0], [1, 1], [1, 5]] 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Polygon/MultiLineString/PolygonTouchesMultiline.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, -1], [1, -10], [10, -10], [10, -1], [1, -1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiLineString", 17 | "coordinates": [[[1, 1], [1, 2], [1, 3], [1, 4]], 18 | [[2, -1], [2, 2], [2, 3], [2, 4]]] 19 | } 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Polygon/MultiPoint/PolygonTouchesMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | },{ 12 | "type": "Feature", 13 | "properties": {}, 14 | "geometry": { 15 | "type": "MultiPoint", 16 | "coordinates": [[1,1],[14,14]] 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Polygon/MultiPolygon/PolyTouchMultiPolys.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 11], [10, 1], [1, 1]]] 10 | } 11 | }, { 12 | "type": "Feature", 13 | "properties": {}, 14 | "geometry": { 15 | "type": "MultiPolygon", 16 | "coordinates": [[[[10, 10], [10, 11], [11, 11], [11, 10], [10, 10]]], 17 | [[[30, 30], [30, 40], [40, 40], [40, 30], [30, 30]]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Polygon/Point/PolygonTouchesPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | },{ 12 | "type": "Feature", 13 | "properties": {}, 14 | "geometry": { 15 | "type": "Point", 16 | "coordinates": [1,5] 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Polygon/Point/PolygonTouchesPointVertice.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Point", 17 | "coordinates": [1,1] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Polygon/Polygon/PolygonTouchesEdges.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[10, 10], [10, 11], [11, 11], [11, 10], [10, 10]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 11], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/touches/true/Polygon/Polygon/PolygonsTouchVertices.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[10, 10], [10, 11], [11, 11], [11, 10], [10, 10]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/LineString/LineString/LineIsNotWithinLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 2], [1, 3], [1, 15.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/LineString/Polygon/LineIsNotWIthinPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 2], [1, 3], [1, 15.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/LineString/Polygon/LineIsNotWIthinPolygonBoundary.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 2], [1, 3], [1, 3.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/MultiLineString/MultiPolygon/skip-multilinestring-not-within-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [ 10 | [[4, 4], [1, 1]], 11 | [[-14, -14], [-11, -11]] 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "MultiPolygon", 20 | "coordinates": [ 21 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 22 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 23 | ] 24 | } 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /test/data/turf/within/false/MultiPoint/LineString/MultiPointsIsNotWIthinLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [12, 12], [15, 15]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/MultiPoint/LineString/MultiPointsOnLineEndsIsNotWIthinLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/MultiPoint/MultiPoint/MultiPointIsNotWithinMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [1, 1.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12], [15, 15]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/MultiPoint/MultiPolygon/multipoint-not-within-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[4, 4], [-14, -14]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/within/false/MultiPoint/Polygon/MultiPointAllOnBoundaryIsNotWithinPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1,1],[1,10]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/MultiPoint/Polygon/MultiPointIsNotWithinPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [12, 12], [15, 15]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/Point/LineString/PointIsNotWithinLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [2, 2] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/Point/LineString/PointIsNotWithinLineBecauseOnEnd.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 4] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/Point/LineString/PointOnEndIsWithinLinestring.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/Point/MultiPoint/PointIsNotWithinMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 4] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [ 18 | [ 19 | 1, 20 | 1 21 | ], 22 | [ 23 | 12, 24 | 12 25 | ] 26 | ] 27 | } 28 | } 29 | ] 30 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/Point/MultiPolygon/point-not-within-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [14, 14] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/within/false/Point/Polygon/PointIsNotWithinPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [14,14] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/Point/Polygon/PointOnPolygonBoundary.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1,1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/false/Polygon/MultiPolygon/polygon-not-within-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-12, -12], [-12, -19], [-19, -19], [-19, -12], [-12, -12]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/within/false/Polygon/Polygon/Polygon-Polygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [1, 20], [1, 3], [1, 4], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/LineString/LineString/LineIsWithinLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 2], [1, 3], [1, 3.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/LineString/LineString/LinesExactSame.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/LineString/Polygon/LineIsContainedByPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [2, 3], [2, 3.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/LineString/Polygon/LineIsContainedByPolygonWithNoInternalVertices.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "LineString", 9 | "coordinates": [[1, 1], [10,10]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/MultiLineString/MultiPolygon/skip-multilinestring-within-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiLineString", 9 | "coordinates": [ 10 | [[4, 4], [1, 1]], 11 | [[-4, -4], [-1, -1]] 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "MultiPolygon", 20 | "coordinates": [ 21 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 22 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 23 | ] 24 | } 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /test/data/turf/within/true/MultiPoint/LineString/MultipointsIsWithinLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [1, 1.5]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/MultiPoint/MultiPoint/MultiPointsWithinMultiPoints.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1, 1], [12, 12], [15, 15]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [[1, 1], [12, 12], [15, 15]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/MultiPoint/MultiPolygon/multipoint-within-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[4, 4], [-4, -4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/within/true/MultiPoint/Polygon/MultiPointIsWithinPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPoint", 9 | "coordinates": [[1,1],[4,4]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/MultiPolygon/MultiPolygon/skip-multipolygon-within-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "MultiPolygon", 9 | "coordinates": [ 10 | [[[2, 2], [2, 9], [9, 9], [9, 2], [2, 2]]], 11 | [[[-2, -2], [-2, -9], [-9, -9], [-9, -2], [-2, -2]]] 12 | ] 13 | } 14 | }, 15 | { 16 | "type": "Feature", 17 | "properties": {}, 18 | "geometry": { 19 | "type": "MultiPolygon", 20 | "coordinates": [ 21 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 22 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 23 | ] 24 | } 25 | } 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /test/data/turf/within/true/Point/LineString/PointIsWithinLine.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 2] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "LineString", 17 | "coordinates": [[1, 1], [1, 2], [1, 3], [1, 4]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/Point/MultiPoint/PointIsWithinMultiPoint.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [1, 1] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPoint", 17 | "coordinates": [ 18 | [ 19 | 1, 20 | 1 21 | ], 22 | [ 23 | 12, 24 | 12 25 | ] 26 | ] 27 | } 28 | } 29 | ] 30 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/Point/MultiPolygon/point-within-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [-4, -4] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/within/true/Point/Polygon/PointIsWithinPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Point", 9 | "coordinates": [4,4] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/data/turf/within/true/Polygon/MultiPolygon/polygon-within-multipolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[-2, -2], [-2, -9], [-9, -9], [-9, -2], [-2, -2]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "MultiPolygon", 17 | "coordinates": [ 18 | [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]], 19 | [[[-1, -1], [-1, -10], [-10, -10], [-10, -1], [-1, -1]]] 20 | ] 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/data/turf/within/true/Polygon/Polygon/PolygonIsWIthinPolygon.geojson: -------------------------------------------------------------------------------- 1 | { 2 | "type": "FeatureCollection", 3 | "features": [ 4 | { 5 | "type": "Feature", 6 | "properties": {}, 7 | "geometry": { 8 | "type": "Polygon", 9 | "coordinates": [[[1, 1], [2, 2], [3, 2], [1, 1]]] 10 | } 11 | }, 12 | { 13 | "type": "Feature", 14 | "properties": {}, 15 | "geometry": { 16 | "type": "Polygon", 17 | "coordinates": [[[1, 1], [1, 10], [10, 10], [10, 1], [1, 1]]] 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/de9im.loader.js: -------------------------------------------------------------------------------- 1 | require = require('esm')(module); 2 | module.exports = require('../index.js'); 3 | --------------------------------------------------------------------------------