*/
public int interpValueAt(float lat, float lon, Projection proj) {
float lat_index = -1;
float lon_index = -1;
GridData gridData = getData();
if (!(gridData instanceof GridData.Int)) {
Debug.error("OMGrid.interpValueAt only works for integer data.");
return 0;
}
int[][] data = ((GridData.Int) gridData).getData();
boolean major = gridData.getMajor();
if (renderType == RENDERTYPE_LATLON) {
lat_index = (lat - latitude) / verticalResolution;
lon_index = (lon - longitude) / horizontalResolution;