public class LandShape extends Object
public class SampleLandManager
{
private static final Params PARAMS = SampleLandManager.getParams();
private static final String landFile = PARAMS.getValue(new StringParam("landFile", ""));
private static final LandShape landShape;
static
{
if (!landFile.isEmpty())
{
landShape = (new NgdcFile(new File(landFilename))).toShape();
}
else
{
landShape = null;
}
}
public static LandShape getLandShape()
{
return landShape;
}
}
Modifier and Type | Class and Description |
---|---|
static interface |
LandShape.VertexConverter |
Constructor and Description |
---|
LandShape(List<LandSegment> segments,
LandBox box) |
Modifier and Type | Method and Description |
---|---|
Shape |
getFillShape(LandShape.VertexConverter converter) |
LandBox |
getLandBox() |
LatLonGeo |
getNeCorner() |
List<LandSegment> |
getSegments() |
Shape |
getStrokeShape(LandShape.VertexConverter converter) |
LatLonGeo |
getSwCorner() |
boolean |
isLand(double latDeg,
double lonDeg) |
public LandShape(List<LandSegment> segments, LandBox box)
public boolean isLand(double latDeg, double lonDeg)
public Shape getStrokeShape(LandShape.VertexConverter converter)
public Shape getFillShape(LandShape.VertexConverter converter)
public LatLonGeo getSwCorner()
public LatLonGeo getNeCorner()
public List<LandSegment> getSegments()
public LandBox getLandBox()
Copyright © 2016 Metron, Inc.. All rights reserved.