org.geotools.demo.jts
Class SnapToLine

java.lang.Object
  extended by org.geotools.demo.jts.SnapToLine

public class SnapToLine
extends java.lang.Object

This example shows how to snap a point to a line.

This is a real world solution; we are going to cache internal JTS data structures (the same ones used behind the getDistance( Geometry ) method). We are also going to throw these into a spatial index.

This kind of code is needed when you have low accuracy information (like GPS in a city) that you wish to snap to a road network.

Author:
Jody Garnett (Refractions Research)

Constructor Summary
SnapToLine()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapToLine

public SnapToLine()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 1996-2010 Geotools. All Rights Reserved.