public static long elevationAtTick(GeoTimeSerie gts,long tick){
  if (null == gts.elevations) {
    return GeoTimeSerie.NO_ELEVATION;
  }
  sort(gts,false);
  int idx=Arrays.binarySearch(gts.ticks,0,gts.values,tick);
  if (idx < 0) {
    return GeoTimeSerie.NO_ELEVATION;
  }
 else {
    return gts.elevations[idx];
  }
}

public static long elevationAtTick ( GeoTimeSerie gts , long tick ) { if ( null == gts . elevations ) { return GeoTimeSerie . NO_ELEVATION ; } sort ( gts , false ) ; int idx = Arrays . binarySearch ( gts . ticks , 0 , gts . values , tick ) ; if ( idx < 0 ) { return GeoTimeSerie . NO_ELEVATION ; } else { return gts . elevations [ idx ] ; } }
return the elevation in a geo time serie at a given timestamp . the geotimeserie instance will be sorted if it is not already .
