com.supermap.services.components.impl

Class TileMatrixsCalculator

  • java.lang.Object
    • com.supermap.services.components.impl.TileMatrixsCalculator


  • public class TileMatrixsCalculator
    extends java.lang.Object
    
    TileMatrix collection calculation class. TileMatrix is split into TileTask assigned to worker in JobRunner. This class calculates a series of TileMatrix based on a cached face. Ask these TileMatrix to cover the surface to cut cache, while minimizing the number to cut cache. (Cut the cache surface is irregular, may be concave polygon)

    Since:
    6.1.3
    • Constructor Summary

      Constructors 
      Constructor and Description
      TileMatrixsCalculator(Point2D pLeftTop, double pWidth, double pHeight)
      The Constructor.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.List<TileMatrix> calculate(com.vividsolutions.jts.geom.Geometry cacheRegion)
      According to the input surface to calculate a series of TileMatrix.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TileMatrixsCalculator

        public TileMatrixsCalculator(Point2D pLeftTop,
                             double pWidth,
                             double pHeight)
        

        The Constructor.

        Parameters:
        pLeftTop - Cache the origin, the upper left corner
        pWidth - tile Geographical range width
        pHeight - tile Geographical range height
    • Method Detail

      • calculate

        public java.util.List<TileMatrix> calculate(com.vividsolutions.jts.geom.Geometry cacheRegion)
        
        According to the input surface to calculate a series of TileMatrix. The method calculates an initial TileMatrix based on the bounds of the input plane. And then recursively split the TileMatrix.

        Parameters:
        cacheRegion -
        Returns:
        Since:
        6.1.3