| Creates propper JTS Geometry objects from SeShape objects and
viceversa.
SeShape 's are gathered from an SeRow ArcSDE
API's result object and holds it's geometry attributes as a three dimensional
array of double primitives as explained bellow.
By this way, we avoid the creation of ArcSDE's java implementation of OGC
geometries for later translation to JTS, avoiding too the dependency on the
ArcSDE native library wich the geometry package of the ArcSDE Java API
depends on.
Given double [][][]coords the meaning of this array is as
follow:
- coords.length reprsents the number of geometries this geometry is
composed of. In deed, this only applies for multipolygon geometries, for all
other geometry types, this will be allways
1
- coords[n] holds the coordinate arrays of the n'th geometry this geometry
is composed of. Except for multipolygons, this will allways be
coords[0] .
- coords[n][m] holds the coordinates array for a given geometry. (i.e.
[0][m] for a multilinestring or [2][m] for a multipolygon composed of 3
polygons)
- coords[n][m][l] holds the {x1, y1, x2, y2, ...,Xn, Yn} coordinates for a
given geometry part
This abstract class will use specialized subclass for constructing the
propper geometry type
author: Gabriel Roldan, Axios Engineering version: $Id: ArcSDEGeometryBuilder.java 27863 2007-11-12 20:34:34Z desruisseaux $ |