ilog.views.maps.projection
Class IlvHorizontalDatumCollection

java.lang.Object
  extended by ilog.views.maps.projection.IlvHorizontalDatumCollection
All Implemented Interfaces:
Serializable

public class IlvHorizontalDatumCollection
extends Object
implements Serializable

This class manages a collection of named geodetic datum.

Since:
JViews 5.0
See Also:
Serialized Form

Constructor Summary
IlvHorizontalDatumCollection(InputStream stream, IlvEllipsoidCollection ellipsoids)
          Creates a new collection of datums, reading data from the specified input stream.
IlvHorizontalDatumCollection(String filename, IlvEllipsoidCollection ellipsoids)
          Creates a new collection of datums, reading data from file which name is specified.
 
Method Summary
 IlvHorizontalDatum getDatum(String name)
          Returns the datum of specified name if present in the collection.
 Iterator getDatums()
          Returns the enumeration of datums.
static IlvHorizontalDatumCollection GetKernelCollection()
          Returns a collection containing the definition of all datums supported by ILOG JViews Maps.
static IlvHorizontalDatumCollection Merge(IlvHorizontalDatumCollection collection1, IlvHorizontalDatumCollection collection2)
          Merge the specified datum collections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvHorizontalDatumCollection

public IlvHorizontalDatumCollection(String filename,
                                    IlvEllipsoidCollection ellipsoids)
                             throws IOException,
                                    IlvCollectionParseException
Creates a new collection of datums, reading data from file which name is specified. All datums from the file are loaded at construction time and cached in the collection. If the ellipsoid collection ellipsoids is null, all datums of this collection will be created using the default WGS84 ellipsoid.

Parameters:
filename - The filename.
ellipsoids - The ellipsoid collection to use
Throws:
IOException - if an I/O error occurs.
IlvCollectionParseException - if an error occurs during the parsing of the definition file.

IlvHorizontalDatumCollection

public IlvHorizontalDatumCollection(InputStream stream,
                                    IlvEllipsoidCollection ellipsoids)
                             throws IOException,
                                    IlvCollectionParseException
Creates a new collection of datums, reading data from the specified input stream. All datums from the file are loaded at construction time and cached in the collection. If the ellipsoid collection ellipsoids is null, all datums of this collection will be created using the default WGS84 ellipsoid.

Parameters:
stream - The input stream.
ellipsoids - The ellipsoid collection to use
Throws:
IOException - if an I/O error occurs.
IlvCollectionParseException - if an error occurs during the parsing of the definition file.
Method Detail

getDatums

public final Iterator getDatums()
Returns the enumeration of datums. The elements of the enumeration are instances of IlvHorizontalDatum.

Returns:
An iterator on all datums defined in this collection.
See Also:
Iterator

getDatum

public final IlvHorizontalDatum getDatum(String name)
Returns the datum of specified name if present in the collection. Returns null if the datum isn't in the collection

Parameters:
name - the name of the datum

GetKernelCollection

public static IlvHorizontalDatumCollection GetKernelCollection()
Returns a collection containing the definition of all datums supported by ILOG JViews Maps.

Returns:
An IlvHorizontalDatumCollection containing all default datums definitions.

Merge

public static IlvHorizontalDatumCollection Merge(IlvHorizontalDatumCollection collection1,
                                                 IlvHorizontalDatumCollection collection2)
Merge the specified datum collections.

Parameters:
collection1 - The first collection.
collection2 - The second collection.
Returns:
The merged datum collection


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.