Mapyrus Logo SourceForge.net Logo

The following examples demonstrate potential uses for Mapyrus. All examples involve developing about 100 lines of commands to define data, and the appearance of the data in the image file that is created.

The advantage is this method is that is that it the display can be customised in many ways by changing any of the individual commands.

The first example demonstrates using attributes (relative production levels for four quarters of the year) of data to show a small quadrant graph for each city.

The second example shows patterns of rainfall and temperature for US states. By displaying both values simultaneously, any pattern between rainfall and temperature will be visible.

The third example displays a piechart for each US state. A gradient fill pattern is used to make a nice background for the map.

By changing the output format type, the same example can be created as an SVG file or a PDF file.

The next example demonstrates creating an HTML imagemap for a PNG image. The HTML imagemap is used to define events as the mouse is moved over, or clicked in the image.

In this case, the overlib Javascript library is used to show a tooltip as the mouse is moved over each state. Clicking the mouse in a state jumps to a web site for that state.

The next example shows the direction and strength of the wind graphically at a number of sites. The bearing and strength values at each site control how each wind indicator is displayed.

  Legend:


The next example demonstrates how functions from the Java Topology Suite are used to show relationships between data.

In this case, a buffer is calculated around some points and then other data is colored different depending on whether it falls inside the buffer.

  Legend:


The following example demonstrates generating a convex hull and a buffer around a set of points to show habitat area for a particular type of animal.

A mixed bag of sample symbols, line patterns and fill patterns is included in Mapyrus. Following is a legend showing what is available.


The final example demonstrates that Mapyrus is able to perform less serious tasks such as automatically generating random boards layouts for snakes and ladders games.

 

 


Updated 13 April 2008