Enum GeoS2AnalyzerProperties.GeoS2Format

    • Enum Constant Detail

      • latLngDouble

        public static final GeoS2AnalyzerProperties.GeoS2Format latLngDouble
        Store each latitude and longitude value as an 8-byte floating-point value (16 bytes per coordinate pair). This format preserves numeric values exactly and is more compact than the VelocyPack format used by GeoJSONAnalyzer. (default)
      • latLngInt

        public static final GeoS2AnalyzerProperties.GeoS2Format latLngInt
        Store each latitude and longitude value as an 4-byte integer value (8 bytes per coordinate pair). This is the most compact format but the precision is limited to approximately 1 to 10 centimeters.
      • s2Point

        public static final GeoS2AnalyzerProperties.GeoS2Format s2Point
        Store each longitude-latitude pair in the native format of Google S2 which is used for geo-spatial calculations (24 bytes per coordinate pair). This is not a particular compact format but it reduces the number of computations necessary when you execute geo-spatial queries. This format preserves numeric values exactly.
    • Method Detail

      • values

        public static GeoS2AnalyzerProperties.GeoS2Format[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GeoS2AnalyzerProperties.GeoS2Format c : GeoS2AnalyzerProperties.GeoS2Format.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GeoS2AnalyzerProperties.GeoS2Format valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null