public class Location extends Object
Modifier and Type | Field and Description |
---|---|
private long |
aspect |
private String |
attribute |
private int |
dimensions |
private int |
r |
private boolean |
renderCircle |
private boolean |
renderRectangle |
private int |
replace |
private int |
s |
private int |
tableId |
private int |
x |
private int |
x1 |
private int |
x2 |
private int |
y |
private int |
y1 |
private int |
y2 |
Constructor and Description |
---|
Location() |
Location(String rawLocation) |
Modifier and Type | Method and Description |
---|---|
private void |
adjustAspect() |
private void |
checkGeoCircle() |
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
|
private void |
parseCircle(String circle) |
private void |
parseRectangle(String rectangle) |
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() |
private int dimensions
private int x1
private int y1
private int x2
private int y2
private int x
private int y
private int r
private int tableId
private int s
private int replace
private boolean renderCircle
private boolean renderRectangle
private long aspect
private String attribute
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)
private void adjustAspect()
public void setGeoCircle(double ns, double ew, double radius_in_degrees)
public void setXyCircle(int px, int py, int radius_in_units)
private void parseRectangle(String rectangle)
private void parseCircle(String circle)
public int getBoundingWidth()
public int getBoundingHeight()
public boolean hasAttribute()
public String getAttribute()
public void setAttribute(String attributeName)
public boolean isGeoCircle()
public boolean hasBoundingBox()
private void checkGeoCircle()
public double degNS()
public double degEW()
public double degRadius()
public int encode(ByteBuffer buffer)
Copyright © 2017. All rights reserved.