dm_geojson_from Interface

public interface dm_geojson_from

Generic derived type to GeoJSON serialisation functions.


Module Procedures

private function geojson_from_node(node, comma) result(geojson)

Returns node as allocatable string in GeoJSON format.

Arguments

Type IntentOptional Attributes Name
type(node_type), intent(inout) :: node

Node type.

logical, intent(in), optional :: comma

Append comma separator.

Return Value character(len=:), allocatable

GeoJSON string.

private function geojson_from_sensor(sensor, comma) result(geojson)

Returns sensor as allocatable string in GeoJSON format.

Arguments

Type IntentOptional Attributes Name
type(sensor_type), intent(inout) :: sensor

Sensor type.

logical, intent(in), optional :: comma

Append comma separator.

Return Value character(len=:), allocatable

GeoJSON string.

private function geojson_from_target(target, comma) result(geojson)

Returns target as allocatable string in GeoJSON format.

Arguments

Type IntentOptional Attributes Name
type(target_type), intent(inout) :: target

Target type.

logical, intent(in), optional :: comma

Append comma separator.

Return Value character(len=:), allocatable

GeoJSON string.