Help:KML format

From semantic-mediawiki.org
KML format
Exports geographical data into KML format
Further Information
Provided by: Extension "Maps"
Added: 1.0
Removed: still supported
Requirements: none
Format name: kml
Enabled? Indicates whether the result format is enabled by default upon installation of the respective extension. yes
Authors: Jeroen De Dauw
Categories: geo · export
Table of Contents

The result format kml, part of the Maps (formerly Semantic Maps) extension, allows for export of queried geographical data in KML (Keyhole Markup Language).

Parameters[edit]

General[edit]

Parameter Type Default Description
source text empty Alternative query source
limit whole number 50 The maximum number of results to return
offset whole number 0 The offset of the first result
link text all Show values as links
sort list of texts empty Property to sort the query by
order list of texts empty Order of the query sort
headers text show Display the headers/property names
mainlabel text no The label to give to the main page name
intro text empty The text to display before the query results, if there are any
outro text empty The text to display after the query results, if there are any
searchlabel text ... further results Text for continuing the search
default text empty The text to display if there are no query results

Format specific[edit]

Parameter Type Default Description
text text empty The text associated with each page. Overridden by the additional queried properties if any.
title text empty The default title for results
linkabsolute yes/no yes Should links be absolute (as opposed to relative)
pagelinktext text View page $1 The text to use for the links to the page, in which $1 will be replaced by the page title

Examples[edit]

Example queries using the Help:KML format provided by Extension "Maps".

Simple query with the KML format[edit]

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

{{#ask:
 [[Has coordinates::+]]
 | ?Has coordinates
 | format=kml
 | searchlabel=Export as KML-file
}}

Results in: Export as KML-file

KML format specific parameters[edit]

{{#ask:
 [[Has coordinates::+]]
 | ?Has coordinates
 | format=kml
 | pagelinktext=Check out $1 now!
 | linkabsolute=off
 | searchlabel=Export as KML-file
}}

Results in: Export as KML-file

Geo formats

These are the geo related result formats provided:



This documentation page applies to all SMW versions from 1.6.0 to the most current version.
      Other languages: dezh-hans

Help:KML format en 1.6.0