Class GeoCoordinateFeature

java.lang.Object
io.goobi.viewer.model.search.GeoCoordinateFeature

public class GeoCoordinateFeature extends Object
Author:
florian
  • Field Details

  • Constructor Details

    • GeoCoordinateFeature

      public GeoCoordinateFeature(String featureString, String predicate, String shape, double distError) throws org.json.JSONException
      Throws:
      org.json.JSONException
    • GeoCoordinateFeature

      public GeoCoordinateFeature(double[][] points, String predicate, String shape, double distError)
      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

      public String getFeatureAsString()
    • getType

      public String getType()
    • getVertices

      public double[][] getVertices()
    • getSearchString

      public String getSearchString()
    • getPredicate

      public static String getPredicate(String searchString)
    • getShape

      public static String getShape(String searchString)
    • getDistError

      public static double getDistError(String searchString)
    • getGeoSearchPoints

      public static double[][] getGeoSearchPoints(String searchString)
    • hasVertices

      public boolean hasVertices()
      Returns:
      true if number of vertices larger than 0; false otherwise
    • getShape

      public String getShape()
      Returns:
      the shape
    • getPredicate

      public String getPredicate()
      Returns:
      the predicate
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDistError

      public double getDistError()