[Geojson] RFC 7946 - composing geometry objects with "mixed" positions

Udo Schochtert <u.schochtert@gmail.com> Tue, 25 April 2017 12:31 UTC

Return-Path: <u.schochtert@gmail.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 74E8812EB50 for <geojson@ietfa.amsl.com>; Tue, 25 Apr 2017 05:31:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level:
X-Spam-Status: No, score=-2.698 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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=gmail.com
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 X5MBSuo6rbNb for <geojson@ietfa.amsl.com>; Tue, 25 Apr 2017 05:31:11 -0700 (PDT)
Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D927412EC80 for <geojson@ietf.org>; Tue, 25 Apr 2017 05:31:07 -0700 (PDT)
Received: by mail-io0-x229.google.com with SMTP id r16so207799458ioi.2 for <geojson@ietf.org>; Tue, 25 Apr 2017 05:31:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=pA8tn7mcJ4GGfOmh/jVGqIEtnmrgxJBjOXa44R29JP0=; b=gQM2eG07J1I38kvy8S3dx2fksETyjvIL9IVc/VotJ3d40oh3ZQHJhYC+TB6duuVL5Z hcvV+6FzT8Hj7FZ3l2kQ9JsoZDWtU0CsF4VRNG6czPrRNeOupkeknSrw5clbjd/7wlOy Iv96/d+C9EIKDkOVEUqH+daBS67T7G7Xjk5nz2RZI6fSoZE47LY0B3nWu3I1aUIPJkqP olYdAMXLFPLHzryDmIRnDdpx//vNHDbMftpZ/pO9UgO4aVG3crunIRHDnmcmdPv71INw zKXSdoIIXPEWytBtv1U5Gp5w0nQffa+3BCN1wt7sUXaHQt7nfSBX9Cz03yJsiA0/A+H6 7cmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pA8tn7mcJ4GGfOmh/jVGqIEtnmrgxJBjOXa44R29JP0=; b=Bk/8g8wYw1ihXc1b+z3xJiP/+9d+ASnuxDsQZX7ocDe3Aqw6OqxUroSP6JTO3+AYPp NvyODo0DTdWjrCnsnvTVzj/DkLgOm+ry4YCSyY7r+Ge3b+o0Rt3nVwhdhvlJATWiupDg UAUTXePEQTMOzKreB0cQqz2s+Htt4/TiesyyvKkXD9FIxmownRWha8AZyx5UlLEdAWlb YKvJgshGoyJnKKaBVTe/sy5wxcc6B9OgcREHSFAzfrXXKLNOquSmnUZWeJ0xfJQJ1+AA gGdOybvfpqccMoD5IpiKxmI7Sbg7uQEOjyEe95/gvVA92Csa9sX148XYWPPlP8L/tEBg sTQA==
X-Gm-Message-State: AN3rC/7MEiL7hKBDwgXDxfseNpDgYBdn+rHxUFeK1L8cHQXM2KlV7gCT 5ZLkjJoNF7JR2cIWRXB5Xz+Br6aYgMdD
X-Received: by 10.107.26.1 with SMTP id a1mr14340588ioa.72.1493123466865; Tue, 25 Apr 2017 05:31:06 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.79.113.200 with HTTP; Tue, 25 Apr 2017 05:31:06 -0700 (PDT)
From: Udo Schochtert <u.schochtert@gmail.com>
Date: Tue, 25 Apr 2017 14:31:06 +0200
Message-ID: <CAENDquxrvzBNRa_doW2TprbE=OQfu9RJRs7RpT29zSLtye9_jg@mail.gmail.com>
To: geojson@ietf.org
Content-Type: multipart/alternative; boundary="001a113fe2d8d93345054dfce50c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/geojson/7d_Mpv0mVbsjZmB1KMW4-899tdI>
X-Mailman-Approved-At: Tue, 25 Apr 2017 23:19:36 -0700
Subject: [Geojson] RFC 7946 - composing geometry objects with "mixed" positions
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, 25 Apr 2017 12:37:34 -0000

hi,

I have a quick question regarding RFC 7946 specs.

according
  https://tools.ietf.org/html/rfc7946#section-3.1.1
a position is an array of numbers which MUST have 2 elements and SHOULD not
extend beyond 3 elements.

so a valid Point (containing 2 elements) is
{
  "type": "Point",
  "coordinates": [100.0, 0.0]
}
and one containing 3 elements
{
  "type": "Point",
  "coordinates": [101.0, 1.0, 1.0]
}
is valid as well.

my question is if the following MultiPoint (composed by"mixed" positions)
would be valid as well

{
  "type": "MultiPoint",
  "coordinates": [
    [100.0, 0.0],
    [101.0, 1.0, 1.0]
  ]
}


that would also apply to other geometries composed by"mixed" positions as
well (e.g. LineString, Polygon, etc.). correct?

thanks, udo