Class CircleRDD
- java.lang.Object
-
- org.apache.sedona.core.spatialRDD.SpatialRDD<org.apache.sedona.common.geometryObjects.Circle>
-
- org.apache.sedona.core.spatialRDD.CircleRDD
-
- All Implemented Interfaces:
Serializable
public class CircleRDD extends SpatialRDD<org.apache.sedona.common.geometryObjects.Circle>
The Class CircleRDD.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.sedona.core.spatialRDD.SpatialRDD
approximateTotalCount, boundaryEnvelope, CRStransformation, fieldNames, indexedRawRDD, indexedRDD, rawSpatialRDD, schema, sourceEpsgCode, spatialPartitionedRDD, targetEpgsgCode
-
-
Constructor Summary
Constructors Constructor Description CircleRDD(SpatialRDD spatialRDD, Double Radius)
Instantiates a new circle RDD.CircleRDD(org.apache.spark.api.java.JavaRDD<org.apache.sedona.common.geometryObjects.Circle> circleRDD)
Instantiates a new circle RDD.CircleRDD(org.apache.spark.api.java.JavaRDD<org.apache.sedona.common.geometryObjects.Circle> circleRDD, String sourceEpsgCRSCode, String targetEpsgCRSCode)
Instantiates a new circle RDD.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LineStringRDD
getCenterLineStringRDDAsSpatialRDD()
Gets the center line string RDD as spatial RDD.PointRDD
getCenterPointAsSpatialRDD()
Gets the center point as spatial RDD.PolygonRDD
getCenterPolygonAsSpatialRDD()
Gets the center polygon as spatial RDD.RectangleRDD
getCenterRectangleRDDAsSpatialRDD()
Gets the center rectangle RDD as spatial RDD.-
Methods inherited from class org.apache.sedona.core.spatialRDD.SpatialRDD
analyze, analyze, analyze, boundary, buildIndex, calc_partitioner, coalesceAndBuildRawIndex, countWithoutDuplicates, countWithoutDuplicatesSPRDD, CRSTransform, CRSTransform, flipCoordinates, getCRStransformation, getPartitioner, getRawSpatialRDD, getSampleNumber, getSourceEpsgCode, getTargetEpgsgCode, MinimumBoundingRectangle, saveAsGeoJSON, saveAsWKB, saveAsWKT, setNeighborSampleNumber, setRawSpatialRDD, setSampleNumber, spatialPartitioning, spatialPartitioning, spatialPartitioning, spatialPartitioning, spatialPartitioning, spatialPartitioningWithoutDuplicates, spatialPartitioningWithoutDuplicates, spatialPartitioningWithoutDuplicates, spatialPartitioningWithoutDuplicates
-
-
-
-
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 RDDsourceEpsgCRSCode
- the source epsg CRS codetargetEpsgCRSCode
- the target epsg CRS code
-
CircleRDD
public CircleRDD(SpatialRDD spatialRDD, Double Radius)
Instantiates a new circle RDD.- Parameters:
spatialRDD
- the spatial RDDRadius
- 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
-
-