mccombe.mapping
public class MappingToolkit extends java.lang.Object
Constructor and Description |
---|
MappingToolkit()
Construct a new MappingToolkit
|
Modifier and Type | Method and Description |
---|---|
void |
add(CoordinateSystem c,
java.lang.String example)
Add a CoordinateSystem type to the toolkit
|
Datum |
defaultDatum(java.lang.String classname)
Provide the default Datum for the specified CoordinateSystem
|
Ellipsoid |
defaultEllipsoid(java.lang.String classname)
Provide the default Ellipsoid for the named CoordinateSystem class
|
java.util.Vector<java.lang.String> |
getCoordinateSystemNames()
Create an alphabetically ordered list of CoordinateSystem names
|
Datum |
getDatum(java.lang.String name)
Get an instance of a specific Datum
|
java.util.Vector<Datum> |
getDatumList()
get a list of available Datum instances
|
Ellipsoid |
getEllipsoid(java.lang.String name)
Get an instance of a specific Ellipsoid
|
java.util.Vector<Ellipsoid> |
getEllipsoidList()
Get a list of available Ellipsoid instances
|
java.lang.String |
getExample(java.lang.String classname)
Get an example of a grid reference for a specified CoordinateSystem
|
java.util.Vector<java.lang.String> |
getProjectionNames()
Create an alphabetically-ordered list of Projections.
|
CoordinateSystem |
makeCoordinateSystem(java.lang.String name,
java.lang.Object... args)
Make a CoordinateSystem instance from a grid reference
|
public Ellipsoid defaultEllipsoid(java.lang.String classname) throws java.lang.IllegalArgumentException
classname
- The name of the CoordinateSystemjava.lang.IllegalArgumentException
- if the CoordinateSystem cannot be foundpublic Datum defaultDatum(java.lang.String classname) throws java.lang.IllegalArgumentException
classname
- A String containing the name of a CoordinateSystemjava.lang.IllegalArgumentException
- if the CoordinateSystem cannot be found.public CoordinateSystem makeCoordinateSystem(java.lang.String name, java.lang.Object... args) throws java.lang.NoSuchMethodException, GridFormatException, java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException
name
- - the name of the CoordinateSystem to makeargs
- - the argument list for the class's makePoint() methodjava.lang.NoSuchMethodException
GridFormatException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
public java.util.Vector<java.lang.String> getCoordinateSystemNames()
public java.util.Vector<java.lang.String> getProjectionNames()
public java.util.Vector<Datum> getDatumList()
public Datum getDatum(java.lang.String name)
name
- - the name of the Datumpublic Ellipsoid getEllipsoid(java.lang.String name)
name
- - the name of the Ellipsoidpublic java.lang.String getExample(java.lang.String classname) throws java.lang.IllegalArgumentException
classname
- - the name of the CoordinateSystemjava.lang.IllegalArgumentException
- if the CoordinateSystem name cannot be foundpublic java.util.Vector<Ellipsoid> getEllipsoidList()
public void add(CoordinateSystem c, java.lang.String example)
c
- a CoordinateSystem instanceexample
- - a String containing a valid grid reference for this type