Shapefile
Documentation for Shapefile.
Shapefile.HandleShapefile.HeaderShapefile.IntervalShapefile.MultiPatchShapefile.MultiPointShapefile.MultiPointMShapefile.MultiPointZShapefile.PointShapefile.PointMShapefile.PointZShapefile.PolygonShapefile.PolygonMShapefile.PolygonZShapefile.PolylineShapefile.PolylineMShapefile.PolylineZShapefile.RectShapefile.RowShapefile.TableShapefile.WriterBase.iterateShapefile.shapeShapefile.shapesShapefile.write
Shapefile.Handle — Type
Handle
Handle(path::AbstractString, [indexpath::AbstractString])Load a shapefile into GeoInterface compatible objects. This can be plotted with Plots.jl plot.
The Vector of shape object can be accessed with shapes(handle).
Handle may have a known bounding box, which can be retrieved with GeoInterface.bbox.
Shapefile.Header — Type
HeaderCommon header read/write object for shp and shx files.
Shapefile.Interval — Type
IntervalRepresents the range of measures or Z dimension, in a shape file.
Shapefile.MultiPatch — Type
MultiPatchStores a collection of patch representing the boundary of a 3d object.
Fields
MBR:nothingor the known bounding box. Can be retrieved withGeoInterface.bbox.parts: aVectorofInt32indicating the object each point belongs to.parttypes: aVectorofInt32indicating the type of object each point belongs to.points: aVectorofPointrepresents a one or multiple spatial objects.zrange: andIntervalof bounds for thezvalues.zvalues: aVectorofFloat64indicating absolute or relative heights.
Shapefile.MultiPoint — Type
MultiPoint <: AbstractMultiPointCollection of points, from a shape file.
Fields
points: aVectorofPoint.MBR:nothingor the known bounding box. Can be retrieved withGeoInterface.bbox.
Shapefile.MultiPointM — Type
MultiPointM <: AbstractMultiPointCollection of points, from a shape file.
Includes a measures field, holding values from each point.
May have a known bounding box, which can be retrieved with GeoInterface.bbox.
Fields
points: aVectorofPoint.MBR:nothingor the known bounding box. Can be retrieved withGeoInterface.bbox.measures: holds values from each point.
Shapefile.MultiPointZ — Type
MultiPointZ <: AbstractMultiPointCollection of 3d points, from a shape file.
Includes a measures field, holding values from each point.
May have a known bounding box, which can be retrieved with GeoInterface.bbox.
Fields
points: aVectorofPoint.zvalues: aVectorofFloat64representing the z dimension values.MBR:nothingor the known bounding box. Can be retrieved withGeoInterface.bbox.measures: holds values from each point.
Shapefile.Point — Type
Point <: AbstractPointPoint from a shape file.
Fields x, y hold the spatial location.
Shapefile.PointM — Type
PointM <: AbstractPointPoint from a shape file.
Fields x, y hold the spatial location.
Includes a measure field m, holding a value for the point.
Shapefile.PointZ — Type
PointZ <: AbstractPointThree dimensional point, from a shape file.
Fields x, y, z hold the spatial location.
Includes a measure field m, holding a value for the point.
Shapefile.Polygon — Type
Polygon <: AbstractPolygonRepresents a Polygon from a shape file.
Fields
points: aVectorofPointrepresents a one or multiple closed areas.parts: aVectorofInt32indicating the polygon each point belongs to.MBR:nothingor the known bounding box. Can be retrieved withGI.bbox.
Shapefile.PolygonM — Type
PolygonM <: AbstractPolygonRepresents a polygon from a shape file
Fields
points: aVectorofPointrepresents a one or multiple closed areas.parts: aVectorofInt32indicating the polygon each point belongs to.MBR:nothingor the known bounding box. Can be retrieved withGI.bbox.measures: holds values from each point.
Shapefile.PolygonZ — Type
PolygonZ <: AbstractPolygonA three dimensional polygon from a shape file.
Fields
points: aVectorofPointrepresents a one or multiple closed areas.parts: aVectorofInt32indicating the polygon each point belongs to.zvalues: aVectorofFloat64representing the z dimension values.MBR:nothingor the known bounding box. Can be retrieved withGI.bbox.measures: holds values from each point.
Shapefile.Polyline — Type
Polyline <: AbstractPolylineRepresents a single or multiple polylines from a shape file.
Fields
points: aVectorofPointrepresents a one or multiple lines.parts: aVectorofInt32indicating the line each point belongs to.MBR:nothingor the known bounding box. Can be retrieved withGeoInterface.bbox.
Shapefile.PolylineM — Type
PolylineM <: AbstractPolylinePolyline from a shape file, with measures.
Fields
points: aVectorofPointrepresents a one or multiple lines.parts: aVectorofInt32indicating the line each point belongs to.MBR:nothingor the known bounding box. Can be retrieved withGeoInterface.bbox.measures: holds values from each point.
Shapefile.PolylineZ — Type
PolylineZ <: AbstractPolylineThree dimensional polyline of from a shape file.
Fields
points: aVectorofPointrepresents a one or multiple lines.parts: aVectorofInt32indicating the line each point belongs to.zvalues: aVectorofFloat64representing the z dimension values.MBR:nothingor the known bounding box. Can be retrieved withGeoInterface.bbox.measures: holds values from each point.
Shapefile.Rect — Type
RectA rectangle object to represent the bounding box for other shape file shapes.
Shapefile.Row — Type
Row
Row(geometry, record::DBFTables.Row)A struct representing a single record in a shapefile.
Property names accessible by row.x are geometry for the geometry object, and the names of the columns in record.
Shapefile.Table — Type
Table
Table(path::AbstractString)
Table(shp::Handle{T}, dbf::DBFTables.Table)Represents both geometries and their associated fields as a Tables.jl compatible table, where each row is is a an object such as a (Point](@ref), Polyline or Polygon.
The Shapefile.Table constructor can read either a String path to a shapefile, or a Shapefile.Handle and a DBFTables.Table.
Property names accessible by table.x are geometry for the geometry object, and the names of the columns in dbf.
Shapefile.Writer — Type
Writer(geoms, tbl = Shapefile.emptytable(geoms), crs = nothing)Prepared data for writing as shapefile.
geomsmust be an iterator where elements satisfyGeoInterface.isgeometry(x)orismissing(x).tblmust be a Tables.jl table of features associated with thegeoms.crscan benothingor something that can be converted toGeoFormatTypes.ESRI.WellKnownText{GeoFormatTypes.CRS}.
Base.iterate — Function
Base.iterate(t::Table)Iterate over the rows of a Shapefile.Table, yielding a Shapefile.Row for each row.
Shapefile.shape — Method
shape(row::Row)Get the geometry associated with a Row from a shapefile Table.
Shapefile.shapes — Method
shapes(t::Table)Get a vector of the geometries in a shapefile Table, without any metadata.
Shapefile.write — Method
write(path::AbstractString, w::Shapefile.Writer; force=false)See ?Shapefile.Writer for details.