dm_geojson_feature_collection_add Interface

public interface dm_geojson_feature_collection_add

Generic derived type add to GeoJSON Feature Collection functions.


Module Procedures

private function geojson_feature_collection_add_node(collection, node) result(rc)

Adds node to GeoJSON Feature Collection.

The function returns the following error codes:

  • E_BOUNDS if collection is full.
  • E_INVALID if collection has not been created.

Arguments

Type IntentOptional Attributes Name
type(geojson_feature_collection_type), intent(inout) :: collection

GeoJSON Feature Collection type.

type(node_type), intent(inout) :: node

Node type.

Return Value integer

private function geojson_feature_collection_add_sensor(collection, sensor) result(rc)

Adds sensor to GeoJSON Feature Collection.

The function returns the following error codes:

  • E_BOUNDS if collection is full.
  • E_INVALID if collection has not been created.

Arguments

Type IntentOptional Attributes Name
type(geojson_feature_collection_type), intent(inout) :: collection

GeoJSON Feature Collection type.

type(sensor_type), intent(inout) :: sensor

Sensor type.

Return Value integer

private function geojson_feature_collection_add_target(collection, target) result(rc)

Adds target to GeoJSON Feature Collection.

The function returns the following error codes:

  • E_BOUNDS if collection is full.
  • E_INVALID if collection has not been created.

Arguments

Type IntentOptional Attributes Name
type(geojson_feature_collection_type), intent(inout) :: collection

GeoJSON Feature Collection type.

type(target_type), intent(inout) :: target

Target type.

Return Value integer