Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jts-dev] Dimension of a MultiPoint
  • From: Phil Scadden <P.Scadden@xxxxxxxxxx>
  • Date: Mon, 23 Nov 2020 21:06:27 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=gns.cri.nz; dmarc=pass action=none header.from=gns.cri.nz; dkim=pass header.d=gns.cri.nz; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=APmDvNj3DiJDeDmmK9cSqNMAh1SH2vmTxZSu9P3SNA0=; b=P7JXSW6ZWCYZXd6YjiBouwASrohA+KcpdN4Ps+Q5IyjNBrb9+Dx6LU8VfF5WrekXcBTn7r3PytTuwV68ojdIkFU2sG33OXtWPCg+D6zpo+HprO33NwJUNeqIrSXgrETYDwpBJPRIa9bydDGYwKRu8eUFzd3kIpkJAg5cHVIybq9XqkmwFHQBCd9365PCMxs1cwrEbHi3/Oqbraxn0Vf2fqZXtCzXeXYOMdqoVObMY8RN8kNNbHBLwhX4tgEH7EPTO7cCbA8Dv33pZOs90k3mIUOf1ZSEK1ndz8C6HTQJkDdhYisZrA3u3QZva+jvOAzmxiCvj9z58k96J8mqdFQWgg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fI3TYSjRrOY1IZmcDPD5vCwFm5ynqjjz+8eu2ctRJx8lK5ZTtXrKSfFQHwidp3TnbfQspVwhUEfrAIPo3Ry0o0cHb+uhu03Gh0ylxT/c7jo2KCnoHTmkLYSJRu9+KVrnEG3wLjiBtOhOHYmGfMFXxoRdOqunIYBr5KV5vrHd6X8auGGunFHV88VQ6GobWpvl6jUeU9QBDQJbd0HHlQwX0VV41ubTMpG71eKHwXN3GDwjSxLO1uUHSVuISv39S6iQ0mApdjNL+qPuZ8RSyxuXXbp/yyO6/l811GVlEKqOSmfGU0Zy+kyNOYWEllFUj+3a++iLYFwOlTLsDxcKNcUOXA==
  • Delivered-to: jts-dev@xxxxxxxxxxx
  • List-archive: <https://dev.eclipse.org/mailman/private/jts-dev>
  • List-help: <mailto:jts-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/jts-dev>, <mailto:jts-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/jts-dev>, <mailto:jts-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWwdXTTFejBEHksky+A8CV0H+itKnWKoIAgAAD8ACAAAN8AIAAAoEA
  • Thread-topic: [jts-dev] Dimension of a MultiPoint

Concave hulls though involve decisions on what constitutes a point within the hull versus a point on the hull which is very application dependent. The routine gives you parameters to control this but I found it quite a complex  process tuning it for my needs.

 

From: jts-dev-bounces@xxxxxxxxxxx <jts-dev-bounces@xxxxxxxxxxx> On Behalf Of Kay, Jim
Sent: Tuesday, 24 November 2020 09:54
To: JTS project developer mailing list <jts-dev@xxxxxxxxxxx>
Subject: Re: [jts-dev] Dimension of a MultiPoint

 

 

Note: External sender:

You need to use “org.locationtech.jts.hull.ConcaveHull

This is not in the core code, but can be found

 

https://github.com/locationtech/jts/blob/master/modules/lab/src/main/java/org/locationtech/jts/hull/ConcaveHull.java

 

Jim

From: jts-dev-bounces@xxxxxxxxxxx <jts-dev-bounces@xxxxxxxxxxx> On Behalf Of Afonso Henrique Sampaio
Sent: 23 November 2020 20:42
To: JTS project developer mailing list <jts-dev@xxxxxxxxxxx>
Subject: Re: [jts-dev] Dimension of a MultiPoint

 

Unlike the convex hull, the boundary can shrink towards the interior of the hull to envelop the points.  So

Boundary:                     ConvexHull:

    p1 ---------p5             p1------------p5

      \              |                |                 |

       p2          |                |                 |

     /               |                |                 |

    p3 ---------p5             p3------------p4

 

In the application we are developing, the edges (p1,p2) and (p2,p3) are also of interest...

 

Many thanks for the prompt response!
Afonso.

 

On Mon, Nov 23, 2020 at 9:28 PM Sandro Santilli <strk@xxxxxx> wrote:

On Mon, Nov 23, 2020 at 09:17:56PM +0100, Afonso Henrique Sampaio wrote:
> Dear,
> perhaps a silly question, but I'm new using JTS. I have a set of
> coordinates (x,y), and create a MultiPoint from a
> corresponding CoordinateSequence. Now, the dimension of this geometry I get
> by getDimension() is 0, and thus getBoundary() returns an empty Geometry.
> How then can I obtain the boundary of a set of points?

You're probably looking for Envelope, or ConvexHull

--strk;
_______________________________________________
jts-dev mailing list
jts-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jts-dev

Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents.

Back to the top