dm_geojson_feature_point Subroutine

public subroutine dm_geojson_feature_point(geojson, type, lon, lat, alt, data, comma)

Returns GeoJSON feature point of given DMPACK type, longitude, latitude, altitude, and type data in JSON. The output string geojson is of the following form:

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

The property data is set to the passed JSON string data.

Arguments

Type IntentOptional Attributes Name
character(len=:), intent(out), allocatable :: geojson

Output GeoJSON string.

integer, intent(in) :: type

Point type (TYPE_NODE, TYPE_SENSOR, TYPE_TARGET).

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

Point longitude (decimal).

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

Point latitude (decimal).

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

Point altitude.

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

Point JSON data.

logical, intent(in), optional :: comma

Append comma separator.


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