From notifications-return-155207-archive-asf-public=cust-asf.ponee.io@asterixdb.apache.org Tue Apr 7 03:33:07 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B7D8E180647 for ; Tue, 7 Apr 2020 05:33:06 +0200 (CEST) Received: (qmail 75196 invoked by uid 500); 7 Apr 2020 03:33:05 -0000 Mailing-List: contact notifications-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list notifications@asterixdb.apache.org Received: (qmail 75179 invoked by uid 99); 7 Apr 2020 03:33:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Apr 2020 03:33:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C3561C0FC4 for ; Tue, 7 Apr 2020 03:33:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -112.99 X-Spam-Level: X-Spam-Status: No, score=-112.99 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_DMARC_STATUS=0.01, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id DHdlSxuuaU3o for ; Tue, 7 Apr 2020 03:33:03 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=207.244.88.153; helo=mail.apache.org; envelope-from=jira@apache.org; receiver= Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with SMTP id D58CB7F514 for ; Tue, 7 Apr 2020 03:33:02 +0000 (UTC) Received: (qmail 74668 invoked by uid 99); 7 Apr 2020 03:33:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Apr 2020 03:33:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 121F7E069E for ; Tue, 7 Apr 2020 03:33:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 69120780259 for ; Tue, 7 Apr 2020 03:33:00 +0000 (UTC) Date: Tue, 7 Apr 2020 03:33:00 +0000 (UTC) From: "Yaming Zhang (Jira)" To: notifications@asterixdb.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ASTERIXDB-2711) st_n_rings() function in geometry module MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ASTERIXDB-2711?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yaming Zhang updated ASTERIXDB-2711: ------------------------------------ Component/s: (was: FUN - Functions) Description:=20 st_n_rings() function returns the number of rings of polygons and multipoly= gons. When I insert a multipolygon into the dataset and use the function, t= here is an exception, saying "geometryN: n out of range [IllegalArgumentExc= eption]". =C2=A0 The Exception is thrown by Esri API. What we need to modify is at line 49, = Class=C2=A0STNRingsDescriptor. I think we need to modify the scale of for l= oop to from 0 to=C2=A0numGeometries rather than from 1 to=C2=A0numGeometrie= s + 1. =C2=A0 Thanks. was:st_n_rings() function returns the number of rings of polygons and mul= tipolygons. When I insert a multipolygon into the dataset and use the funct= ion, there is an exception, saying "geometryN: n out of range [IllegalArgum= entException]". > st_n_rings() function in geometry module > ---------------------------------------- > > Key: ASTERIXDB-2711 > URL: https://issues.apache.org/jira/browse/ASTERIXDB-2711 > Project: Apache AsterixDB > Issue Type: Bug > Reporter: Yaming Zhang > Priority: Major > > st_n_rings() function returns the number of rings of polygons and multipo= lygons. When I insert a multipolygon into the dataset and use the function,= there is an exception, saying "geometryN: n out of range [IllegalArgumentE= xception]". > =C2=A0 > The Exception is thrown by Esri API. What we need to modify is at line 49= , Class=C2=A0STNRingsDescriptor. I think we need to modify the scale of for= loop to from 0 to=C2=A0numGeometries rather than from 1 to=C2=A0numGeometr= ies + 1. > =C2=A0 > Thanks. -- This message was sent by Atlassian Jira (v8.3.4#803005)