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 — TypeHandle
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 — TypeHeaderCommon header read/write object for shp and shx files.
Shapefile.Interval — TypeIntervalRepresents the range of measures or Z dimension, in a shape file.
Shapefile.MultiPatch — TypeMultiPatchStores 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 — TypeMultiPoint <: AbstractMultiPointCollection of points, from a shape file.
Fields
points: aVectorofPoint.MBR:nothingor the known bounding box. Can be retrieved withGeoInterface.bbox.
Shapefile.MultiPointM — TypeMultiPointM <: 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 — TypeMultiPointZ <: 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 — TypePoint <: AbstractPointPoint from a shape file.
Fields x, y hold the spatial location.
Shapefile.PointM — TypePointM <: 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 — TypePointZ <: 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 — TypePolygon <: 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 — TypePolygonM <: 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 — TypePolygonZ <: 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 — TypePolyline <: 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 — TypePolylineM <: 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 — TypePolylineZ <: 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 — TypeRectA rectangle object to represent the bounding box for other shape file shapes.
Shapefile.Row — TypeRow
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 — TypeTable
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 — TypeWriter(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 — FunctionBase.iterate(t::Table)Iterate over the rows of a Shapefile.Table, yielding a Shapefile.Row for each row.
Shapefile.shape — Methodshape(row::Row)Get the geometry associated with a Row from a shapefile Table.
Shapefile.shapes — Methodshapes(t::Table)Get a vector of the geometries in a shapefile Table, without any metadata.
Shapefile.write — Methodwrite(path::AbstractString, w::Shapefile.Writer; force=false)See ?Shapefile.Writer for details.