??? mccombe.mapping
? MappingToolkit
java.lang.Object
mccombe.mapping.MappingToolkit
MappingToolkit provides access to standard features of the mapping package by name.
It is particularly useful in a GUI environment where the user needs to be able to
select from lists of CoordinateSystems, Datums and Ellipsoids
-
?????
??? -
????
??????????void
add
(CoordinateSystem c, String example) Add a CoordinateSystem type to the toolkitdefaultDatum
(String classname) Provide the default Datum for the specified CoordinateSystemdefaultEllipsoid
(String classname) Provide the default Ellipsoid for the named CoordinateSystem classCreate an alphabetically ordered list of CoordinateSystem namesGet an instance of a specific Datumget a list of available Datum instancesgetEllipsoid
(String name) Get an instance of a specific EllipsoidGet a list of available Ellipsoid instancesgetExample
(String classname) Get an example of a grid reference for a specified CoordinateSystemCreate an alphabetically-ordered list of Projections.makeCoordinateSystem
(String name, Object... args) Make a CoordinateSystem instance from a grid reference
-
???????
-
MappingToolkit
public MappingToolkit()Construct a new MappingToolkit
-
-
??????
-
defaultEllipsoid
Provide the default Ellipsoid for the named CoordinateSystem class- ??:
classname
- The name of the CoordinateSystem- ??:
- the defaultEllipsoid() for the class
- ??:
IllegalArgumentException
- if the CoordinateSystem cannot be found
-
defaultDatum
Provide the default Datum for the specified CoordinateSystem- ??:
classname
- A String containing the name of a CoordinateSystem- ??:
- the defaultDatum()
- ??:
IllegalArgumentException
- if the CoordinateSystem cannot be found.
-
makeCoordinateSystem
public CoordinateSystem makeCoordinateSystem(String name, Object... args) throws NoSuchMethodException, GridFormatException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, InstantiationException Make a CoordinateSystem instance from a grid reference- ??:
name
- - the name of the CoordinateSystem to makeargs
- - the argument list for the class's makePoint() method- ??:
- A new CoordinateSystem instanceof the specified type
- ??:
NoSuchMethodException
GridFormatException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
InstantiationException
-
getCoordinateSystemNames
Create an alphabetically ordered list of CoordinateSystem names- ??:
- The list of names
-
getProjectionNames
Create an alphabetically-ordered list of Projections. Since Projection is a sub-class of CoordinateSystem this list will be a subset of that provided by getCoordinateSystemNames()- ??:
- the list of names
-
getDatumList
get a list of available Datum instances- ??:
- the list
-
getDatum
Get an instance of a specific Datum- ??:
name
- - the name of the Datum- ??:
- the requested Datum instance
-
getEllipsoid
Get an instance of a specific Ellipsoid- ??:
name
- - the name of the Ellipsoid- ??:
- the requested Datum instance
-
getExample
Get an example of a grid reference for a specified CoordinateSystem- ??:
classname
- - the name of the CoordinateSystem- ??:
- a valid grid reference String
- ??:
IllegalArgumentException
- if the CoordinateSystem name cannot be found
-
getEllipsoidList
Get a list of available Ellipsoid instances- ??:
- the list
-
add
Add a CoordinateSystem type to the toolkit- ??:
c
- a CoordinateSystem instanceexample
- - a String containing a valid grid reference for this type
-