-
Notifications
You must be signed in to change notification settings - Fork 172
Description
I'm currently unsure if the geospatial schemas can be used for properties in DTDL v3. I have a model with a point as property in my model:
{
"@type": "Property",
"name": "GeoLocation",
"schema": "point"
}
I have a BasicDigitalTwin instance with "GeoLocation" in my Contents dictionary. I try to set the value to the following:
basicTwin.Contents["GeoLocation"] = new Dictionary<string, object>
{
{ "type", "Point" },
{ "coordinates", new[] { 10f, 20f } }
};
The twin gets created, but in the explorer, I get a "Properties missing a model..." error. I can see GeoLocation with type and a coordinates array, but with warning icons.
I just read that for older DTDL versions geospatial types could only be used for telemetry. The example for v3 is also for telemetry, but I haven't spotted any v3 information indicating that it can't be used for properties , so now I'm unsure if still is still a limitation or not.
So, perhaps the v3 documentation should be updated to explicitly mention this (unless it is there, but I have just missed it)?
If geospatial properties ARE supported, any pointers to what I'm currently doing wrong would be much appreciated.