Micro Functions:
Macro Functions
These functions use two coordinates and represent the drift
that occurs with grid skew.
Projected Goal:
I have a map of the landscape I plan to explore. I also have
three known points on the map and their lat/lon coordinates.
What I want to know is: What are the lat/lon coordinates of
position x on the map? Position x is where I would like to
explore and I want to know the coordinates of that location.
I know 3 other positions' exact coordinates such as cranal
road access, borden creek access, and thompson creek access.
What are the coordinates where Borden Creek and the Sipsey
River merge?
The above example was derived from a real-life problem I
faced just before a canoeing trip. I wanted to know the
coordinates of a specific tributary to the Sipsey River.
I had the map and maybe 6 or more coordinates but could
not obtain the coordinates I needed.
I used a mapping program and found the results. Now I want
to make my own program to do this. E-mailing the authors
of such mapping programs usually resulted with responses like:
"I'm sorry but unfortunately I cannot divulge trade secrets."
Click on the map above. It will return the xy coordinates of
the map in pixels. These pixels will correlate with lat/lon
coordinates on the map.
This projection tool will be publicly available and is already
capable of loading images both from the internet 'http://' and
from a clients local file system 'file://'.
Functions Incomplete:
A minimum of 3 locations will be known. What mathematical
function will return the location in question.
One idea is to triangulate the three known coordinates and
derive the right-angled properties within. Once the coordinate
in question is presented, triangulate that coordinate with
two known coordinates, parse the properties, and continue
the process until all points are evaluated in groups of three.
Run the results into a function and the point is known.
Functions Completed:
The conversion from 'degrees', 'minutes', and 'seconds' to
its decimal equivalent for mathematical analysis.
The conversion from decimal back to degrees, minutes, and
seconds once the analysis is finished.
Design requirements:
Note the skew of the lines of lat/lon on the example map.
This skew will require 3 positions for interpolation.
Design ideas:
map onclick (set coords):
prompt for latitude and longitude with external window.
store the results as an object of type 'Position'.
place a clip of type circle to represent the position.
map onclick (coords set):
query interpolate object for event coordinates in lat/lon.
display the coordinates in a to-clipboard element.
Browser Notes:
Netscape requires the layer tag to return the proper coordinates.
Netscape requires the anchor tag to use the event model.
Netscape does not position any other elements relative to the layer.
Microsoft does not require the layer tag or the anchor tag.