Contains subroutines to convert derived types to GeoJSON format (RFC 7946).
Generic derived type to GeoJSON serialisation functions.
Returns node as allocatable string in GeoJSON format.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(node_type), | intent(inout) | :: | node |
Node type. |
||
logical, | intent(in), | optional | :: | comma |
Append comma separator. |
GeoJSON string.
Returns sensor as allocatable string in GeoJSON format.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(sensor_type), | intent(inout) | :: | sensor |
Sensor type. |
||
logical, | intent(in), | optional | :: | comma |
Append comma separator. |
GeoJSON string.
Returns target as allocatable string in GeoJSON format.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(target_type), | intent(inout) | :: | target |
Target type. |
||
logical, | intent(in), | optional | :: | comma |
Append comma separator. |
GeoJSON string.
Generic derived type to GeoJSON writer.
Writes node to file or standard output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(node_type), | intent(inout) | :: | node |
Node type. |
||
integer, | intent(in), | optional | :: | unit |
File unit. |
|
logical, | intent(in), | optional | :: | comma |
Append comma separator. |
Writes sensor to file or standard output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(sensor_type), | intent(inout) | :: | sensor |
Sensor type. |
||
integer, | intent(in), | optional | :: | unit |
File unit. |
|
logical, | intent(in), | optional | :: | comma |
Append comma separator. |
Writes target to file or standard output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(target_type), | intent(inout) | :: | target |
Target type. |
||
integer, | intent(in), | optional | :: | unit |
File unit. |
|
logical, | intent(in), | optional | :: | comma |
Append comma separator. |
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 | 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. |