Class GeometryUtils.DimensionSystemTarget

  • Enclosing class:
    GeometryUtils

    public static final class GeometryUtils.DimensionSystemTarget
    extends GeometryUtils.Target
    Converter output target that determines minimal dimension system for a geometry.
    • Field Detail

      • hasZ

        private boolean hasZ
      • hasM

        private boolean hasM
    • Constructor Detail

      • DimensionSystemTarget

        public DimensionSystemTarget()
        Creates a new dimension system determination target.
    • Method Detail

      • dimensionSystem

        protected void dimensionSystem​(int dimensionSystem)
        Description copied from class: GeometryUtils.Target
        Invoked to add dimension system requirement.
        Overrides:
        dimensionSystem in class GeometryUtils.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 class GeometryUtils.Target
        Parameters:
        x - X coordinate
        y - Y coordinate
        z - Z coordinate (NaN if not used)
        m - M coordinate (NaN if not used)
        index - 0-based index of coordinate in the current sequence
        total - total number of coordinates in the current sequence
      • getDimensionSystem

        public int getDimensionSystem()
        Returns the minimal dimension system.
        Returns:
        the minimal dimension system