Class Feature

java.lang.Object
org.tailormap.api.viewer.model.Feature
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", comments="Generator version: 7.9.0") public class Feature extends Object implements Serializable
A possibly complete feature from the attribute source. The feature could have been filtered to not provide certain attributes. Any geometry attributes will be presented in WKT format
See Also:
  • Constructor Details

    • Feature

      public Feature()
  • Method Details

    • fid

      public Feature fid(String fid)
    • getFid

      public String getFid()
      feature id, a non-mutable identifier from the attribute source
      Returns:
      fid
    • setFid

      public void setFid(String fid)
    • geometry

      public Feature geometry(String geometry)
    • getGeometry

      public String getGeometry()
      Default geometry of the feature as WKT, possibly simplified. Always linearized to make sure that it only holds a specification valid WKT. Can be used for highlighting or buffer/selection, not for editing.
      Returns:
      geometry
    • setGeometry

      public void setGeometry(String geometry)
    • attributes

      public Feature attributes(Map<String,Object> attributes)
    • putAttributesItem

      public Feature putAttributesItem(String key, Object attributesItem)
    • getAttributes

      @NotNull public @NotNull Map<String,Object> getAttributes()
      feature attributes in key/value pairs
      Returns:
      attributes
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object