Class GeoBBoxFactory


  • public class GeoBBoxFactory
    extends java.lang.Object
    Factory for GeoBBox.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private GeoBBoxFactory()  
    • Constructor Detail

      • GeoBBoxFactory

        private GeoBBoxFactory()
    • Method Detail

      • makeGeoBBox

        public static GeoBBox makeGeoBBox​(PlanetModel planetModel,
                                          double topLat,
                                          double bottomLat,
                                          double leftLon,
                                          double rightLon)
        Create a geobbox of the right kind given the specified bounds.
        Parameters:
        planetModel - is the planet model
        topLat - is the top latitude
        bottomLat - is the bottom latitude
        leftLon - is the left longitude
        rightLon - is the right longitude
        Returns:
        a GeoBBox corresponding to what was specified.
      • isNorthPole

        private static boolean isNorthPole​(double lat)
      • isSouthPole

        private static boolean isSouthPole​(double lat)
      • latitudesEquals

        private static boolean latitudesEquals​(double lat1,
                                               double lat2)
      • longitudesEquals

        private static boolean longitudesEquals​(double lon1,
                                                double lon2)
      • makeGeoBBox

        public static GeoBBox makeGeoBBox​(PlanetModel planetModel,
                                          LatLonBounds bounds)
        Create a geobbox of the right kind given the specified LatLonBounds.
        Parameters:
        planetModel - is the planet model
        bounds - are the bounds
        Returns:
        a GeoBBox corresponding to what was specified.