Class CircleRDD

    • Constructor Detail

      • CircleRDD

        public CircleRDD​(org.apache.spark.api.java.JavaRDD<org.apache.sedona.common.geometryObjects.Circle> circleRDD)
        Instantiates a new circle RDD.
        Parameters:
        circleRDD - the circle RDD
      • CircleRDD

        public CircleRDD​(org.apache.spark.api.java.JavaRDD<org.apache.sedona.common.geometryObjects.Circle> circleRDD,
                         String sourceEpsgCRSCode,
                         String targetEpsgCRSCode)
        Instantiates a new circle RDD.
        Parameters:
        circleRDD - the circle RDD
        sourceEpsgCRSCode - the source epsg CRS code
        targetEpsgCRSCode - the target epsg CRS code
      • CircleRDD

        public CircleRDD​(SpatialRDD spatialRDD,
                         Double Radius)
        Instantiates a new circle RDD.
        Parameters:
        spatialRDD - the spatial RDD
        Radius - the radius
    • Method Detail

      • getCenterPointAsSpatialRDD

        public PointRDD getCenterPointAsSpatialRDD()
        Gets the center point as spatial RDD.
        Returns:
        the center point as spatial RDD
      • getCenterPolygonAsSpatialRDD

        public PolygonRDD getCenterPolygonAsSpatialRDD()
        Gets the center polygon as spatial RDD.
        Returns:
        the center polygon as spatial RDD
      • getCenterLineStringRDDAsSpatialRDD

        public LineStringRDD getCenterLineStringRDDAsSpatialRDD()
        Gets the center line string RDD as spatial RDD.
        Returns:
        the center line string RDD as spatial RDD
      • getCenterRectangleRDDAsSpatialRDD

        public RectangleRDD getCenterRectangleRDDAsSpatialRDD()
        Gets the center rectangle RDD as spatial RDD.
        Returns:
        the center rectangle RDD as spatial RDD