New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@turf/tag

Package Overview
Dependencies
Maintainers
7
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/tag - npm Package Compare versions

Comparing version 6.5.0 to 7.0.0-alpha.0

2

index.d.ts

@@ -1,2 +0,2 @@

import { Point, FeatureCollection, Polygon, MultiPolygon } from "@turf/helpers";
import { Point, FeatureCollection, Polygon, MultiPolygon } from "geojson";

@@ -3,0 +3,0 @@ /**

{
"name": "@turf/tag",
"version": "6.5.0",
"version": "7.0.0-alpha.0",
"description": "turf tag module",

@@ -59,8 +59,8 @@ "author": "Turf Authors",

"dependencies": {
"@turf/boolean-point-in-polygon": "^6.5.0",
"@turf/clone": "^6.5.0",
"@turf/helpers": "^6.5.0",
"@turf/meta": "^6.5.0"
"@turf/boolean-point-in-polygon": "^7.0.0-alpha.0",
"@turf/clone": "^7.0.0-alpha.0",
"@turf/helpers": "^7.0.0-alpha.0",
"@turf/meta": "^7.0.0-alpha.0"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
}

@@ -7,12 +7,12 @@ # @turf/tag

Takes a set of [points](https://tools.ietf.org/html/rfc7946#section-3.1.2) and a set of [polygons](https://tools.ietf.org/html/rfc7946#section-3.1.6) and/or [multipolygons](https://tools.ietf.org/html/rfc7946#section-3.1.7) and performs a spatial join.
Takes a set of [points][1] and a set of [polygons][2] and/or [multipolygons][3] and performs a spatial join.
**Parameters**
### Parameters
- `points` **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)<[Point](https://tools.ietf.org/html/rfc7946#section-3.1.2)>** input points
- `polygons` **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)<([Polygon](https://tools.ietf.org/html/rfc7946#section-3.1.6) \| [MultiPolygon](https://tools.ietf.org/html/rfc7946#section-3.1.7))>** input (multi)polygons
- `field` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** property in `polygons` to add to joined {<Point>} features
- `outField` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** property in `points` in which to store joined property from `polygons`
* `points` **[FeatureCollection][4]<[Point][5]>** input points
* `polygons` **[FeatureCollection][4]<([Polygon][6] | [MultiPolygon][7])>** input (multi)polygons
* `field` **[string][8]** property in `polygons` to add to joined {<Point>} features
* `outField` **[string][8]** property in `points` in which to store joined property from `polygons`
**Examples**
### Examples

@@ -46,4 +46,20 @@ ```javascript

Returns **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)&lt;[Point](https://tools.ietf.org/html/rfc7946#section-3.1.2)>** points with `containingPolyId` property containing values from `polyId`
Returns **[FeatureCollection][4]<[Point][5]>** points with `containingPolyId` property containing values from `polyId`
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.2
[2]: https://tools.ietf.org/html/rfc7946#section-3.1.6
[3]: https://tools.ietf.org/html/rfc7946#section-3.1.7
[4]: https://tools.ietf.org/html/rfc7946#section-3.3
[5]: https://tools.ietf.org/html/rfc7946#section-3.1.2
[6]: https://tools.ietf.org/html/rfc7946#section-3.1.6
[7]: https://tools.ietf.org/html/rfc7946#section-3.1.7
[8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
<!-- This file is automatically generated. Please don't edit it directly:

@@ -50,0 +66,0 @@ if you find an error, edit the source file (likely index.js), and re-run

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc