Re: [Geojson] Question regarding RFC 7946

Martin Daly <Martin.Daly@cadcorp.com> Mon, 12 March 2018 13:19 UTC

Return-Path: <Martin.Daly@cadcorp.com>
X-Original-To: geojson@ietfa.amsl.com
Delivered-To: geojson@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E9614124B0A for <geojson@ietfa.amsl.com>; Mon, 12 Mar 2018 06:19:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CWRmWkLGQD2q for <geojson@ietfa.amsl.com>; Mon, 12 Mar 2018 06:19:32 -0700 (PDT)
Received: from japeto.mep.pandasecurity.com (japeto.mep.pandasecurity.com [92.54.27.188]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 804C71273E2 for <geojson@ietf.org>; Mon, 12 Mar 2018 06:19:32 -0700 (PDT)
Received: from [195.99.130.66] (helo=SRV016VEX.cadcorp.net) by japeto.mep.pandasecurity.com with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from <Martin.Daly@cadcorp.com>) id 1evNMK-00030l-NB; Mon, 12 Mar 2018 14:19:28 +0100
Received: from SRV016VEX.cadcorp.net (10.0.0.6) by SRV016VEX.cadcorp.net (10.0.0.6) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Mon, 12 Mar 2018 13:20:04 +0000
Received: from SRV016VEX.cadcorp.net ([fe80::b834:772a:d0fb:3547]) by SRV016VEX.cadcorp.net ([fe80::b834:772a:d0fb:3547%12]) with mapi id 15.00.1104.000; Mon, 12 Mar 2018 13:20:04 +0000
X-Envelope-From: Martin.Daly@cadcorp.com
From: Martin Daly <Martin.Daly@cadcorp.com>
To: 'Andrew Harvey' <andrew@alantgeo.com.au>, "geojson@ietf.org" <geojson@ietf.org>
Thread-Topic: [Geojson] Question regarding RFC 7946
Thread-Index: AQHTugMzb83U8V1OT0anWALBvYYdu6PMlFNQ
Date: Mon, 12 Mar 2018 13:20:04 +0000
Message-ID: <4a94316aef864a58b9062fb9996ef57e@SRV016VEX.cadcorp.net>
References: <1520854260.3778274.1299897800.172BEEF4@webmail.messagingengine.com>
In-Reply-To: <1520854260.3778274.1299897800.172BEEF4@webmail.messagingengine.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.0.1.2]
Content-Type: multipart/alternative; boundary="_000_4a94316aef864a58b9062fb9996ef57eSRV016VEXcadcorpnet_"
MIME-Version: 1.0
X-CTCH-IPCLASS: T3
X-SPF-Received: 5
X-Spamina-Bogosity: Unsure
X-Spamina-Spam-Score: -1.0 (-)
X-Spamina-Spam-Report: Content analysis details: (-1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: linkedin.com] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 HTML_MESSAGE BODY: HTML included in message
Archived-At: <https://mailarchive.ietf.org/arch/msg/geojson/yDO05QC8OY1XEY0hvHnUQTWDAsM>
Subject: Re: [Geojson] Question regarding RFC 7946
X-BeenThere: geojson@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF GeoJSON WG <geojson.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/geojson>, <mailto:geojson-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/geojson/>
List-Post: <mailto:geojson@ietf.org>
List-Help: <mailto:geojson-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/geojson>, <mailto:geojson-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 12 Mar 2018 13:19:35 -0000

Andrew,

This is for consistency with OGC Simple Features which expects 1 exterior + 0->N holes in a Polygon.

The geometry you describe is represented as a MultiPolygon in SF. See Figure 17 in the standard: http://portal.opengeospatial.org/files/?artifact_id=25355

Implementations may choose to be more flexible, of course.

Martin


From: GeoJSON <geojson-bounces@ietf.org> On Behalf Of Andrew Harvey
Sent: 12 March 2018 11:31
To: geojson@ietf.org
Subject: [Geojson] Question regarding RFC 7946

The spec says:

For Polygons with more than one of these rings, the first MUST be the exterior ring, and any others MUST be interior rings. The exterior ring bounds the surface, and the interior rings (if present) bound holes within the surface

So does that mean that a Polygon geometry which has two interior rings where one falls inside another shouldn't create an island within a hole rather the smaller interior ring contained by the larger one becomes nullified?

That is, the rendering we see at https://gist.github.com/andrewharvey/c092a6c4932a4d94ecb6cd59dc935b90 is wrong and it shouldn't show an island in the middle?

This arose when thinking about https://github.com/Turfjs/turf/issues/1305

Many thanks,
--
Andrew Harvey
CEO
Alantgeo

www.alantgeo.com.au<http://www.alantgeo.com.au>
https://au.linkedin.com/in/andrewharveyau
@alantgeo<https://twitter.com/alantgeo>