Class GeometryCrop


  • public class GeometryCrop
    extends Object
    Geometry Crop utilities
    Since:
    6.5.0
    Author:
    osbornb
    • Constructor Detail

      • GeometryCrop

        public GeometryCrop()
    • Method Detail

      • crop

        public static void crop​(Projection projection,
                                GeoPackageGeometryData geometryData)
        Crop the geometry data with a world map envelope, defined in the provided projection
        Parameters:
        projection - geometry data and envelope projection
        geometryData - geometry data
      • crop

        public static void crop​(Projection projection,
                                GeoPackageGeometryData geometryData,
                                GeometryEnvelope envelope)
        Crop the geometry data with the envelope, both in the provided projection
        Parameters:
        projection - geometry data and envelope projection
        geometryData - geometry data
        envelope - geometry envelope
      • crop

        public static Geometry crop​(Projection projection,
                                    Geometry geometry)
        Crop the geometry with a world map envelope, defined in the provided projection
        Parameters:
        projection - geometry and envelope projection
        geometry - geometry
        Returns:
        cropped geometry
      • crop

        public static Geometry crop​(Projection projection,
                                    Geometry geometry,
                                    GeometryEnvelope envelope)
        Crop the geometry with the envelope, both in the provided projection
        Parameters:
        projection - geometry and envelope projection
        geometry - geometry
        envelope - geometry envelope
        Returns:
        cropped geometry
      • envelope

        public static GeometryEnvelope envelope​(Projection projection)
        Get a geometry envelope for the projection
        Parameters:
        projection - projection
        Returns:
        envelope