MapML encoding of video features

Hi Rob,

>  I think we should take any further discussion of MapML to a separate thread

New thread name, as suggested.  I would like to maybe brainstorm a little on how a video element could be marked up and animated according to the motion and view of the sensor

> The biodome example ... uses GeoJSON tags

If you view-source on the biodome example, you'll see a MapML feature:

       <feature><properties><name>Biodome</name></properties><geometry><Point><coordinates>-73.549767 45.559659</coordinates></Point></geometry></feature>

which is not GeoJSON, its MapML in WGS84. Under the hood, we transform that so that the JavaScript Leaflet.js library can render it as SVG, in fact.  Leaflet needs GeoJSON for that purpose, so the transformation is pretty simple.

> The area tag co-ordinates are defined in CSS

Yes, we support the area tag as  fallback for when JavaScript is disabled or whatever.  The custom <layer-> element supports MapML content inline, as in the above example, or served over the network from servers and files. When the custom <map> element's JavaScript runs, if there is a custom <area> child element, it converts the area@coords to a layer/feature in MapML, which then is transformed into a GeoJSON object and then into SVG by the Leaflet engine.  

> Also, the spec has a typo in the area tag’s shape attribute type, which is incorrectly defined as a boolean and should be an enumeration.

Fixed, I think. Thanks. I could only find DOMString as being appropriate. DOMTokenList seems to represent a possible array of values, and shape can only take on a single value.

In OGC Testbed 14 we are hoping to implement a MapML encoding of features which will look a little like the above, but will lean more heavily on existing / well defined markup in HTML.  

> please let me know if you have any additional comments regarding video geotagging for maps.

For example, we could think of a video related feature like this:

<feature itemscope itemtype="http://schema.org/FlightPath">
<properties><h1 itemprop="name">Search and Rescue Drone flight path 2018-12-22</h1><video itemprop="recording" src="flight-2018-12-22.webm"></video></properties>
<geometry><LineString><coordinates>-75.6818885 45.40813 -75.6818872 45.408013 -75.6819895 45.4080214 -75.6821553 45.4079933 -75.6822566 45.4079207 -75.6823962 45.4078389 -75.6830192 45.407565</coordinates></LineString></geometry>
</feature>

The content of the <feature> element has two parts, the properties and geometry.  Properties is structured as microdata-marked up HTML, and generates a browsing context when activated, like a map balloon for example. Geometry is structured as an OGC simple features geometry, except that the content of <coordinates> could contain certain markup, such as span, a, and possibly others TBD.  The geometry is drawn on the map, according to applied styles.

Is there a DOM API for video that would allow you to extract coordinates from the frames and animate the 'balloon' containing the video, perhaps? If the balloon browsing context could execute JavaScript, it could leverage that API for custom behaviour.

Thanks,
Peter


Peter Rushforth

Technology Advisor
Canada Centre for Mapping and Earth Observation / Earth Sciences Sector
Natural Resources Canada / Government of Canada
mailto:peter.rushforth@canada.ca / Tel: 613-759-7915

Conseiller technique
Centre canadien de cartographie et d’observation de la Terre / Secteur des sciences de la Terre
Ressources naturelles Canada / Gouvernement du Canada
mailto:peter.rushforth@canada.ca / Tél: 613-759-7915

Received on Thursday, 11 January 2018 20:12:34 UTC