Skip to main content

AgsiObservationShape

Struct AgsiObservationShape 

Source
pub struct AgsiObservationShape {
    pub agsi_data_property_from_file: Option<AgsiDataPropertyFromFile>,
    pub agsi_data_property_value: Vec<AgsiDataPropertyValue>,
    pub agsi_geometry_from_file: AgsiGeometryFromFile,
    pub date: Option<NaiveDate>,
    pub made_by: Option<String>,
    pub observation_id: Option<String>,
    pub observation_nature: Option<String>,
    pub observation_text: Option<String>,
    pub remarks: Option<String>,
}
Expand description

An agsiObservationShape is an observation related to a geographic shape, e.g. line, area, volume or series of points, defined in 2D or 3D space as required. Observations can be text or numeric value(s). Alternatively, a single agsiObservationPoint object can be used to provide attributed data using embedded agsiDataPropertyValue objects. For observations that relate to a line, area, volume or series of points, use agsiObservationShape. For GI exploratory holes and their data, use agsiObservationExpHole.

JSON schema
{
 "description": "An agsiObservationShape is an observation related to a geographic shape, e.g. line, area, volume or series of points, defined in 2D or 3D space as required. Observations can be text or numeric value(s). Alternatively, a single agsiObservationPoint object can be used to provide attributed data using embedded agsiDataPropertyValue objects. For observations that relate to a line, area, volume or series of points, use agsiObservationShape. For GI exploratory holes and their data, use agsiObservationExpHole.",
 "type": "object",
 "required": [
   "agsiGeometryFromFile"
 ],
 "properties": {
   "agsiDataPropertyFromFile": {
     "description": "An embedded agsiDataPropertyFromFile object, which may be used to reference to an external supporting data file.",
     "type": "object",
     "$ref": "#/$defs/agsiDataPropertyFromFile"
   },
   "agsiDataPropertyValue": {
     "description": "Array of embedded agsiDataPropertyValue objects. May be used to provide attributed data for this observation (numeric values and/or text).",
     "type": "array",
     "items": {
       "$ref": "#/$defs/agsiDataPropertyValue"
     }
   },
   "agsiGeometryFromFile": {
     "description": "An embedded Geometry object defining the geometry for this observation, or the location of the observation, which will be a reference to an external file. The geometry may comprise: line, area, volume (or sets therefore), or a set of points.",
     "type": "object",
     "$ref": "#/$defs/agsiGeometryFromFile"
   },
   "date": {
     "description": "Date of observation, if applicable.",
     "type": "string",
     "format": "date",
     "example": "2018-03-13"
   },
   "madeBy": {
     "description": "Name and/or organisation of person(s) making the observation, if applicable.",
     "type": "string",
     "example": "S Jones (ABC Consultants)"
   },
   "observationID": {
     "description": "Identifier for this observation. May be local to this file or a UUID as required/specified. This is optional and not referenced anywhere else in the schema, but it may be beneficial to include this to help with data control and integrity, and some software/applications may require it. If used, identifiers for observationID should be unique at least within each observation set (agsiObservationSet object), and preferably unique within the AGSi file. ",
     "type": "string",
     "example": "FieldGeology/Obs/001"
   },
   "observationNature": {
     "description": "Description of the nature of the observation (use observationText for the observation itself).",
     "type": "string",
     "example": "Geological field survey of visible outcrop"
   },
   "observationText": {
     "description": "Description of the observation as text. Not required if agsiDataPropertyValue used to provide attributed data.",
     "type": "string",
     "example": "Surveyed boundary of top of Gotham Clay, in side of exposed cutting."
   },
   "remarks": {
     "description": "Additional remarks, if required.",
     "type": "string",
     "example": "Some remarks if required"
   }
 },
 "additionalProperties": false
}

Fields§

§agsi_data_property_from_file: Option<AgsiDataPropertyFromFile>

An embedded agsiDataPropertyFromFile object, which may be used to reference to an external supporting data file.

§agsi_data_property_value: Vec<AgsiDataPropertyValue>

Array of embedded agsiDataPropertyValue objects. May be used to provide attributed data for this observation (numeric values and/or text).

§agsi_geometry_from_file: AgsiGeometryFromFile

An embedded Geometry object defining the geometry for this observation, or the location of the observation, which will be a reference to an external file. The geometry may comprise: line, area, volume (or sets therefore), or a set of points.

§date: Option<NaiveDate>

Date of observation, if applicable.

§made_by: Option<String>

Name and/or organisation of person(s) making the observation, if applicable.

§observation_id: Option<String>

Identifier for this observation. May be local to this file or a UUID as required/specified. This is optional and not referenced anywhere else in the schema, but it may be beneficial to include this to help with data control and integrity, and some software/applications may require it. If used, identifiers for observationID should be unique at least within each observation set (agsiObservationSet object), and preferably unique within the AGSi file.

§observation_nature: Option<String>

Description of the nature of the observation (use observationText for the observation itself).

§observation_text: Option<String>

Description of the observation as text. Not required if agsiDataPropertyValue used to provide attributed data.

§remarks: Option<String>

Additional remarks, if required.

Implementations§

Trait Implementations§

Source§

impl Clone for AgsiObservationShape

Source§

fn clone(&self) -> AgsiObservationShape

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AgsiObservationShape

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AgsiObservationShape

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&AgsiObservationShape> for AgsiObservationShape

Source§

fn from(value: &AgsiObservationShape) -> Self

Converts to this type from the input type.
Source§

impl From<AgsiObservationShape> for AgsiObservationShape

Source§

fn from(value: AgsiObservationShape) -> Self

Converts to this type from the input type.
Source§

impl Serialize for AgsiObservationShape

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<AgsiObservationShape> for AgsiObservationShape

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: AgsiObservationShape) -> Result<Self, ConversionError>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,