def METHOD_NAME(self):
    spatial_rdd = LineStringRDD(
        sparkContext=self.sc,
        InputLocation=input_location,
        splitter=splitter,
        carryInputData=True,
        partitions=num_partitions
    )
    spatial_rdd.analyze()
    spatial_rdd.spatialPartitioning(grid_type)
    spatial_rdd.buildIndex(IndexType.RTREE, True)
    spatial_rdd_copy = LineStringRDD()
    spatial_rdd_copy.rawJvmSpatialRDD = spatial_rdd.rawJvmSpatialRDD
    spatial_rdd_copy.analyze()