Package org.h2.util.geometry
Class GeometryUtils.DimensionSystemTarget
java.lang.Object
org.h2.util.geometry.GeometryUtils.Target
org.h2.util.geometry.GeometryUtils.DimensionSystemTarget
- Enclosing class:
GeometryUtils
Converter output target that determines minimal dimension system for a
geometry.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new dimension system determination target. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCoordinate
(double x, double y, double z, double m, int index, int total) Invoked to add a coordinate to a geometry.protected void
dimensionSystem
(int dimensionSystem) Invoked to add dimension system requirement.int
Returns the minimal dimension system.Methods inherited from class org.h2.util.geometry.GeometryUtils.Target
endCollectionItem, endNonEmptyPolygon, endObject, init, startCollection, startCollectionItem, startLineString, startPoint, startPolygon, startPolygonInner
-
Field Details
-
hasZ
private boolean hasZ -
hasM
private boolean hasM
-
-
Constructor Details
-
DimensionSystemTarget
public DimensionSystemTarget()Creates a new dimension system determination target.
-
-
Method Details
-
dimensionSystem
protected void dimensionSystem(int dimensionSystem) Description copied from class:GeometryUtils.Target
Invoked to add dimension system requirement.- Overrides:
dimensionSystem
in classGeometryUtils.Target
- Parameters:
dimensionSystem
- dimension system
-
addCoordinate
protected void addCoordinate(double x, double y, double z, double m, int index, int total) Description copied from class:GeometryUtils.Target
Invoked to add a coordinate to a geometry.- Specified by:
addCoordinate
in classGeometryUtils.Target
- Parameters:
x
- X coordinatey
- Y coordinatez
- Z coordinate (NaN if not used)m
- M coordinate (NaN if not used)index
- 0-based index of coordinate in the current sequencetotal
- total number of coordinates in the current sequence
-
getDimensionSystem
public int getDimensionSystem()Returns the minimal dimension system.- Returns:
- the minimal dimension system
-