Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-2711

st_n_rings() function in geometry module

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9.4.1
    • None
    • FUN - Functions
    • None

    Description

      st_n_rings() function returns the number of rings of polygons and multipolygons. When I insert a multipolygon into the dataset and use the function, there is an exception, saying "geometryN: n out of range [IllegalArgumentException]".

       

      The Exception is thrown by Esri API. What we need to modify is at line 49, Class STNRingsDescriptor. I think we need to modify the scale of for loop to from 0 to numGeometries rather than from 1 to numGeometries + 1.

       

      Thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Yaming Zhang Yaming Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: