org.geotools.demo.libraryJTS
Class DemoJTS

java.lang.Object
  extended by org.geotools.demo.libraryJTS.DemoJTS

public class DemoJTS
extends java.lang.Object

This is DemoJTS.java a class to examine the JTS Geometric model of the GeoTools code base. This tutorial was written in April 2006 against the Geotools 2.2RC2 release. It was updated in November 2006 against the 1.7.2 JTS release. The Geotools Users' Manual: --------------------------- This tutorial is written as part of the Geotools Users' Manual which will be available on the Geotools web site. The tutorial and manual aim to get new programmers started in using the Geotools library. Programmers who wish to extend the library should look at the Developpers' Guide instead. The Geotools Geometric Model: ----------------------------- This tutorial introduces one of the two geometric models used by Geotools. The JTS model is used to describe the spatial definition of the 'Features' in the GIS. The JTS model is a strictly cartesian, two dimensional, orthogonal axis model; while a third, 'z', coordinate is allowed in each coordinate tuple, these 'z' coordinates are all ignored in the geometric operators. Similarly, while the geometry objects can hold a spatial reference identification (SRID) number, the library does not take that identification into account. Tutorial Outline: ----------------- The tutorial starts by building geometries from scratch. This section uses the Java primitive double data type to create coordinates, then assembles these coordinates into arrays, and uses those arrays to make JTS Geometries. The tutorial continues by building geometries from Well Known Text (WKT) String elements. Note on Code Structure: ----------------------- For reading simplicity, this tutorial does not use any Java method or object structure; it consists of only a single long main(.) method. Further Reading: --------------- Read the Geotools Users' Manual Read the tutorials in the JTS distribution. Material for this tutorial was taken from: http://www.geotools.org/CreateAGeometry retrived on 24 Sept 2005

Version:
0.0.1 April 2006
Author:
Adrian Custer

Constructor Summary
DemoJTS()
           
 
Method Summary
static void codeExample(com.vividsolutions.jts.geom.Geometry fire, com.vividsolutions.jts.geom.Geometry cities, com.vividsolutions.jts.geom.Geometry me, com.vividsolutions.jts.geom.Geometry he, com.vividsolutions.jts.geom.Geometry you)
           
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

DemoJTS

public DemoJTS()
Method Detail

main

public static void main(java.lang.String[] args)

codeExample

public static void codeExample(com.vividsolutions.jts.geom.Geometry fire,
                               com.vividsolutions.jts.geom.Geometry cities,
                               com.vividsolutions.jts.geom.Geometry me,
                               com.vividsolutions.jts.geom.Geometry he,
                               com.vividsolutions.jts.geom.Geometry you)


Copyright © 1996-2010 Geotools. All Rights Reserved.