Re: [Geojson] Question regarding RFC 7946

Andrew Harvey <andrew@alantgeo.com.au> Tue, 13 March 2018 23:14 UTC

Return-Path: <andrew@alantgeo.com.au>
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 1E1AF12D86C for <geojson@ietfa.amsl.com>; Tue, 13 Mar 2018 16:14:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.719
X-Spam-Level:
X-Spam-Status: No, score=-2.719 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=alantgeo.com.au header.b=abcn8sV1; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=FTuoQ8pi
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 uHY3_nRujiqk for <geojson@ietfa.amsl.com>; Tue, 13 Mar 2018 16:14:23 -0700 (PDT)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C56AE126DFB for <geojson@ietf.org>; Tue, 13 Mar 2018 16:14:23 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 2564B2130B; Tue, 13 Mar 2018 19:14:23 -0400 (EDT)
Received: from web3 ([10.202.2.213]) by compute2.internal (MEProxy); Tue, 13 Mar 2018 19:14:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alantgeo.com.au; h=content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=AXEZgiXIymm8d9UY/Tx+XPuCg4qUq MNnSvJcZU9Y71w=; b=abcn8sV1j4YpXUbB0BburWZwDPyK1QiyvgBJuxc2Lx7kZ Rs118bOJRw+wskcN2E3Os5j+ucbN+aH8ghQeGDAsuR4hfvw1O9QBQJ/AjQEJNutG PffnXZnS9mOj8KsH4pUBon7XGInCOq0dhrGW+cjbmWbOSn38QNnGYGtf8+kLUa10 Ztz5B+GkqhjVNDf6Hv/1rkXVtILlTJrVYHYP9SCeg8bF3JUpM/rAvUpFD9IZGMcE BX10LH5CbHZY7QHsl8l3to2xGO/6iRF0Bzv/lhbyVmsX4bvhZZN+oEw73lHe6cfN mX0l8687iqXpr2P5pMs4f9sPXNNVwDCJ/VAmOe21Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=AXEZgi XIymm8d9UY/Tx+XPuCg4qUqMNnSvJcZU9Y71w=; b=FTuoQ8piNqSPN7DiXn3fxj VGzOzdjfSaLKdLEMvLWct7fNgXES8SCqpv1bCxbG3xLn5IcZLYTeoKshNsBxmQGQ JQD3cM9Vz1JUMkea0kmoU5P1twFz37kc1U12kps3xF+FxgWLaaR0WenhdHQrm84U xemGA6DVbtnRMDYZwLwg4JbAt4qguSM/Aias1izMesJ0qAJUIoVfpXnDGgCFv5Db G3riqVwp+ysWD1kIxy43uh9XUip4cyHgEaROgsAoZn04hRXvp1KlNNLRiUjr4CTO /udcyediVLoBqzEaH07AqEsIDdfkvifWyvBBxSBfTzEngL6RxgW05e1VTYGwYPxw ==
X-ME-Sender: <xms:T1uoWhwj_moApjiGnAQbVuBPYE8kjlkf2NQk06Ip3hgkfV-_RaUR-Q>
Received: by mailuser.nyi.internal (Postfix, from userid 99) id E73959E0FF; Tue, 13 Mar 2018 19:14:22 -0400 (EDT)
Message-Id: <1520982862.3856849.1302161192.47F02A1C@webmail.messagingengine.com>
From: Andrew Harvey <andrew@alantgeo.com.au>
To: Martin Daly <Martin.Daly@cadcorp.com>, geojson@ietf.org
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: multipart/alternative; boundary="_----------=_152098286238568490"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-54087d22
Date: Wed, 14 Mar 2018 10:14:22 +1100
In-Reply-To: <4a94316aef864a58b9062fb9996ef57e@SRV016VEX.cadcorp.net>
References: <1520854260.3778274.1299897800.172BEEF4@webmail.messagingengine.com> <4a94316aef864a58b9062fb9996ef57e@SRV016VEX.cadcorp.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/geojson/oJDKJ7DIM2XV7XP6UlPSkQhjaV8>
X-Mailman-Approved-At: Wed, 14 Mar 2018 00:15:52 -0700
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: Tue, 13 Mar 2018 23:14:28 -0000

Thank you Martin for clarifying this.


On Tue, 13 Mar 2018, at 12:20 AM, Martin Daly wrote:
> 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


> https://au.linkedin.com/in/andrewharveyau


> @alantgeo[1]


>  




Links:

  1. https://twitter.com/alantgeo