Module org.opengis.geoapi.example
Package org.opengis.example.parameter
package org.opengis.example.parameter
Implementation of some interfaces from the
org.opengis.parameter
package.
In order to provide a simpler model, the classes in this package implement both
GeneralParameterValue
and
GeneralParameterDescriptor
.
This means that each parameter value is also its own descriptor.
Example: Creating parameters for the Mercator projection
public ParameterValueGroup createMercatorParameters() {
final Citation authority = new SimpleCitation("EPSG");
return new SimpleParameterGroup(authority, "Mercator (variant A)",
new SimpleParameter(authority, "Latitude of natural origin", SimpleParameter.Type.LATITUDE),
new SimpleParameter(authority, "Longitude of natural origin", SimpleParameter.Type.LONGITUDE),
new SimpleParameter(authority, "Scale factor at natural origin", SimpleParameter.Type.SCALE),
new SimpleParameter(authority, "False easting", SimpleParameter.Type.LINEAR),
new SimpleParameter(authority, "False northing", SimpleParameter.Type.LINEAR));
}
Example: Defining values to the Mercator parameters
public ParameterValueGroup createMercatorParameters() {
ParameterValueGroup group = createMercatorParameters();
group.parameter("Latitude of natural origin").setValue(30.0, NonSI.DEGREE_ANGLE);
group.parameter("False easting").setValue(5000.0, SI.METRE);
}
Every classes in this package are hereby placed into the Public Domain. This means anyone is free to do whatever they wish with those files.
- Since:
- 3.1
-
ClassDescriptionA
ParameterValue
implementation fordouble
values.Determines the range of values and the unit of measurement of a parameter.AParameterValueGroup
implementation forSimpleParameter
instances.