KML export

From Maps for MediaWiki

Maps supports KML export via its integration with Semantic MediaWiki.

Coordinates stored in Semantic MediaWiki can be exported using the KML result format.

Example

A query for the 'Has coordinates' property of all pages in that have this property set:

Syntax
{{#ask:
 [[Coordinates::+]]
 |?Coordinates
 |format=kml
 |searchlabel=Export as KML-file
}}
Result

Export as KML-file

Result in table form to aid query understanding
 Coordinates
Amsterdam52° 22' 21.94" N, 4° 53' 36.97" E
Berlin52° 31' 1.33" N, 13° 23' 19.90" E
Berlin coordinates52° 30' 48.85" N, 13° 21' 26.33" E
52° 31' 47.51" N, 13° 20' 32.57" E
52° 29' 51.30" N, 13° 24' 38.53" E
Brussels50° 50' 47.61" N, 4° 21' 6.11" E
Ghent51° 3' 13.78" N, 3° 43' 30.04" E
Hamburg53° 32' 37.55" N, 10° 0' 35.69" E
Hannover52° 22' 28.12" N, 9° 44' 18.79" E
... further results

Parameters

Specific to the KML format
⧼validator-describe-header-parameter⧽ ⧼validator-describe-header-type⧽ ⧼validator-describe-header-default⧽ ⧼validator-describe-header-description⧽
text ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ The text associated with each page. Overridden by the additional queried properties if any.
title ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ The default title for results
linkabsolute ⧼validator-type-boolean⧽ yes Should links be absolute (as opposed to relative)
All parameters that can be used with format=kml
⧼validator-describe-header-parameter⧽ ⧼validator-describe-header-type⧽ ⧼validator-describe-header-default⧽ ⧼validator-describe-header-description⧽
source ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ Alternative query source
limit ⧼validator-type-integer⧽ 50 The maximum number of results to return
offset ⧼validator-type-integer⧽ 0 The offset of the first result
link ⧼validator-type-string⧽ all Show values as links
sort ⧼validator-type-string-list⧽ ⧼validator-describe-empty⧽ Property to sort the query by
order ⧼validator-type-string-list⧽ ⧼validator-describe-empty⧽ Order of the query sort
headers ⧼validator-type-string⧽ show Display the headers/property names
mainlabel ⧼validator-type-string⧽ no The label to give to the main page name
intro ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ The text to display before the query results, if there are any
outro ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ The text to display after the query results, if there are any
searchlabel ⧼validator-type-string⧽ ... further results Text for continuing the search
default ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ The text to display if there are no query results
text ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ The text associated with each page. Overridden by the additional queried properties if any.
title ⧼validator-type-string⧽ ⧼validator-describe-empty⧽ The default title for results
linkabsolute ⧼validator-type-boolean⧽ yes Should links be absolute (as opposed to relative)