Class GdalWorldWind

java.lang.Object
com.eco.bio7.geo.GdalWorldWind

public final class GdalWorldWind extends Object
GDAL and WorldWind: rasters of all formats of GDAL as image layers (reprojected to WGS84 by GDAL, the area outside of the data transparent), vectors as surface shapes and placemarks. GDAL must be loaded.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
    The image and its sector (WGS84) of a raster.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Adds a raster as layer to WorldWind and moves the view to it (not in the UI thread).
    static int
    Adds the features of a vector file as layer to WorldWind (in WGS84): polygons (with holes) and lines as surface shapes, points as placemarks.
    raster(Path file)
    A raster as image in WGS84 (not shown): reprojected by GDAL (at most 4096 pixels), RGB(A) and palettes with their colors, one band as gray values (minimum to maximum); no data and the area outside transparent.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • raster

      public static GdalWorldWind.Raster raster(Path file)
      A raster as image in WGS84 (not shown): reprojected by GDAL (at most 4096 pixels), RGB(A) and palettes with their colors, one band as gray values (minimum to maximum); no data and the area outside transparent.
    • addRaster

      public static void addRaster(Path file)
      Adds a raster as layer to WorldWind and moves the view to it (not in the UI thread).
    • addVector

      public static int addVector(Path file)
      Adds the features of a vector file as layer to WorldWind (in WGS84): polygons (with holes) and lines as surface shapes, points as placemarks.
      Returns:
      the number of features shown