Help:KML format

Jump to: navigation, search
KML format
Exports geographical data into KML format
Available languages
Further Information
Provided by: Semantic Maps
Added: 1.0
Removed: still supported
Requirements: none
Format name: kml
Enabled by default: 
Indicates whether the result format is enabled by default upon installation of the respective extension.
Authors: Jeroen De Dauw
Categories: geo · export
Table of Contents

↓ INFO ↓

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



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

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


Example queries using the KML result format provided by Semantic Maps.

Simple query with the KML format

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

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

Results in: Export as KML-file

KML format specific parameters

 [[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 by SMW and extensions to SMW.

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