|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.demo.jts.SnapToLine
public class SnapToLine
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.
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 |
---|
public SnapToLine()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |