Azure / opendigitaltwins-dtdl

Digital Twins Definition Language
Creative Commons Attribution 4.0 International
470 stars 160 forks source link

Add documentation for point, etc. schemas supported for telemetry #80

Closed briancr-ms closed 3 years ago

briancr-ms commented 4 years ago

DTDL v2 supports point, etc. (the GeoJSON geometry types) as schemas for telemetry. The documentation should be updated to include this with same examples.

uriel-kluk commented 3 years ago

@briancr-ms GeoJson coordinates are an array, and DTDL does not support for properties. Some tools like IOTC or the PnP IoT Explorer allow you to select schema point but then it fails to save, import, export

is it expected to support GeoJson for Telemetry but not for Properties?

briancr-ms commented 3 years ago

Yes, in DTDL v2 all the geospatial types (point, etc.) are GeoJSON-based and can only be used in telemetry and commands (not properties). Separately, we are working on enabling arrays in properties in a future DTDL release.