[geos-devel] Porting LengthIndexedLine.project?
strk at keybit.net
Thu Jul 23 15:53:06 EDT 2009
On Thu, Jul 23, 2009 at 11:13:34AM -0400, David Turner wrote:
> JTS has a class called LengthIndexedLine with a method "project", which
> lets you figure out the nearest point on a line to a given point. This
> is useful, for instance, if you are trying to figure out what street a
> person is on from (possibly slightly inaccurate) GPS observations.
> PostGIS calls this function st_line_locate_point.
> GEOS doesn't seem to have it, even though I was under the impression
> that GEOS was merely a port of JTS. If I port JTS's project function
> and related functions such as extractPoint to GEOS, would that patch be
> likely to be accepted? Or am I missing something about the relationship
> between JTS and GEOS?
Your patch would be welcome. Make sure to include unit testing please.
Free GIS & Flash consultant/developer () ASCII Ribbon Campaign
http://foo.keybit.net/~strk/services.html /\ Keep it simple!
More information about the geos-devel