Changes

29 bytes removed ,  23:02, 6 March 2007
→‎Basic Operations: clarified what data structures are used for what commands
Line 7: Line 7:     
* [[createCity]] and [[deleteCity]]: You will need to be able to register cities with and remove them from the database.  (The spec refers to this database as a "dictionary.") No two cities can have the same coordinates or name.
 
* [[createCity]] and [[deleteCity]]: You will need to be able to register cities with and remove them from the database.  (The spec refers to this database as a "dictionary.") No two cities can have the same coordinates or name.
* [[mapCity]] and [[unmapCity]]: These take a city that's already registered in the database and add it to or remove it from the spatial datastructure.
+
* [[mapCity]] and [[unmapCity]]: These take a city that's already registered in the database and add it to or remove it from the spatial data structure.
* [[listCities]]: Output a sorted (XML) list of cities in the (database? spatial datastructure? graph?).
+
* [[listCities]]: Output a sorted (XML) list of cities in the database.
* [[rangeCity]]: This searches the spatial datastructure for all cities within a given radius of a given point.
+
* [[rangeCity]]: This searches the spatial data structure for all cities within a given radius of a given point.
* [[nearestCity]]: This finds the nearest city to a given point (in the database ?).
+
* [[nearestCity]]: This finds the nearest city to a given point in the spatial map.
* [[printPRQuadtree]]: This outputs an XML (textual) representation of the spatial datastructure.
+
* [[printPRQuadtree]]: This outputs an XML (textual) representation of the spatial data structure.
* [[saveMap]]: This outputs a visual representation (an image) of the spatial datastructure.  See [[CanvasPlus]].
+
* [[saveMap]]: This outputs a visual representation (an image) of the spatial data structure.  See [[CanvasPlus]].
* [[clearAll]]: Clears all of the datastructures, removing all elements.
+
* [[clearAll]]: Clears all of the data structures, removing all elements.
    
== Input ==
 
== Input ==
103

edits