Extension:KML Export/Parser functions

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
KML ExportExtension:KML Export FeaturesExtension:KML Export/FeaturesInstallationExtension:KML Export/InstallationQuick startExtension:KML Export/Quick startHow to useExtension:KML Export/How to useParser functionsExtension:KML Export/Parser functionsSpecial pagesExtension:KML Export/Special pagesConfigurationExtension:KML Export/Configuration

KML Export defines the following parser functions for use in wiki articles:

KML markup functions[edit]

These functions are used to define KML features and their properties in article pages. All functions begin with kml., which means that they work like methods of a "kml" object, in an object-oriented sense.

kml.placemarkExtension:KML Export/kml.placemark
Sets a placemark for the current article.
kml.folderExtension:KML Export/kml.folder
Puts features of the current article into a subfolder in the KML tree and also sets parameters of this folder.
kml.styleExtension:KML Export/kml.style
Creates a named feature style.
kml.textExtension:KML Export/kml.text
Instantiates a text block where you can insert arbitrary wiki markup.

Convenience functions[edit]

These are miscellaneous functions that are useful when working with geographic data in wiki articles, and can also be used to convert coordinates for the functions listed above.

lat_deg2dms, long_deg2dmsExtension:KML Export/deg2dms
Convert geographic coordinates in degree notation to degrees-minutes-seconds notation.
lat_dms2deg, long_dms2degExtension:KML Export/dms2deg
Convert geographic coordinates in degrees-minutes-seconds notation to degree notation.