|
|
dkml | Position |
<dkml> examples |
Position Attributes Elements XML Reference |
<dkml> example from the profile.xml sample.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2008, 2009 IBM. -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- are made available under the terms of the Eclipse Public License v1.0 -->
<!-- which accompanies this distribution, and is available at -->
<!-- http://www.eclipse.org/legal/epl-v10.html -->
<!-- -->
<!-- Contributors: -->
<!-- IBM - initial API and implementation -->
<!-- WARNING: -->
<!-- Consult the hardware manufacturer's technical specifications and User -->
<!-- Guide for proper usage of the hardware before you use the Device Kit. -->
<!-- Improper usage may result in damage to the hardware. -->
<dkml>
<profile id="PositionProfile" packagebase="org.eclipse.soda.dk" abstract="true"
old="false">
<description>Position Profile</description>
<history>
<description>Initial version</description>
<provider>Eclipse.org</provider>
<version>1.2.0</version>
</history>
<provider>Eclipse.org</provider>
<version>1.2.0</version>
<vendor>IBM</vendor>
<incubation>true</incubation>
<!-- Protocol Specification -->
<spec id="Specification"/>
<!-- Position Group -->
<group id="Position">
<measurement id="Coordinate" type="Map">
<data id="latitude">
<description>The "latitude" key contains the current latitude value.
The preferred implementation of this value is a Float or Double that contains
the latitude degree.
A negative value is used to specify a south latitude.
If a String is used, then the string should conform to ISO 6709.
</description>
<units>degree</units>
</data>
<data id="longitude">
<description>The "longitude" key contains the current longitude value.
The preferred implementation of this value is a Float or Double that contains
the longitude degree.
A negative value is used to specify a west longitude.
If a String is used, then the string should conform to ISO 6709.
</description>
<units>degree</units>
</data>
<data id="altitude">
<description>The "altitude" key contains the current altitude value.
The preferred implementation of this value is a Number that contains
the altitude in meters.
</description>
<units>meter</units>
</data>
<data id="x" type="Number">
<description>The "x" key contains the current x value.
</description>
<units>meter</units>
</data>
<data id="y" type="Number">
<description>The "y" key contains the current y value.
</description>
<units>meter</units>
</data>
<data id="z" type="Number">
<description>The "z" key contains the current z value.
</description>
<units>meter</units>
</data>
<data id="coordinateType" type="string">
<description>The "coordinateType" key contains the current coordinate type value.
The preferred value is WGS84.
Possible values are WGS84, OSGB36, ED50 and others.
</description>
<enum>
<label>WGS84</label>
<value>
<string>WGS84</string>
</value>
</enum>
<enum>
<label>OSGB36</label>
<value>
<string>OSGB36</string>
</value>
</enum>
<enum>
<label>ED50</label>
<value>
<string>ED50</string>
</value>
</enum>
</data>
<data id="time" type="long">
<description>The "time" key contains the millisecond time of the coordinate position.
</description>
<units>milliseconds</units>
</data>
<data id="dataExtensions" type="Map">
<description>The value stored at the "dataExtensions" key of this coordinate is the user
defined data extensions.
</description>
</data>
</measurement>
</group>
</profile>
</dkml>
| Copyright (c) 2010 IBM. See license in Legal section. | 2010-01-22 | Position XML Reference 1.2.0 |