concavehull

WebJar for concavehull

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

concavehull
Last Version

Last Version

0.1.5
Release Date

Release Date

Type

Type

jar
Description

Description

concavehull
WebJar for concavehull
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Wildhoney/ConcaveHull

Download concavehull

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/concavehull/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>concavehull</artifactId>
    <version>0.1.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/concavehull/
implementation 'org.webjars.bower:concavehull:0.1.5'
// https://jarcasting.com/artifacts/org.webjars.bower/concavehull/
implementation ("org.webjars.bower:concavehull:0.1.5")
'org.webjars.bower:concavehull:jar:0.1.5'
<dependency org="org.webjars.bower" name="concavehull" rev="0.1.5">
  <artifact name="concavehull" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='concavehull', version='0.1.5')
)
libraryDependencies += "org.webjars.bower" % "concavehull" % "0.1.5"
[org.webjars.bower/concavehull "0.1.5"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

ConcaveHull

Travis   npm   License MIT


Based on the StackOverflow question about the CSharp implementation of a paper written by Adriano Moreira and Maribel Yasmina Santos from the University of Minho.

Initially a prototype was created by nredko – and this implementation is a refactor to transform it into a fully working module.

Getting Started

Using ConcaveHull is terribly simple – all you have to do is pass an array of objects that conform to the { lat: {Number}, lng: {Number} } format – in the case of Leaflet.js this is just an array of L.LatLng objects.

Once you have your array of latitudinal and longitudinal values, you can instantiate the object, and then invoke the getLatLngs method:

var latLngs = new ConcaveHull(latLngs).getLatLngs();

You can manually specify the maximum length of edges in metres by passing it into the constructor as the second argument:

var edgeLength = 35,
    latLngs    = new ConcaveHull(latLngs, edgeLength).getLatLngs();

Versions

Version
0.1.5