Interface IScalarDataset

All Known Implementing Classes:
AbstractBuiltinDataset, Climate, Climate.Precipitation, Climate.Temperature, ConfigurableDoubleTiledDataset, DoubleTiledDataset, MultiScalarDataset, Soil

public interface IScalarDataset
A dataset consisting of floating-point scalar values.
  • Method Summary

    Modifier and Type
    Method
    Description
    getAsync(@lombok.NonNull double[] point)
     
    getAsync(double lon, double lat)
    Asynchronously gets a single value at the given point.
    getAsync(@NonNull net.buildtheearth.terracore.geo.CornerBoundingBox2d bounds, int sizeX, int sizeZ)
    Asynchronously gets a bunch of values at the given coordinates.
  • Method Details

    • getAsync

      default CompletableFuture<Double> getAsync(@NonNull @lombok.NonNull double[] point) throws net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
      Parameters:
      point - the point
      Throws:
      net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
      See Also:
    • getAsync

      CompletableFuture<Double> getAsync(double lon, double lat) throws net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
      Asynchronously gets a single value at the given point.
      Parameters:
      lon - the longitude
      lat - the latitude
      Returns:
      a CompletableFuture which will be completed with the value
      Throws:
      net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
    • getAsync

      CompletableFuture<double[]> getAsync(@NonNull @NonNull net.buildtheearth.terracore.geo.CornerBoundingBox2d bounds, int sizeX, int sizeZ) throws net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
      Asynchronously gets a bunch of values at the given coordinates.
      Parameters:
      sizeX - the number of samples to take along the X axis
      sizeZ - the number of samples to take along the Z axis
      Returns:
      a CompletableFuture which will be completed with the values
      Throws:
      net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException