Class MultiFetchOverpassObjectReader


Retrieves a set of OsmPrimitives from an Overpass API server.
Since:
9241
  • Field Details

  • Constructor Details

  • Method Details

    • getPackageString

      private static String getPackageString(OsmPrimitiveType type, Set<Long> idPackage)
    • genOverpassQuery

      public static String genOverpassQuery(Collection<? extends PrimitiveId> ids, boolean includeObjects, boolean recurseUp, boolean recurseDownRelations)
      Generate single overpass query to retrieve multiple primitives. Can be used to download parents, children, the objects, or any combination of them.
      Parameters:
      ids - the collection of ids
      includeObjects - if false, don't retrieve the primitives (e.g. only the referrers)
      recurseUp - if true, referrers (parents) of the objects are downloaded and all nodes of parent ways
      recurseDownRelations - true: yes, recurse down to retrieve complete relations
      Returns:
      the overpass query
      Since:
      16611
    • genOverpassQuery

      protected static String genOverpassQuery(Map<OsmPrimitiveType,Set<Long>> primitivesMap, boolean includeObjects, boolean recurseUp, boolean recurseDownRelations)
      Generate single overpass query to retrieve multiple primitives. Can be used to download parents, children, the objects, or any combination of them.
      Parameters:
      primitivesMap - map containing the primitives
      includeObjects - if false, don't retrieve the primitives (e.g. only the referrers)
      recurseUp - if true, referrers (parents) of the objects are downloaded and all nodes of parent ways
      recurseDownRelations - true: yes, recurse down to retrieve complete relations
      Returns:
      the overpass query
    • getBaseUrl

      protected String getBaseUrl()
      Description copied from class: OsmServerReader
      Return the base URL for relative URL requests
      Overrides:
      getBaseUrl in class OsmServerReader
      Returns:
      base url of API