Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
allow convexHull for feature, fix #230, fix #231, fix #226
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Dec 16, 2013
1 parent 28f0207 commit a297100
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 43 deletions.
2 changes: 1 addition & 1 deletion docs/core.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Method | Returns | Description
`toGeographic()` | `this` | Converts this GeoJSON object's coordinates to [geographic coordinates](http://spatialreference.org/ref/epsg/4326/).
`envelope()` | [`Envelope`](/glossary/#envelope) | Return an object with `x`, `y`, `w` and `h` suitable for passing to most indexes.
`bbox()` | [`BBox`](/glossary/#bbox) | Returns the [GeoJSON Bounding Box](/glossary/#bbox) for this primitive.
`convexHull()` | [`Polygon`](#polygon) | Returns the convex hull of this primitive as a [`Polygon`](#polygon).
`convexHull()` | [`Polygon`](#polygon) or `null` | Returns the convex hull of this primitive as a [`Polygon`](#polygon). Will return `null` if the convex hull cannot be calculated or a valid POlygon cannot be created.
<code>contains(<a href="/glossary/#geometry">&lt;Geometry&gt;</a> <i>geometry</i>)</code> | `Boolean` | Returns `true` if the passed [`GeoJSON Geometry`](/glossary/#geometry) object is completely contained inside this primitive.
<code>within(<a href="/glossary/#geometry">&lt;Geometry&gt;</a> <i>geometry</i>)</code> | `Boolean` | Returns `true` if the passed [`GeoJSON Geometry`](/glossary/#geometry) object is completely within this primitive.
<code>interesects(<a href="/glossary/#geometry">&lt;Geometry&gt;</a> <i>geometry</i>)</code> | `Boolean` | Returns `true` if the passed [`GeoJSON Geometry`](/glossary/#geometry) intersects this primitive.
Expand Down
Loading

0 comments on commit a297100

Please sign in to comment.