Shapefile
Documentation for Shapefile.
Shapefile.Handle
Shapefile.Header
Shapefile.Interval
Shapefile.MultiPatch
Shapefile.MultiPoint
Shapefile.MultiPointM
Shapefile.MultiPointZ
Shapefile.Point
Shapefile.PointM
Shapefile.PointZ
Shapefile.Polygon
Shapefile.PolygonM
Shapefile.PolygonZ
Shapefile.Polyline
Shapefile.PolylineM
Shapefile.PolylineZ
Shapefile.Rect
Shapefile.Row
Shapefile.Table
Shapefile.Writer
Base.iterate
Shapefile.shape
Shapefile.shapes
Shapefile.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
— TypeHeader
Common header read/write object for shp and shx files.
Shapefile.Interval
— TypeInterval
Represents the range of measures or Z dimension, in a shape file.
Shapefile.MultiPatch
— TypeMultiPatch
Stores a collection of patch representing the boundary of a 3d object.
Fields
MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.parts
: aVector
ofInt32
indicating the object each point belongs to.parttypes
: aVector
ofInt32
indicating the type of object each point belongs to.points
: aVector
ofPoint
represents a one or multiple spatial objects.zrange
: andInterval
of bounds for thezvalues
.zvalues
: aVector
ofFloat64
indicating absolute or relative heights.
Shapefile.MultiPoint
— TypeMultiPoint <: AbstractMultiPoint
Collection of points, from a shape file.
Fields
points
: aVector
ofPoint
.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.
Shapefile.MultiPointM
— TypeMultiPointM <: AbstractMultiPoint
Collection 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
: aVector
ofPoint
.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.measures
: holds values from each point.
Shapefile.MultiPointZ
— TypeMultiPointZ <: AbstractMultiPoint
Collection 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
: aVector
ofPoint
.zvalues
: aVector
ofFloat64
representing the z dimension values.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.measures
: holds values from each point.
Shapefile.Point
— TypePoint <: AbstractPoint
Point from a shape file.
Fields x
, y
hold the spatial location.
Shapefile.PointM
— TypePointM <: AbstractPoint
Point 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 <: AbstractPoint
Three 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 <: AbstractPolygon
Represents a Polygon from a shape file.
Fields
points
: aVector
ofPoint
represents a one or multiple closed areas.parts
: aVector
ofInt32
indicating the polygon each point belongs to.MBR
:nothing
or the known bounding box. Can be retrieved withGI.bbox
.
Shapefile.PolygonM
— TypePolygonM <: AbstractPolygon
Represents a polygon from a shape file
Fields
points
: aVector
ofPoint
represents a one or multiple closed areas.parts
: aVector
ofInt32
indicating the polygon each point belongs to.MBR
:nothing
or the known bounding box. Can be retrieved withGI.bbox
.measures
: holds values from each point.
Shapefile.PolygonZ
— TypePolygonZ <: AbstractPolygon
A three dimensional polygon from a shape file.
Fields
points
: aVector
ofPoint
represents a one or multiple closed areas.parts
: aVector
ofInt32
indicating the polygon each point belongs to.zvalues
: aVector
ofFloat64
representing the z dimension values.MBR
:nothing
or the known bounding box. Can be retrieved withGI.bbox
.measures
: holds values from each point.
Shapefile.Polyline
— TypePolyline <: AbstractPolyline
Represents a single or multiple polylines from a shape file.
Fields
points
: aVector
ofPoint
represents a one or multiple lines.parts
: aVector
ofInt32
indicating the line each point belongs to.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.
Shapefile.PolylineM
— TypePolylineM <: AbstractPolyline
Polyline from a shape file, with measures.
Fields
points
: aVector
ofPoint
represents a one or multiple lines.parts
: aVector
ofInt32
indicating the line each point belongs to.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.measures
: holds values from each point.
Shapefile.PolylineZ
— TypePolylineZ <: AbstractPolyline
Three dimensional polyline of from a shape file.
Fields
points
: aVector
ofPoint
represents a one or multiple lines.parts
: aVector
ofInt32
indicating the line each point belongs to.zvalues
: aVector
ofFloat64
representing the z dimension values.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.measures
: holds values from each point.
Shapefile.Rect
— TypeRect
A rectangle object to represent the bounding box for other shape file shapes.
Shapefile.Row
— TypeRow
+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
— TypeHeader
Common header read/write object for shp and shx files.
Shapefile.Interval
— TypeInterval
Represents the range of measures or Z dimension, in a shape file.
Shapefile.MultiPatch
— TypeMultiPatch
Stores a collection of patch representing the boundary of a 3d object.
Fields
MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.parts
: aVector
ofInt32
indicating the object each point belongs to.parttypes
: aVector
ofInt32
indicating the type of object each point belongs to.points
: aVector
ofPoint
represents a one or multiple spatial objects.zrange
: andInterval
of bounds for thezvalues
.zvalues
: aVector
ofFloat64
indicating absolute or relative heights.
Shapefile.MultiPoint
— TypeMultiPoint <: AbstractMultiPoint
Collection of points, from a shape file.
Fields
points
: aVector
ofPoint
.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.
Shapefile.MultiPointM
— TypeMultiPointM <: AbstractMultiPoint
Collection 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
: aVector
ofPoint
.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.measures
: holds values from each point.
Shapefile.MultiPointZ
— TypeMultiPointZ <: AbstractMultiPoint
Collection 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
: aVector
ofPoint
.zvalues
: aVector
ofFloat64
representing the z dimension values.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.measures
: holds values from each point.
Shapefile.Point
— TypePoint <: AbstractPoint
Point from a shape file.
Fields x
, y
hold the spatial location.
Shapefile.PointM
— TypePointM <: AbstractPoint
Point 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 <: AbstractPoint
Three 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 <: AbstractPolygon
Represents a Polygon from a shape file.
Fields
points
: aVector
ofPoint
represents a one or multiple closed areas.parts
: aVector
ofInt32
indicating the polygon each point belongs to.MBR
:nothing
or the known bounding box. Can be retrieved withGI.bbox
.
Shapefile.PolygonM
— TypePolygonM <: AbstractPolygon
Represents a polygon from a shape file
Fields
points
: aVector
ofPoint
represents a one or multiple closed areas.parts
: aVector
ofInt32
indicating the polygon each point belongs to.MBR
:nothing
or the known bounding box. Can be retrieved withGI.bbox
.measures
: holds values from each point.
Shapefile.PolygonZ
— TypePolygonZ <: AbstractPolygon
A three dimensional polygon from a shape file.
Fields
points
: aVector
ofPoint
represents a one or multiple closed areas.parts
: aVector
ofInt32
indicating the polygon each point belongs to.zvalues
: aVector
ofFloat64
representing the z dimension values.MBR
:nothing
or the known bounding box. Can be retrieved withGI.bbox
.measures
: holds values from each point.
Shapefile.Polyline
— TypePolyline <: AbstractPolyline
Represents a single or multiple polylines from a shape file.
Fields
points
: aVector
ofPoint
represents a one or multiple lines.parts
: aVector
ofInt32
indicating the line each point belongs to.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.
Shapefile.PolylineM
— TypePolylineM <: AbstractPolyline
Polyline from a shape file, with measures.
Fields
points
: aVector
ofPoint
represents a one or multiple lines.parts
: aVector
ofInt32
indicating the line each point belongs to.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.measures
: holds values from each point.
Shapefile.PolylineZ
— TypePolylineZ <: AbstractPolyline
Three dimensional polyline of from a shape file.
Fields
points
: aVector
ofPoint
represents a one or multiple lines.parts
: aVector
ofInt32
indicating the line each point belongs to.zvalues
: aVector
ofFloat64
representing the z dimension values.MBR
:nothing
or the known bounding box. Can be retrieved withGeoInterface.bbox
.measures
: holds values from each point.
Shapefile.Rect
— TypeRect
A 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
+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.
geoms
must be an iterator where elements satisfyGeoInterface.isgeometry(x)
orismissing(x)
.tbl
must be a Tables.jl table of features associated with thegeoms
.crs
can benothing
or 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.