Class GeometryTransformIndex


  • public class GeometryTransformIndex
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void clear()
      Empty the Geometry Transform Index.
      static long getGeometryTransformIndexSize()  
      static boolean isIndexActive()  
      static void reset​(int maxSize, long expiryInterval)
      Reset the index to the provided max size and expiry interval.
      All contents will be lost.
      static void setExpiry​(long expiryInterval)
      Sets the expiry time in milliseconds of the Geometry Transform Index, if active.
      static void setIndexActive​(boolean indexActive)
      Sets whether the index is active.
      static void setMaxSize​(int maxSize)
      Sets whether the maximum size of the Geometry Transform Index.
      static GeometryWrapper transform​(GeometryWrapper sourceGeometryWrapper, java.lang.String srsURI, java.lang.Boolean storeSRSTransform)  
      • Methods inherited from class java.lang.Object

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

      • GeometryTransformIndex

        public GeometryTransformIndex()
    • Method Detail

      • transform

        public static final GeometryWrapper transform​(GeometryWrapper sourceGeometryWrapper,
                                                      java.lang.String srsURI,
                                                      java.lang.Boolean storeSRSTransform)
                                               throws org.opengis.referencing.operation.TransformException,
                                                      org.opengis.util.FactoryException
        Parameters:
        sourceGeometryWrapper -
        srsURI -
        storeSRSTransform -
        Returns:
        GeometryWrapper following transformation.
        Throws:
        org.opengis.referencing.operation.TransformException
        org.opengis.util.FactoryException
      • clear

        public static final void clear()
        Empty the Geometry Transform Index.
      • setMaxSize

        public static final void setMaxSize​(int maxSize)
        Sets whether the maximum size of the Geometry Transform Index.
        Parameters:
        maxSize - : use -1 for unlimited size
      • setExpiry

        public static final void setExpiry​(long expiryInterval)
        Sets the expiry time in milliseconds of the Geometry Transform Index, if active.
        Parameters:
        expiryInterval - : use 0 or negative for unlimited timeout
      • getGeometryTransformIndexSize

        public static final long getGeometryTransformIndexSize()
        Returns:
        Number of items in the index.
      • isIndexActive

        public static boolean isIndexActive()
        Returns:
        True if index is active.
      • setIndexActive

        public static void setIndexActive​(boolean indexActive)
        Sets whether the index is active.
        Parameters:
        indexActive -
      • reset

        public static void reset​(int maxSize,
                                 long expiryInterval)
        Reset the index to the provided max size and expiry interval.
        All contents will be lost.
        Parameters:
        maxSize -
        expiryInterval -