public abstract class SpatialRDD extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
Double[] |
boundary
The boundary.
|
com.vividsolutions.jts.geom.Envelope |
boundaryEnvelope
The boundary envelope.
|
List<com.vividsolutions.jts.geom.Envelope> |
grids
The grids.
|
org.apache.spark.api.java.JavaRDD<Object> |
indexedRawRDD
The indexed raw RDD.
|
org.apache.spark.api.java.JavaPairRDD<Integer,com.vividsolutions.jts.index.SpatialIndex> |
indexedRDD
The indexed RDD.
|
org.apache.spark.api.java.JavaRDD<Object> |
rawSpatialRDD
The raw spatial RDD.
|
org.apache.spark.api.java.JavaPairRDD<Integer,Object> |
spatialPartitionedRDD
The spatial partitioned RDD.
|
long |
totalNumberOfRecords
The total number of records.
|
| Constructor and Description |
|---|
SpatialRDD() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
analyze()
Analyze.
|
protected boolean |
analyze(org.apache.spark.storage.StorageLevel newLevel)
Analyze.
|
com.vividsolutions.jts.geom.Envelope |
boundary()
Boundary.
|
void |
buildIndex(IndexType indexType,
boolean buildIndexOnSpatialPartitionedRDD)
Builds the index.
|
long |
countWithoutDuplicates()
Count without duplicates.
|
long |
countWithoutDuplicatesSPRDD()
Count without duplicates SPRDD.
|
protected boolean |
CRSTransform(String sourceEpsgCRSCode,
String targetEpsgCRSCode)
CRS transform.
|
boolean |
getCRStransformation()
Gets the CR stransformation.
|
org.apache.spark.api.java.JavaRDD<Object> |
getRawSpatialRDD()
Gets the raw spatial RDD.
|
String |
getSourceEpsgCode()
Gets the source epsg code.
|
String |
getTargetEpgsgCode()
Gets the target epgsg code.
|
RectangleRDD |
MinimumBoundingRectangle()
Deprecated.
|
void |
saveAsGeoJSON(String outputLocation)
Save as geo JSON.
|
void |
setRawSpatialRDD(org.apache.spark.api.java.JavaRDD<Object> rawSpatialRDD)
Sets the raw spatial RDD.
|
boolean |
spatialPartitioning(GridType gridType)
Spatial partitioning.
|
boolean |
spatialPartitioning(List<com.vividsolutions.jts.geom.Envelope> otherGrids)
Spatial partitioning.
|
public long totalNumberOfRecords
public Double[] boundary
public com.vividsolutions.jts.geom.Envelope boundaryEnvelope
public org.apache.spark.api.java.JavaPairRDD<Integer,Object> spatialPartitionedRDD
public org.apache.spark.api.java.JavaPairRDD<Integer,com.vividsolutions.jts.index.SpatialIndex> indexedRDD
public org.apache.spark.api.java.JavaRDD<Object> indexedRawRDD
public org.apache.spark.api.java.JavaRDD<Object> rawSpatialRDD
public List<com.vividsolutions.jts.geom.Envelope> grids
protected boolean CRSTransform(String sourceEpsgCRSCode, String targetEpsgCRSCode)
sourceEpsgCRSCode - the source epsg CRS codetargetEpsgCRSCode - the target epsg CRS codepublic boolean spatialPartitioning(GridType gridType) throws Exception
gridType - the grid typeException - the exceptionpublic boolean spatialPartitioning(List<com.vividsolutions.jts.geom.Envelope> otherGrids) throws Exception
otherGrids - the other gridsException - the exceptionpublic long countWithoutDuplicates()
public long countWithoutDuplicatesSPRDD()
public void buildIndex(IndexType indexType, boolean buildIndexOnSpatialPartitionedRDD) throws Exception
indexType - the index typebuildIndexOnSpatialPartitionedRDD - the build index on spatial partitioned RDDException - the exceptionpublic com.vividsolutions.jts.geom.Envelope boundary()
public org.apache.spark.api.java.JavaRDD<Object> getRawSpatialRDD()
public void setRawSpatialRDD(org.apache.spark.api.java.JavaRDD<Object> rawSpatialRDD)
rawSpatialRDD - the new raw spatial RDDprotected boolean analyze(org.apache.spark.storage.StorageLevel newLevel)
newLevel - the new levelprotected boolean analyze()
public void saveAsGeoJSON(String outputLocation)
outputLocation - the output location@Deprecated public RectangleRDD MinimumBoundingRectangle()
public boolean getCRStransformation()
public String getSourceEpsgCode()
public String getTargetEpgsgCode()
Copyright © 2017. All rights reserved.