Bridges-Java  3.4.3
Bridges(Java API)
Public Member Functions | List of all members
bridges.data_src_dependent.ElevationData Class Reference

Detailed Description

Object that holds elevation data retrieved from NOAA repository.

A user would not normally create an ElevationData object but rather obtain one from calling bridges::connect::DataSource::getElevationData()

A tutorial on how to use the Elevation dataset is available at: https://bridgesuncc.github.io/tutorials/Data_Elevation.html

Author
Jay Strahler
Date
12/26/20

Public Member Functions

 ElevationData ()
 
 ElevationData (int[][] data, int cols, int rows, double xll, double yll, double cellsize, int maxVal, int minVal)
 
int[][] getData ()
 
int getVal (int r, int c)
 
void setData (int[][] data)
 
int getCols ()
 
void setCols (int cols)
 
int getRows ()
 
void setRows (int rows)
 
double getxll ()
 
void setxll (double xll)
 
double getyll ()
 
void setyll (double yll)
 
double getCellSize ()
 
void setCellSize (double cellsize)
 
int getMaxVal ()
 
void setMaxVal (int maxVal)
 
int getMinVal ()
 
void setMinVal (int minVal)
 

Constructor & Destructor Documentation

◆ ElevationData() [1/2]

bridges.data_src_dependent.ElevationData.ElevationData ( )

constructors

◆ ElevationData() [2/2]

bridges.data_src_dependent.ElevationData.ElevationData ( int  data[][],
int  cols,
int  rows,
double  xll,
double  yll,
double  cellsize,
int  maxVal,
int  minVal 
)

constructors

Parameters
dataelevation data (2D array of ints)
colswidth of data
rowsheight of data
xlllower left x coord of origin
ylllower left y coord of origin
cellsizesize of each cell (resolution)
maxValmax value in dataset

Member Function Documentation

◆ getCellSize()

double bridges.data_src_dependent.ElevationData.getCellSize ( )

get cell size

return the current cell size

◆ getCols()

int bridges.data_src_dependent.ElevationData.getCols ( )

get width

Returns
dataset width

◆ getData()

int [][] bridges.data_src_dependent.ElevationData.getData ( )

get elev. data

Returns
the current dataset (2D array of ints)

◆ getMaxVal()

int bridges.data_src_dependent.ElevationData.getMaxVal ( )

get max value

Returns
max value of dataset

◆ getMinVal()

int bridges.data_src_dependent.ElevationData.getMinVal ( )

get min value

Returns
min value of dataset

◆ getRows()

int bridges.data_src_dependent.ElevationData.getRows ( )

get height

Returns
dataset height

◆ getVal()

int bridges.data_src_dependent.ElevationData.getVal ( int  r,
int  c 
)

◆ getxll()

double bridges.data_src_dependent.ElevationData.getxll ( )

get origin X

Returns
lower left x coord of origin

◆ getyll()

double bridges.data_src_dependent.ElevationData.getyll ( )

get origin Y

Returns
lower left y coord of origin

◆ setCellSize()

void bridges.data_src_dependent.ElevationData.setCellSize ( double  cellsize)

set cell size

Parameters
cellsizeset the cell size

◆ setCols()

void bridges.data_src_dependent.ElevationData.setCols ( int  cols)

set width

Parameters
colswidth to be set

◆ setData()

void bridges.data_src_dependent.ElevationData.setData ( int  data[][])

set elev. data

Parameters
data(2D array of ints)

◆ setMaxVal()

void bridges.data_src_dependent.ElevationData.setMaxVal ( int  maxVal)

set max value

Parameters
maxValmax value to be set

◆ setMinVal()

void bridges.data_src_dependent.ElevationData.setMinVal ( int  minVal)

set min value

Parameters
minValmin value to be set

◆ setRows()

void bridges.data_src_dependent.ElevationData.setRows ( int  rows)

set height

Parameters
rowsheight to be set

◆ setxll()

void bridges.data_src_dependent.ElevationData.setxll ( double  xll)

set origin X

Parameters
xlllower left x coord of origin to be set

◆ setyll()

void bridges.data_src_dependent.ElevationData.setyll ( double  yll)

set origin X

Parameters
ylllower left y coord of origin to be set

The documentation for this class was generated from the following file: