Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!k1g2000prb.googlegroups.com!not-for-mail
From: NZTideMan <mulgor@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: River miles
Date: Wed, 19 Nov 2008 20:24:52 -0800 (PST)
Organization: http://groups.google.com
Lines: 4
Message-ID: <a952a25e-672b-4c1c-994d-8ebbf8b33dc5@k1g2000prb.googlegroups.com>
References: <gfst52$caq$1@fred.mathworks.com> <90f017a9-906d-4c7d-8ac5-7167e15e0d8c@u18g2000pro.googlegroups.com> 
	<01d3cdd8-c83e-47bc-9357-fb97949f0eff@r40g2000yqj.googlegroups.com> 
	<gg22tm$k2v$1@fred.mathworks.com> <MPG.238e5b999c15195a9898f5@news.mathworks.com> 
	<gg24kh$c5h$1@fred.mathworks.com>
NNTP-Posting-Host: 121.72.84.73
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1227155093 11145 127.0.0.1 (20 Nov 2008 04:24:53 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 20 Nov 2008 04:24:53 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k1g2000prb.googlegroups.com; posting-host=121.72.84.73; 
	posting-account=qPexFwkAAABOl8VUndE6Jm-9Z5z_fSpR
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) 
	Gecko/20081029 Firefox/2.0.0.18,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 bc1
Bytes: 1576
Xref: news.mathworks.com comp.soft-sys.matlab:501924


The very simplest way would be to simply find the nearest node to your
point:
[dmn,imn]=min(abs(x+i*y - (xp+i*yp)));
Then s(imn) is the river mile of the nearest node.