Packages

package shapefile

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. class ShapefileDataSource extends FileDataSourceV2 with DataSourceRegister

    A Spark SQL data source for reading ESRI Shapefiles.

    A Spark SQL data source for reading ESRI Shapefiles. This data source supports reading the following components of shapefiles:

    • .shp: the main file
    • .dbf: (optional) the attribute file
    • .shx: (optional) the index file
    • .cpg: (optional) the code page file
    • .prj: (optional) the projection file

    The load path can be a directory containing the shapefiles, or a path to the .shp file. If the path refers to a .shp file, the data source will also read other components such as .dbf and .shx files in the same directory.

  2. case class ShapefilePartition(index: Int, files: Array[PartitionedFile]) extends Partition with InputPartition with Product with Serializable
  3. class ShapefilePartitionReader extends PartitionReader[InternalRow]
  4. case class ShapefilePartitionReaderFactory(sqlConf: SQLConf, broadcastedConf: Broadcast[SerializableConfiguration], dataSchema: StructType, readDataSchema: StructType, partitionSchema: StructType, options: ShapefileReadOptions, filters: Seq[Filter]) extends PartitionReaderFactory with Product with Serializable
  5. case class ShapefileReadOptions(geometryFieldName: String, keyFieldName: Option[String], charset: Option[String]) extends Product with Serializable

    Options for reading Shapefiles.

    Options for reading Shapefiles.

    geometryFieldName

    The name of the geometry field.

    keyFieldName

    The name of the shape key field.

    charset

    The charset of non-spatial attributes.

  6. case class ShapefileScan(sparkSession: SparkSession, fileIndex: PartitioningAwareFileIndex, dataSchema: StructType, readDataSchema: StructType, readPartitionSchema: StructType, options: CaseInsensitiveStringMap, pushedFilters: Array[Filter], partitionFilters: Seq[Expression] = Seq.empty, dataFilters: Seq[Expression] = Seq.empty) extends FileScan with Product with Serializable
  7. case class ShapefileScanBuilder(sparkSession: SparkSession, fileIndex: PartitioningAwareFileIndex, schema: StructType, dataSchema: StructType, options: CaseInsensitiveStringMap) extends FileScanBuilder with Product with Serializable
  8. case class ShapefileTable(name: String, sparkSession: SparkSession, options: CaseInsensitiveStringMap, paths: Seq[String], userSpecifiedSchema: Option[StructType], fallbackFileFormat: Class[_ <: FileFormat]) extends FileTable with Product with Serializable

Ungrouped