Class MultiDimensionalPositions

    • Method Detail

      • merge

        public Positions merge​(Positions other)
        Merge this Positions with another one. If the given Positions is: - SinglePosition, it will raise an IllegalArgumentException. - LinearPositions, it is a special case in which the given LinearPositions represent a Polygon with no holes. This is probably not compliant with the GeoJson specifications, but it seems to happen quite frequently. It will be handled as the AreaPositions case. - AreaPositions, it will return a new MultiDimensionalPositions by appending the given AreaPositions to this. - Any other, it will raise an IllegalArgumentException
        Parameters:
        other - Positions instance to merge with.
        Returns:
        Positions results of merging.