Sgvizler has moved to github. This site and its repository will no longer be maintained.
wiki:Sgvizler/Chart/SgvizlerVisualizationMapWKT

This chart and its examples are implemented using Sgvizler 0.6, for version 0.5 see Sgvizler/0.5/DesigningQueries.

source:misc/image/screenshot/sMapWKT.png

Sgvizler Well-known Text (WKT) Map

Draws a map and geometric objects represented as  well-known text on the map.

Chart ID
sgvizler.visualization.MapWKT
Source
 src/visualization/MapWKT.js
External reference
 http://openlayers.org/
Other similiar charts
Sgvizler/Chart/GoogleVisualizationMap
Sgvizler/Chart/SgvizlerVisualizationMap

Query result set format

1--4 columns:

  1. WKT
    Datatype: String
  2. Name
    Datatype: String
  3. URL
    Datatype: String
  4. Description
    Datatype: String

The three last columns are optional. They give values that make up a popup box that is displayed when selecting the drawn WKT object on the map.

Chart options

Name Default Description
zoom 5 The level of which the map should be zoomed at startup.
centerLat 62 The lat location of the map center at startup.
centerLong 2 The long location of the map center at startup.
geoDatumIn "EPSG:4326" The input coordinate system
geoDatumOut "EPSG:4326" The output coordinate system

Many more options are possible by implementing these using the OpenLayers library.

See Sgvizler/Using, or the example(s) below, for how to set options.

Live Example

Query: Plot ground seismic survey areas on the Norwegian Continental Shelf.

HTML

<div id="ex"
   data-sgvizler-endpoint="http://sws.ifi.uio.no/sparql/npd-v2"
   data-sgvizler-query="
        SELECT ?WKT ?name ?featureID
        { ?featureID a npdv2:GroundSurvey ; 
                     npdv2:name ?name . 
          ?geometryID npdv2:isGeometryOfFeature ?featureID ; 
                      geos:asWKT ?WKT . 
        }"
   data-sgvizler-chart="sgvizler.visualization.MapWKT"
   style="width:400px; height:265px; border:1px solid black; display: inline-block;"></div>

Result

The result of the HTML above (left), and a google.visualization.Table rendering of the same query (right).


Notes

See Sgvizler/Setup for how Sgvizler is setup on this site.

Note that the query and visualization is ment to show the use of Sgvizler, and may not be the most appropriate way of illustrating this result set.

Feedback

Tickets

No results

User Examples and Comments

Users, please insert (links to) other examples of usage of this Sgvizler chart, or relevant comments here.