com.supermap.services.providers

Class TiandituMapProvider

  • All Implemented Interfaces:
    Disposable, MapProvider, ProviderContextAware


    public class TiandituMapProvider
    extends RemoteTileProviderBase
    

    Tianditu map service provider.

    TiandituMapProvider provides the ability to acquire map services from the Sky Map online service and encapsulates GIS functionality related to SuperMap iServer map.

    • Constructor Detail

      • TiandituMapProvider

        public TiandituMapProvider(TiandituMapProviderSetting setting)
        

        Constructors with parameters

        Parameters:
        setting - Map service provider configuration
      • TiandituMapProvider

        public TiandituMapProvider()
        

        Default constructor

    • Method Detail

      • initSupportedMapNames

        protected java.util.List<java.lang.String> initSupportedMapNames()
        

        Initializes the supported map names.

        Specified by:
        initSupportedMapNames in class TiledMapProviderBase
        Returns:
        list of map names.
      • initDefaultMapParameter

        protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
        

        Gets the default map parameters.

        Specified by:
        initDefaultMapParameter in class TiledMapProviderBase
        Returns:
        map parameter list. key is the map name, and value is the default parameter for the map.
      • getOrigin

        protected Point2D getOrigin(java.lang.String mapName)
        

        Get the starting point of the map (top left).

        Specified by:
        getOrigin in class TiledMapProviderBase
        Parameters:
        mapName - map name.
        Returns:
        starting point object.
      • getSupportResolutions

        public double[] getSupportResolutions(java.lang.String mapName)
        

        Gets the resolution supported by map

        Specified by:
        getSupportResolutions in class TiledMapProviderBase
        Parameters:
        mapName - map name.
        Returns:
        resolution set.
      • getSupportScales

        public double[] getSupportScales(java.lang.String mapName)
        
        Get scale supported by map.
        Parameters:
        mapName - map name.
        Returns:
        The scale set.
      • isResolutionEquals

        protected boolean isResolutionEquals(double resolution1,
                                 double resolution2,
                                 boolean isMercator)
        
        Parameters:
        resolution1double - value
        resolution2double - value
        Returns:
        is equal
      • getTileImageUrl

        protected java.lang.String getTileImageUrl(java.lang.String mapName,
                                       int colIndex,
                                       int rowIndex,
                                       double resolution)
        
      • getLevel

        protected int getLevel(double resolution,
                   boolean isMercator)
        
      • initLODInfos

        protected boolean initLODInfos()
        

        Initializes tile information.

        Returns:
        Whether the initialization was successful
      • getSupportImageFormat

        public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
        

        Gets an array of supported image formats.

        Specified by:
        getSupportImageFormat in class TiledMapProviderBase
        Parameters:
        mapName - Map name
        Returns:
        An array of supported image formats