Package org.geotools.renderer.array

Private package for storing arrays of two-dimensional coordinates points as floating point numbers.

See:
          Description

Interface Summary
RandomAccess Deprecated. No replacement.
 

Class Summary
ArrayData Deprecated. Replaced by org.geotools.geometry.array.ArrayData as part of the port of J2D-renderer to the new GO-1 based API.
DefaultArray Default implementation of PointArray wrapping an array of (x,y) coordinates as a flat float[] array.
GenericArray An array wrapping a pair of x and y vectors.
JTSArray A wrapper around an array of JTS Coordinates.
PointArray Deprecated. Replaced by org.geotools.geometry.array.PointArray2D as part of the port of J2D-renderer to the new GO-1 based API.
PointIterator Deprecated. Replaced by org.geotools.geometry.array.PointIterator as part of the port of J2D-renderer to the new GO-1 based API.
 

Package org.geotools.renderer.array Description

Private package for storing arrays of two-dimensional coordinates points as floating point numbers. This package is for internal use only; it should not be used directly. In its simplest form, DefaultArray objects just wrap float[] arrays containing (x,y) coordinates. More sophisticated subclasses can compress data in order to store big coordinate arrays with less memory. This package is designed to work with vectorial map. For example, a PointArray object may be used for storing one polygon representing a land contour or an isobath. A PointArray may be compressed by invoking its PointArray.getFinal(org.geotools.renderer.geom.CompressionLevel) method with a non-null CompressionLevel argument. Note that compression is destructive: it will result in a lost of coordinates precision. The lost is minimized if every point is equally spaced.

PointArray has an iterator allowing forward-only iteration through coordinate points. It does not allow random access or backward iteration. This limitation makes it easier to implements compression algorithms.



Copyright © GeoTools. All Rights Reserved.