TTCN-3 typing for RFC 7946 (GeoJSON) [message #1841531] |
Thu, 20 May 2021 03:53  |
Eclipse User |
|
|
|
Good morning All,
Does anyone already do complete or partial TTCN-3 typing for RFC 7946 (GeoJSON)? I need the Polygon typing.
Here is what I did (my proposal) but I would like to get your feedback.
Thanks a lot
Yann
type record Geometry {
JSON.String type_,
Coordinates coordinates
} with {
variant (type_) "name as 'type'";
}
type record of JSON.Number Coordinate;
type record of Coordinate Coordinates;
type record Property {
JSON.String key,
JSON.String value_
} with {
variant (value_) "name as 'value'";
}
type record of Property Properties;
type record Polygon {
JSON.String type_,
Geometry geometry,
Properties properties,
JSON.String this
} with {
variant (type_) "name as 'type'";
}
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02858 seconds