OccurrencesInterface
OccurrencesInterface.__demodata — MethodOccurrencesInterface.__demodata()This dataset has 2147 observations of bigfoot from the Bigfoot Field Researchers Organization, a community science project on cryptids.
OccurrencesInterface.absences — Methodabsences(c::T) where {T<:AbstractOccurrenceCollection}Returns an Occurrences where only the occurrences in the initial collection for which presence evaluates to false are kept.
OccurrencesInterface.date — Methoddate(o::Occurrence)Returns the date (technically a DateTime object) documenting the time of occurrence event. Can be missing if not known.
OccurrencesInterface.date — Methoddate(::AbstractOccurrence)Default method for any abstract occurrence type for the date operation. Unless overloaded, this returns nothing.
OccurrencesInterface.date — Methoddate(::AbstractOccurrenceCollection)Default method for any abstract occurrence collection type for the date operation. Unless overloaded, this returns an array of date on all elements of the argument.
OccurrencesInterface.date — Methoddate(::Vector{AbstractOccurrence})Default method for any vector of occurrence type for the date operation. Unless overloaded, this returns an array of date on all elements of the argument.
OccurrencesInterface.elements — Methodelements(::T) where {T<:AbstractOccurrenceCollection}Returns the elements contained in an abstract collection of occurrences – this must be something that can be iterated. The default value, when unimplemented, is nothing. Note that when overloaded as part of your own implementation of the interface, this must return a Vector.
OccurrencesInterface.entity — Methodentity(o::Occurrence)Returns the entity (species name) for an occurrence event.
OccurrencesInterface.entity — Methodentity(::AbstractOccurrence)Default method for any abstract occurrence type for the entity operation. Unless overloaded, this returns nothing.
OccurrencesInterface.entity — Methodentity(::AbstractOccurrenceCollection)Default method for any abstract occurrence collection type for the entity operation. Unless overloaded, this returns an array of entity on all elements of the argument.
OccurrencesInterface.entity — Methodentity(::Vector{AbstractOccurrence})Default method for any vector of occurrence type for the entity operation. Unless overloaded, this returns an array of entity on all elements of the argument.
OccurrencesInterface.place — Methodplace(o::Occurrence)Returns the place of the occurrence event, either as a tuple of float in the longitude, latitude format, or as missing. The CRS is assumed to be WGS84 with no option to change it. This follows the GeoJSON specification.
OccurrencesInterface.place — Methodplace(::AbstractOccurrence)Default method for any abstract occurrence type for the place operation. Unless overloaded, this returns nothing.
OccurrencesInterface.place — Methodplace(::AbstractOccurrenceCollection)Default method for any abstract occurrence collection type for the place operation. Unless overloaded, this returns an array of place on all elements of the argument.
OccurrencesInterface.place — Methodplace(::Vector{AbstractOccurrence})Default method for any vector of occurrence type for the place operation. Unless overloaded, this returns an array of place on all elements of the argument.
OccurrencesInterface.presence — Methodpresence(o::Occurrence)Returns a Bool for the occurrence status, where true is the presence of the entity and false is the (pseudo)absence.
OccurrencesInterface.presence — Methodpresence(::AbstractOccurrence)Default method for any abstract occurrence type for the presence operation. Unless overloaded, this returns nothing.
OccurrencesInterface.presence — Methodpresence(::AbstractOccurrenceCollection)Default method for any abstract occurrence collection type for the presence operation. Unless overloaded, this returns an array of presence on all elements of the argument.
OccurrencesInterface.presence — Methodpresence(::Vector{AbstractOccurrence})Default method for any vector of occurrence type for the presence operation. Unless overloaded, this returns an array of presence on all elements of the argument.
OccurrencesInterface.presences — Methodpresences(c::T) where {T<:AbstractOccurrenceCollection}Returns an Occurrences where only the occurrences in the initial collection for which presence evaluates to true are kept.
OccurrencesInterface.AbstractOccurrence — TypeAbstractOccurrenceOther types describing a single observation should be sub-types of this. Occurrences are always defined as a single observation of a single species.
OccurrencesInterface.AbstractOccurrenceCollection — TypeAbstractOccurrenceCollectionOther types describing multiple observations can be sub-types of this. Occurrences collections are a way to collect multiple observations of arbitrarily many species.
OccurrencesInterface.Occurrence — TypeOccurrenceThis is a sub-type of AbstractOccurrence, with the following types:
what- species name, defaults to""presence- a boolean to mark the presence of the species, defaults totruewhere- a tuple giving the location as longitude,latitude in WGS84, ormissing, defaults tomissingwhen- aDateTimegiving the date of observation, ormissing, defaults tomissing
When the interface is properly implemented for any type that is a sub-type of AbstractOccurrence, there is an Occurrence object can be created directly with e.g. Occurrence(observation). There is, similarly, an automatically implemented convert method.
OccurrencesInterface.Occurrence — MethodOccurrence(t::T) where {T<:AbstractOccurrence}Given a type that is a subtype of AbstractOccurrence, constructs an Occurrence object using the methods in the interface. This should not be overloaded in other packages.
OccurrencesInterface.Occurrences — TypeOccurrencesThis is a sub-type of AbstractOccurrenceCollection. No default value.