Package com.metsci.glimpse.charts.raster
Class BsbRasterData
- java.lang.Object
-
- com.metsci.glimpse.charts.raster.BsbRasterData
-
public final class BsbRasterData extends Object
Data structures and data IO utilities for displaying Electronic Navigation Chart raster images available in the BSB Raster format.- Author:
- osborn
- See Also:
com.metsci.glimpse.examples.charts.rnc.RasterNavigationChartExample
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LatLonGeoestimateCenterLatLon()BufferedImagegenerateBufferedImage()IndexColorModelgetColorModel()ColorTexture1DgetColorTexture()ByteTextureProjected2DgetDataTexture()StringgetHeader()StringgetName()ProjectiongetProjection(GeoProjection plane, MercatorProjection projection, int resolution)FlatProjectiongetProjection(MercatorProjection projection)Set<Pair<IntPoint2d,LatLonGeo>>getRegistrationPoints()static BsbRasterDatareadImage(InputStream in)static BsbRasterDatareadImage(URL url)
-
-
-
Method Detail
-
readImage
public static BsbRasterData readImage(URL url) throws IOException
- Throws:
IOException
-
readImage
public static BsbRasterData readImage(InputStream in) throws IOException
- Throws:
IOException
-
getColorModel
public IndexColorModel getColorModel()
-
getProjection
public Projection getProjection(GeoProjection plane, MercatorProjection projection, int resolution)
-
estimateCenterLatLon
public LatLonGeo estimateCenterLatLon()
-
getProjection
public FlatProjection getProjection(MercatorProjection projection)
-
generateBufferedImage
public final BufferedImage generateBufferedImage()
-
getName
public final String getName()
-
getHeader
public final String getHeader()
-
getRegistrationPoints
public final Set<Pair<IntPoint2d,LatLonGeo>> getRegistrationPoints()
-
getColorTexture
public final ColorTexture1D getColorTexture()
-
getDataTexture
public final ByteTextureProjected2D getDataTexture()
-
-