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
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=:), | intent(out), | allocatable | :: | geojson |
Output GeoJSON string. |
|
integer, | intent(in) | :: | type |
Point type ( |
||
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. |