Class FastLiteShape

  • All Implemented Interfaces:
    Shape, Cloneable

    public final class FastLiteShape
    extends org.geotools.geometry.jts.LiteShape
    A LiteShape subclass using PreparedGeometry to compute the results of the containment methods. This class is _not_ thread safe
    Author:
    Andrea Aime - GeoSolutions
    • Constructor Detail

      • FastLiteShape

        public FastLiteShape​(org.locationtech.jts.geom.Geometry geom)
    • Method Detail

      • contains

        public boolean contains​(double x,
                                double y)
        Specified by:
        contains in interface Shape
        Overrides:
        contains in class org.geotools.geometry.jts.LiteShape
      • contains

        public boolean contains​(Point2D p)
        Specified by:
        contains in interface Shape
        Overrides:
        contains in class org.geotools.geometry.jts.LiteShape
      • contains

        public boolean contains​(double x,
                                double y,
                                double w,
                                double h)
        Specified by:
        contains in interface Shape
        Overrides:
        contains in class org.geotools.geometry.jts.LiteShape
      • contains

        public boolean contains​(Rectangle2D r)
        Specified by:
        contains in interface Shape
        Overrides:
        contains in class org.geotools.geometry.jts.LiteShape
      • intersects

        public boolean intersects​(double x,
                                  double y,
                                  double w,
                                  double h)
        Specified by:
        intersects in interface Shape
        Overrides:
        intersects in class org.geotools.geometry.jts.LiteShape
      • intersects

        public boolean intersects​(Rectangle2D r)
        Specified by:
        intersects in interface Shape
        Overrides:
        intersects in class org.geotools.geometry.jts.LiteShape