Class FeatureId

java.lang.Object
com.geodesk.feature.FeatureId

public class FeatureId extends Object
Methods for creating IDs that are unique across feature types.
  • Constructor Details

    • FeatureId

      public FeatureId()
  • Method Details

    • of

      public static long of(FeatureType type, long id)
    • of

      public static long of(int type, long id)
    • ofNode

      public static long ofNode(long id)
    • ofWay

      public static long ofWay(long id)
    • ofRelation

      public static long ofRelation(long id)
    • id

      public static long id(long id)
    • type

      public static FeatureType type(long id)
    • typeCode

      public static int typeCode(long id)
    • fromString

      public static long fromString(String s)
    • compare

      public static int compare(long fid1, long fid2)
    • sort

      public static void sort(long[] fids)
    • typeToString

      public static String typeToString(long fid)
    • isNode

      public static boolean isNode(long fid)
    • isWay

      public static boolean isWay(long fid)
    • isRelation

      public static boolean isRelation(long fid)
    • toString

      public static String toString(long fid)