Extensions:Semantic MapPoints

From SensorDataLab

Jump to: navigation, search

Contents

Functions

This is a Loc:Help page which explains the Semantic MapPoints Extension Version 0.3 by User:Andreas Wombacher.

The extension prints the image and in this picture the points specified by the point url are added, where one point is added for each wiki page selected by the query. The point is positioned in the map using semantic properties.

The parameters for the mappoint extension re-used are taken from http://www.mediawiki.org/wiki/Extension:Point-Mapping.

A summary of the used parameters:

  • $varURLMap: URL of the card image url (like e.g.: "http://www.giswiki.org/images/c/c1/DeutschlandRef.png") or a wiki image name (like e.g.: Image:DeutschlandRef.png)
  • $varURLPoint: list of URLs or wiki image names of the point symbols separated by ';' (e.g.: "http://www.giswiki.org/images/1/1b/Reddot.gif;http://www.giswiki.org/images/1/1b/Bluedot.gif;"); each entry in the list corresponds to an entry in the query filter list
  • $inX_coord_propertyStr: the name of the semantic wiki property from which the x coordinate can be derived
  • $inY_coord_propertyStr: the name of the semantic wiki property from which the y coordinate can be derived
  • $inQueryFiltersStr: a list of queries specifying which wiki pages should be used as the basis for selecting the pages; the list is separated by ';' signs and each entry of the list corresponds to a URLPoint; the query can be either a wiki query string or a sparql query string
  • $PointExt: desired symbol-size
  • $varMapWidth: = desired width of the map
  • $A: meters/pixel in horizontal x Easting direction
  • $E: meters/pixel in vertical y Northing direction
  • $C: x Easting UTM coordinate of center of upper left pixel in meters
  • $F: y Northing UTM coordinate of center of upper left pixel in meters
  • $Map: specifies the name of the image map which can be specified in a separate wiki command.

The following parameters are only used internally

  • $type: specifies whether the query is a wiki query language or a sparql query language
  • $export: specifies whether an imagemap has to be created in a wiki page or whether it should be exported, thus be accessible as a gif file.

An example:

{{#semantic_mappoint:/pictures/vl3_REV_HEAD.jpg|
   icon url|xCoord|yCoord|query|10|map size|8.17|-8.9|-295|1726}}

In addition the extension provides a special page to preview or export a map. The web form allows to fill in data, preview or export the map. In addition, when pre-viewing the map the wiki text to create the map in an arbitrary wiki page. This helps a user to come up with a proper wiki text for the semantic map.

To come up with a proper sparql query string using the Extensions:Sparql Query can help to encode the query properly. In case of a sparql query use the {{semantic_sparql_mappoint:...}} instead of {{semantic_mappoint:...}}

The Limit of the query is set to 1000 result data points.

Download

The file is available:

Disclaimer

SemanticMapPoints is a new extension, and there is no guarantee that any of it will work on your system. However, it does not make any modifications to the database, so it should be a low-risk installation.

For a proper legal disclaimer, see the file "COPYING".


Requirements

The extension requires an install of Semantic MediaWiki 1.0 or greater. For more details, see Semantic MediaWiki's own installation requirements.

Download

The file is available

Installation

(1) Extract the archive to obtain the directory "SemanticMapPoints"
   that contains all relevant files. Copy this directory (or
   extract/download it) to "[wikipath]/extensions/".
(2) Insert the following line into the file "[wikipath]/LocalSettings.php":
     include_once('extensions/SemanticMapPoints/includes/SMP_Settings.php');


Contact

Comments, questions, suggestions and bug reports are welcome, and can be placed on the Talk page for the extension, or sent to Andreas at a.wombacher AT utwente dot nl.


Acknowledgment

The extension is based on the mappoints extension from Heinz-Josef Lücking. The code structure and some code fragments are adapted from an extension of Yaron Koren.

See also

  • http://www.mediawiki.org/wiki/Extension:SemanticMappoint
  • Clickable Image Map Maker. This web page allows the user to select an image file on his own local hard drive, then creates a second page using that image, and allows the user to very quickly generate the HTML code for an imagemap to be used in his own files. It also offers some handy pop-up menus to speed the process of coding the actual href. Complicated maps can be created in less than a minute (no kidding). Requires a Javascript and frames capable browser, designed and tested on a Mac using Netscape Navigator.
  • Mapedit is a WYSIWYG editor for imagemaps, available for Microsoft Windows and the X Window System. Use Mapedit to generate, or convert to, NCSA, ERN, or client-side map files.
  • Meracl ImageMap Generator is a free map Imagemap generator.
  • GIMP - The GNU Image Manipulation Program