Package io.goobi.viewer.model.search
Class GeoCoordinateFeature
java.lang.Object
io.goobi.viewer.model.search.GeoCoordinateFeature
- Author:
- Florian Alpers
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGeoCoordinateFeature(double[][] points, String predicate, String shape, double distError) Initializes as a polygon feature with the given points as vertices.GeoCoordinateFeature(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
Initializes as a polygon feature with the given points as vertices.- Parameters:
points- array of coordinate pairs [lon, lat] forming the polygon verticespredicate- Solr field or predicate identifying the coordinate sourceshape- GeoJSON geometry type (e.g. "Polygon")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
-
getPredicate
-
equals
-
hashCode
public int hashCode() -
getDistError
public double getDistError()
-