com.isti.util.gis
Class IstiRegion.LatLonPolygon

java.lang.Object
  extended by com.isti.util.gis.IstiRegion.LatLonPolygon
Enclosing class:
IstiRegion

public static class IstiRegion.LatLonPolygon
extends java.lang.Object

Latitude/longitude polygon.


Constructor Summary
IstiRegion.LatLonPolygon(double[] llPoints)
          Creates a lot/lon polygon.
 
Method Summary
 boolean contains(double lat, double lon)
          Determines if the specified coordinate is inside of the region.
static double[] latLonToXY(double[] llPoints)
          Converts an array of lat/lon points to x/y points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IstiRegion.LatLonPolygon

public IstiRegion.LatLonPolygon(double[] llPoints)
Creates a lot/lon polygon.

Parameters:
llPoints - the coordinates, in the format [lat0, lon0, lat1, lon1, ... ].
Method Detail

latLonToXY

public static double[] latLonToXY(double[] llPoints)
Converts an array of lat/lon points to x/y points.

Parameters:
llPoints - the lat/lon points.
Returns:
the x/y points.

contains

public boolean contains(double lat,
                        double lon)
Determines if the specified coordinate is inside of the region.

Parameters:
lat - the latitude of the point.
lon - the longitude of the point.
Returns:
true if the point is inside the region, false otherwise.