Class MultiFetchOverpassObjectReader

    • Method Detail

      • genOverpassQuery

        public static java.lang.String genOverpassQuery​(java.util.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 java.lang.String genOverpassQuery​(java.util.Map<OsmPrimitiveType,​java.util.Set<java.lang.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