Package io.goobi.viewer.model.search
Class GeoCoordinateFeature
java.lang.Object
io.goobi.viewer.model.search.GeoCoordinateFeature
- Author:
- florian
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGeoCoordinateFeature(double[][] points, String predicate, String shape, double distError) Initialize as a polygon feature with the given points as verticesGeoCoordinateFeature(String featureString, String predicate, String shape, double distError) -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublestatic doublegetDistError(String searchString) static double[][]getGeoSearchPoints(String searchString) static StringgetPredicate(String searchString) getShape()static StringgetType()double[][]inthashCode()boolean
-
Field Details
-
RELATION_PREDICATE_ISWITHIN
- See Also:
-
RELATION_PREDICATE_INTERSECTS
- See Also:
-
RELATION_PREDICATE_CONTAINS
- See Also:
-
RELATION_PREDICATE_ISDISJOINTTO
- See Also:
-
SHAPE_POLYGON
- See Also:
-
-
Constructor Details
-
GeoCoordinateFeature
public GeoCoordinateFeature(String featureString, String predicate, String shape, double distError) throws org.json.JSONException - Throws:
org.json.JSONException
-
GeoCoordinateFeature
Initialize as a polygon feature with the given points as vertices- Parameters:
points-predicate-shape-distError- maximal distance between points for them to be considered overlapping
-
-
Method Details
-
getFeatureAsString
-
getType
-
getVertices
public double[][] getVertices() -
getSearchString
-
getPredicate
-
getShape
-
getDistError
-
getGeoSearchPoints
-
hasVertices
public boolean hasVertices()- Returns:
- true if number of vertices larger than 0; false otherwise
-
getShape
- Returns:
- the shape
-
getPredicate
- Returns:
- the predicate
-
equals
-
hashCode
public int hashCode() -
getDistError
public double getDistError()
-