dm_geojson_feature_point Function

public function dm_geojson_feature_point(type, longitude, latitude, elevation, json) result(geojson)

Returns GeoJSON feature point of given DMPACK type, longitude, latitude, elevation, and type properties in JSON. The returned allocatable string is of the following form:

{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [
      10.4541194000,
      51.1642292000,
      10.0000000000
    ]
  },
  "properties": {
    "type": "node",
    "properties": {
      "id": "dummy-node",
      "name": "Dummy Node",
      "meta": "dummy description",
      "x": 0.0,
      "y": 0.0,
      "z": 0.0,
      "longitude": 10.4541194000,
      "latitude": 51.1642292000,
      "elevation": 10.0000000000
    }
  }
}

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: type

Point type (TYPE_NODE, TYPE_SENSOR, TYPE_TARGET).

real(kind=r8), intent(in) :: longitude

Point longitude (decimal).

real(kind=r8), intent(in) :: latitude

Point latitude (decimal).

real(kind=r8), intent(in) :: elevation

Point elevation.

character(len=*), intent(in) :: json

Point JSON data.

Return Value character(len=:), allocatable

GeoJSON string.


Calls

proc~~dm_geojson_feature_point~~CallsGraph proc~dm_geojson_feature_point dm_geojson_feature_point interface~dm_ftoa dm_ftoa proc~dm_geojson_feature_point->interface~dm_ftoa proc~dm_type_is_valid dm_type_is_valid proc~dm_geojson_feature_point->proc~dm_type_is_valid