Class MultiDimensionalPositions
- java.lang.Object
-
- com.github.filosganga.geogson.model.positions.AbstractPositions<AreaPositions>
-
- com.github.filosganga.geogson.model.positions.MultiDimensionalPositions
-
- All Implemented Interfaces:
Positions,Serializable
public class MultiDimensionalPositions extends AbstractPositions<AreaPositions>
It represent a collection ofAreaPositionsused to represent composed Are geometries like theMultiPolygon.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMultiDimensionalPositions.Builder-
Nested classes/interfaces inherited from class com.github.filosganga.geogson.model.positions.AbstractPositions
AbstractPositions.PositionsBuilder
-
-
Field Summary
-
Fields inherited from class com.github.filosganga.geogson.model.positions.AbstractPositions
children
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiDimensionalPositions.Builderbuilder()static MultiDimensionalPositions.Builderbuilder(MultiDimensionalPositions positions)Positionsmerge(Positions other)Merge this Positions with another one.
-
-
-
Method Detail
-
builder
public static MultiDimensionalPositions.Builder builder()
-
builder
public static MultiDimensionalPositions.Builder builder(MultiDimensionalPositions positions)
-
merge
public Positions merge(Positions other)
Merge this Positions with another one. If the givenPositionsis: - SinglePosition, it will raise an IllegalArgumentException. - LinearPositions, it is a special case in which the given LinearPositions represent aPolygonwith 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.
-
-