public class Location extends Object
Constructor and Description |
---|
Location() |
Location(String rawLocation) |
Modifier and Type | Method and Description |
---|---|
double |
degEW()
Obtain degrees longitude (East-West direction); negative numbers are degrees West.
|
double |
degNS()
Obtain degrees latitude (North-South direction); negative numbers are degrees South.
|
double |
degRadius()
Obtain circle radius (in degrees).
|
int |
encode(ByteBuffer buffer)
Encodes the location to the given buffer and returns the length.
|
boolean |
equals(Object other) |
String |
getAttribute() |
int |
getBoundingHeight()
Returns height of bounding box (actual height if rectangle, bounding square if circle)
|
int |
getBoundingWidth()
Returns width of bounding box (actual width if rectangle, bounding square if circle)
|
int |
getDimensions() |
boolean |
hasAttribute() |
boolean |
hasBoundingBox() |
boolean |
hasDimensions() |
int |
hashCode() |
boolean |
isGeoCircle()
check whether this Location contains a 2D circle
|
void |
setAttribute(String attributeName) |
void |
setBoundingBox(double n,
double s,
double e,
double w) |
void |
setDimensions(int d) |
void |
setGeoCircle(double ns,
double ew,
double radius_in_degrees) |
void |
setXyCircle(int px,
int py,
int radius_in_units) |
String |
toString() |
public Location()
public Location(String rawLocation)
public boolean hasDimensions()
public void setDimensions(int d)
public int getDimensions()
public void setBoundingBox(double n, double s, double e, double w)
public void setGeoCircle(double ns, double ew, double radius_in_degrees)
public void setXyCircle(int px, int py, int radius_in_units)
public int getBoundingWidth()
public int getBoundingHeight()
public boolean hasAttribute()
public String getAttribute()
public void setAttribute(String attributeName)
public boolean isGeoCircle()
public boolean hasBoundingBox()
public double degNS()
public double degEW()
public double degRadius()
public int encode(ByteBuffer buffer)
Copyright © 2018. All rights reserved.