Package org.apache.lucene.geo
Class XYPoint
- java.lang.Object
-
- org.apache.lucene.geo.Geometry
-
- org.apache.lucene.geo.XYGeometry
-
- org.apache.lucene.geo.XYPoint
-
public final class XYPoint extends XYGeometry
Represents a point on the earth's surface. You can construct the point directly withdoublecoordinates.NOTES:
- latitude/longitude values must be in decimal degrees.
- For more advanced GeoSpatial indexing and query operations see the
spatial-extrasmodule
-
-
Constructor Summary
Constructors Constructor Description XYPoint(float x, float y)Creates a new Point from the supplied latitude/longitude.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)floatgetX()Returns latitude value at given indexfloatgetY()Returns longitude value at given indexinthashCode()protected Component2DtoComponent2D()get a Component2D from the geometry objectStringtoString()-
Methods inherited from class org.apache.lucene.geo.XYGeometry
create
-
-
-
-
Method Detail
-
getX
public float getX()
Returns latitude value at given index
-
getY
public float getY()
Returns longitude value at given index
-
toComponent2D
protected Component2D toComponent2D()
Description copied from class:Geometryget a Component2D from the geometry object- Specified by:
toComponent2Din classGeometry
-
-