package shapefile
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
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.
- case class ShapefilePartition(index: Int, files: Array[PartitionedFile]) extends Partition with InputPartition with Product with Serializable
- class ShapefilePartitionReader extends PartitionReader[InternalRow]
- 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
-
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.
- 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
- case class ShapefileScanBuilder(sparkSession: SparkSession, fileIndex: PartitioningAwareFileIndex, schema: StructType, dataSchema: StructType, options: CaseInsensitiveStringMap) extends FileScanBuilder with Product with Serializable
- case class ShapefileTable(name: String, sparkSession: SparkSession, options: CaseInsensitiveStringMap, paths: Seq[String], userSpecifiedSchema: Option[StructType], fallbackFileFormat: Class[_ <: FileFormat]) extends FileTable with Product with Serializable
Value Members
- object ShapefilePartitionReader
- object ShapefileReadOptions extends Serializable
- object ShapefileScan extends Serializable
- object ShapefileUtils