public class GridCoordinate2D
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
findCoordElement(double wantLat,
double wantLon,
int[] rectIndex) |
boolean |
findCoordElementForce(double wantLat,
double wantLon,
int[] rectIndex) |
boolean |
findCoordElementNoForce(double wantLat,
double wantLon,
int[] rectIndex)
Find the best index for the given lat,lon point.
|
static void |
main(java.lang.String[] args) |
static void |
test1() |
static void |
test2() |
static void |
test3() |
public boolean findCoordElementForce(double wantLat, double wantLon, int[] rectIndex)
public boolean findCoordElement(double wantLat, double wantLon, int[] rectIndex)
public boolean findCoordElementNoForce(double wantLat, double wantLon, int[] rectIndex)
wantLat
- lat of pointwantLon
- lon of pointrectIndex
- return (row,col) index, or best guess here. may not be nullpublic static void test1() throws java.io.IOException
java.io.IOException
public static void test2() throws java.io.IOException
java.io.IOException
public static void test3() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException