Class OsmElement

java.lang.Object
org.oscim.core.osm.OsmElement
Direct Known Subclasses:
OsmNode, OsmRelation, OsmWay

public abstract class OsmElement extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final long
     
    final org.oscim.core.TagSet
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    OsmElement(org.oscim.core.TagSet tags, long id)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    abstract org.locationtech.jts.geom.Geometry
     
    returns the id, plus an one-letter prefix for the element type

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • tags

      public final org.oscim.core.TagSet tags
    • id

      public final long id
  • Constructor Details

    • OsmElement

      public OsmElement(org.oscim.core.TagSet tags, long id)
  • Method Details

    • hashCode

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

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

      public String toString()
      returns the id, plus an one-letter prefix for the element type
      Overrides:
      toString in class Object
    • toJts

      public abstract org.locationtech.jts.geom.Geometry toJts()