| 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
author: Adrian Custer, (c) assigned to the Geotools Project Management Committee. version: 0.0.1 April 2006 |