Skip to content

Can a geospatial point be a property in DTDL v3? #185

@KaiDrange

Description

@KaiDrange

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions