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) throws org.json.JSONException
      Throws:
      org.json.JSONException
    • GeoCoordinateFeature

      public GeoCoordinateFeature(double[][] points, String predicate, String shape)
      Initialize as a polygon feature with the given points as vertices
      Parameters:
      points -
      predicate -
      shape -
  • 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)
    • 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