Interface MapObjectRepository<T extends MapObject>

    • Method Detail

      • loadObjects

        java.lang.String loadObjects​(java.lang.String path,
                                     java.lang.Integer shapeType)
        Load objects from a specified location. If the shapeType is already defined in file, then ignore the parameter. Otherwise, assign the type for each shape loaded from the path.
        Parameters:
        path - The path to the location where the file located.
        shapeType - An integer representing the shape category / shape type for the shapes that are saved into repository.
        Returns:
        A string as key to access the loaded object later.
      • loadObjects

        java.lang.String loadObjects​(java.lang.String path,
                                     java.lang.Integer shapeType,
                                     java.util.Map<java.lang.String,​java.lang.String> config)
        Load objects from a specified location with specified config object. If the shapeType is already defined in file, then ignore the parameter. Otherwise, assign the type for each shape loaded from the path.
        Parameters:
        path - The path to the location where the file located.
        shapeType - An integer representing the shape category / shape type for the shapes that are saved into repository.
        config - A map object contains name-value pair. Example: use queryField as the key and kml path as the value
        Returns:
        A string as key to access the loaded object later.
      • getCachedGeoData

        GeoData getCachedGeoData​(java.lang.String cacheId)
        Retrieve the GeoData from the cache. The repository is responsible to cache the geometry data. If cache is missing, it should read it from file system and reset the cache and then returns the data object.
        Parameters:
        cacheId - The cache Id
        Returns:
        See Also:
        GeoData