KML export: Difference between revisions
From Maps for MediaWiki
(Created page with "Maps supports KML export via its integration with Semantic MediaWiki. Coordinates stored in Semantic MediaWiki can be exported u...") |
mNo edit summary |
||
Line 2: | Line 2: | ||
[[Semantic MediaWiki|Coordinates stored in Semantic MediaWiki]] can be exported using the KML result format. | [[Semantic MediaWiki|Coordinates stored in Semantic MediaWiki]] can be exported using the KML result format. | ||
== Example == | == Example == | ||
Line 28: | Line 23: | ||
|searchlabel=Export as KML-file | |searchlabel=Export as KML-file | ||
}} | }} | ||
== Parameters == | |||
; Specific to the KML format | |||
{{#smwdoc:kml|parameters=specific}} | |||
; All parameters that can be used with format=kml | |||
{{#smwdoc:kml|parameters=all}} |
Revision as of 14:55, 8 May 2020
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
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) |