Changeset 6423


Ignore:
Timestamp:
2004-01-12T08:53:38+13:00 (20 years ago)
Author:
kjdon
Message:

added in a description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/web/sites/localsite/collect/nzmaps/etc/collectionConfig.xml

    r6296 r6423  
    77  <displayItemList>
    88    <displayItem name='name' lang='en'>Historic New Zealand Map Collection</displayItem>
    9     <displayItem name='description' lang='en'>A collection of Historic New Zealand maps.</displayItem>
     9    <displayItem name='description' lang='en'>&lt;h3&gt;About this collection&lt;/h3&gt;
     10&lt;p&gt;This is a small collection of New Zealand maps drawn between 1770 and 1953.  This collection demonstrates map searching and the
     11use of dynamic image manipulation.&lt;/p&gt;
     12&lt;p&gt;The collection uses a list of place names from &lt;a href="http://www.linz.govt.nz/"&gt;Land Information New Zealand
     13(LINZ)&lt;/a&gt; with more than 40,000 entries covering the mainland of New Zealand.  The maps were supplied by the &lt;a href="
     14http://www.waikato.ac.nz/library"&gt;University of Waikato Library&lt;/a&gt;.&lt;/p&gt;
     15&lt;h3&gt;How the collection works&lt;/h3&gt;
     16&lt;p&gt;&lt;b&gt;Metadata. &lt;/b&gt;The maps have an associated metadata file that gives the file name for the image, the latitude and
     17longitude of the top left corner and the bottom right corner of the map, the angle in degrees that North is form the top of the map, and
     18the year the map was drawn.  The place names are stored in a hashtable with the place name, the description code, the district code, and
     19the latitude and longitude for each place name.&lt;/p&gt;
     20&lt;p&gt;&lt;b&gt;Searching. &lt;/b&gt;Searching is handled by the MapQuery service.  For each query term that exists in the place name
     21hashtable, its longitude and latitude are checked against each map to see if they fall within the bounds of that map.  If it is within the
     22bounds of the map, the metadata for the query term is appended to the metadata of the map added to a list.  Once all checking is complete,
     23the list is sorted by the number of query terms on each map.&lt;/p&gt;
     24&lt;p&gt;&lt;b&gt;Image Manipulation and Results Display. &lt;/b&gt;Image manipulation and results display is handled by the MapRetrieve
     25service.  MapRetrieve uses the longitude and latitude of the place names, with the longtitude and latitude of the corners of the map to
     26calculate where on the image the place is.  The convert command (part of the &lt;a href="
     27http://www.imagemagick.org"&gt;ImageMagick&lt;/a&gt; suite) is used to make a copy of the map image, and then for drawing an 'x' on the
     28map for each place name and storing the image as a new image.  Then the image is resized using ImageMagick.  To run the service you must
     29have ImageMagick installed on your server.&lt;/p&gt;
     30&lt;p&gt;&lt;b&gt;Point selection on a map. &lt;/b&gt;When the user click on the map, javascript creates a URL that includes the pixels of
     31the map that were clicked, and this is used to create a window listing all place names near to the point on the map where the mouse-click
     32occurred.  This is done using a KD-tree (where the root node branches on the latitude co-ordinate, and then alternately on the longitude
     33co-ordinate) to find the set of places that fall within the given rectangle in the plane.  Run-time for this is very efficient,
     34theoretically O(sqrt(&lt;i&gt;n&lt;/i&gt;)+&lt;i&gt;k&lt;/i&gt;) time where &lt;i&gt;n&lt;/i&gt; is the number of points in the tree and
     35&lt;i&gt;k&lt;/i&gt; is the number of points in the result.&lt;/p&gt;
     36&lt;p&gt;&lt;b&gt;Javascript. &lt;/b&gt;The collection uses javascript on the content pages for the drop down box to add locations and for
     37the radio buttons to change zoom.  This simply removes the need for extra buttons on the page.</displayItem>
    1038    <displayItem name='icon' lang='en'>map.gif</displayItem>
    1139  </displayItemList>
Note: See TracChangeset for help on using the changeset viewer.