Enum CustomProjection.Param
- java.lang.Object
-
- java.lang.Enum<CustomProjection.Param>
-
- org.openstreetmap.josm.data.projection.CustomProjection.Param
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CustomProjection.Param>
- Enclosing class:
- CustomProjection
public static enum CustomProjection.Param extends java.lang.Enum<CustomProjection.Param>
Proj4-like projection parameters. See reference.- Since:
- 7370 (public)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description a
Semimajor radius of the ellipsoid axisalpha
azimuth (true) of the center line passing through the center of the projection (Oblique Mercator)axis
definition of axis for projectionb
Semiminor radius of the ellipsoid axisbounds
datum
Datum name (seeproj -ld
)ellps
Ellipsoid name (seeproj -le
)es
Eccentricity of the ellipsoid squaredf
Flattening of the ellipsoid = 1-sqrt(1-e^2)gamma
rectified bearing of the center line (Oblique Mercator)init
k_0
Scaling factorlat_0
Latitude of originlat_1
Latitude of first standard parallellat_2
Latitude of second standard parallellat_ts
Latitude of true scale (Polar Stereographic)lon_0
Central meridianlon_1
longitude of first point (Oblique Mercator)lon_2
longitude of second point (Oblique Mercator)lonc
longitude of the center of the projection (Oblique Mercator)nadgrids
Filename of NTv2 grid file to use for datum transformsno_defs
Don't use the /usr/share/proj/proj_def.dat defaults fileno_off
select "Hotine" variant of Oblique Mercatorno_uoff
legacy alias for no_offpm
Prime meridianproj
Projection name (seeproj -l
)rf
Reciprocal of the ellipsoid flattening term (e.g.south
indicate southern hemisphere for UTMto_meter
crs units to meter multipliertowgs84
3 or 7 term datum transform parametersunits
meters, US survey feet, etc.vunits
vertical units - ignore, as we don't use height informationwktext
the exact proj.4 string will be preserved in the WKT representationwmssrs
x_0
False eastingy_0
False northingzone
UTM zone
-
Field Summary
Fields Modifier and Type Field Description boolean
hasValue
true
if the parameter has a valuejava.lang.String
key
Parameter key(package private) static java.util.Map<java.lang.String,CustomProjection.Param>
paramsByKey
Map of all parameters by key
-
Constructor Summary
Constructors Modifier Constructor Description private
Param(java.lang.String key, boolean hasValue)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CustomProjection.Param
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CustomProjection.Param[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
x_0
public static final CustomProjection.Param x_0
False easting
-
y_0
public static final CustomProjection.Param y_0
False northing
-
lon_0
public static final CustomProjection.Param lon_0
Central meridian
-
pm
public static final CustomProjection.Param pm
Prime meridian
-
k_0
public static final CustomProjection.Param k_0
Scaling factor
-
ellps
public static final CustomProjection.Param ellps
Ellipsoid name (seeproj -le
)
-
a
public static final CustomProjection.Param a
Semimajor radius of the ellipsoid axis
-
es
public static final CustomProjection.Param es
Eccentricity of the ellipsoid squared
-
rf
public static final CustomProjection.Param rf
Reciprocal of the ellipsoid flattening term (e.g. 298)
-
f
public static final CustomProjection.Param f
Flattening of the ellipsoid = 1-sqrt(1-e^2)
-
b
public static final CustomProjection.Param b
Semiminor radius of the ellipsoid axis
-
datum
public static final CustomProjection.Param datum
Datum name (seeproj -ld
)
-
towgs84
public static final CustomProjection.Param towgs84
3 or 7 term datum transform parameters
-
nadgrids
public static final CustomProjection.Param nadgrids
Filename of NTv2 grid file to use for datum transforms
-
proj
public static final CustomProjection.Param proj
Projection name (seeproj -l
)
-
lat_0
public static final CustomProjection.Param lat_0
Latitude of origin
-
lat_1
public static final CustomProjection.Param lat_1
Latitude of first standard parallel
-
lat_2
public static final CustomProjection.Param lat_2
Latitude of second standard parallel
-
lat_ts
public static final CustomProjection.Param lat_ts
Latitude of true scale (Polar Stereographic)
-
lonc
public static final CustomProjection.Param lonc
longitude of the center of the projection (Oblique Mercator)
-
alpha
public static final CustomProjection.Param alpha
azimuth (true) of the center line passing through the center of the projection (Oblique Mercator)
-
gamma
public static final CustomProjection.Param gamma
rectified bearing of the center line (Oblique Mercator)
-
no_off
public static final CustomProjection.Param no_off
select "Hotine" variant of Oblique Mercator
-
no_uoff
public static final CustomProjection.Param no_uoff
legacy alias for no_off
-
lon_1
public static final CustomProjection.Param lon_1
longitude of first point (Oblique Mercator)
-
lon_2
public static final CustomProjection.Param lon_2
longitude of second point (Oblique Mercator)
-
wktext
public static final CustomProjection.Param wktext
the exact proj.4 string will be preserved in the WKT representation
-
units
public static final CustomProjection.Param units
meters, US survey feet, etc.
-
no_defs
public static final CustomProjection.Param no_defs
Don't use the /usr/share/proj/proj_def.dat defaults file
-
init
public static final CustomProjection.Param init
-
to_meter
public static final CustomProjection.Param to_meter
crs units to meter multiplier
-
axis
public static final CustomProjection.Param axis
definition of axis for projection
-
zone
public static final CustomProjection.Param zone
UTM zone
-
south
public static final CustomProjection.Param south
indicate southern hemisphere for UTM
-
vunits
public static final CustomProjection.Param vunits
vertical units - ignore, as we don't use height information
-
wmssrs
public static final CustomProjection.Param wmssrs
-
bounds
public static final CustomProjection.Param bounds
-
-
Field Detail
-
key
public final java.lang.String key
Parameter key
-
hasValue
public final boolean hasValue
true
if the parameter has a value
-
paramsByKey
static final java.util.Map<java.lang.String,CustomProjection.Param> paramsByKey
Map of all parameters by key
-
-
Constructor Detail
-
Param
private Param(java.lang.String key, boolean hasValue)
-
-
Method Detail
-
values
public static CustomProjection.Param[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CustomProjection.Param c : CustomProjection.Param.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomProjection.Param valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-