The pseudo-EPSG parameter names for axis lengths have been removed from Apache SIS. Other parameter names can be found from the http://epsg-registry.org/. Furthermore Geotk (so soon Apache SIS) contains a test suite which compare the parameter names in the source code with the parameter names in the EPSG database. Removing the parameter names shown below cause a test failure, which is fixed by re-adding the parameter name as given by the test failure message.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r9130:9131 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/operation/projection/MapProjection.java
Revision 9130 | Revision 9131 |
---|---|
public static final ParameterDescriptor SEMI_MAJOR = createDescriptor(
new Identifier[] {
new Identifier(Citation.OPEN_GIS, "semi_major"),
// TODO new Identifier(Citation.EPSG, "")
},
Double.NaN, 0, Double.POSITIVE_INFINITY, SI.METER); |
public static final ParameterDescriptor SEMI_MAJOR = createDescriptor(
new Identifier[] {
new Identifier(Citation.OPEN_GIS, "semi_major"),
new Identifier(Citation.EPSG, "semi-major axis") //epsg does not specifically define this parameter
},
Double.NaN, 0, Double.POSITIVE_INFINITY, SI.METER); |
public static final ParameterDescriptor SEMI_MINOR = createDescriptor(
new Identifier[] {
new Identifier(Citation.OPEN_GIS, "semi_minor"),
// TODO new Identifier(Citation.EPSG, "")
},
Double.NaN, 0, Double.POSITIVE_INFINITY, SI.METER); |
public static final ParameterDescriptor SEMI_MINOR = createDescriptor(
new Identifier[] {
new Identifier(Citation.OPEN_GIS, "semi_minor"),
new Identifier(Citation.EPSG, "semi-minor axis") //epsg does not specifically define this parameter
},
Double.NaN, 0, Double.POSITIVE_INFINITY, SI.METER); |
public static final ParameterDescriptor CENTRAL_MERIDIAN = createDescriptor(
new Identifier[] {
new Identifier(Citation.OPEN_GIS, "central_meridian"),
// TODO new Identifier(Citation.EPSG, "")
new Identifier(Citation.GEOTIFF, "NatOriginLong")
},
0, -180, 180, NonSI.DEGREE_ANGLE); |
public static final ParameterDescriptor CENTRAL_MERIDIAN = createDescriptor( new Identifier[] { new Identifier(Citation.OPEN_GIS, "central_meridian"), new Identifier(Citation.EPSG, "Longitude of natural origin"), new Identifier(Citation.EPSG, "Longitude of false origin"), new Identifier(Citation.GEOTIFF, "NatOriginLong") }, 0, -180, 180, NonSI.DEGREE_ANGLE); |
public static final ParameterDescriptor LATITUDE_OF_ORIGIN = createDescriptor(
new Identifier[] {
new Identifier(Citation.OPEN_GIS, "latitude_of_origin"),
// TODO new Identifier(Citation.EPSG, "")
new Identifier(Citation.GEOTIFF, "NatOriginLat")
},
0, -90, 90, NonSI.DEGREE_ANGLE); |
public static final ParameterDescriptor LATITUDE_OF_ORIGIN = createDescriptor( new Identifier[] { new Identifier(Citation.OPEN_GIS, "latitude_of_origin"), new Identifier(Citation.EPSG, "Latitude of false origin"), new Identifier(Citation.EPSG, "Latitude of natural origin"), new Identifier(Citation.GEOTIFF, "NatOriginLat") }, 0, -90, 90, NonSI.DEGREE_ANGLE); |
public static final ParameterDescriptor SCALE_FACTOR = createDescriptor(
new Identifier[] {
new Identifier(Citation.OPEN_GIS, "scale_factor"),
// TODO new Identifier(Citation.EPSG, "")
new Identifier(Citation.GEOTIFF, "ScaleAtNatOrigin")
},
1, 0, Double.POSITIVE_INFINITY, Unit.ONE); |
public static final ParameterDescriptor SCALE_FACTOR = createDescriptor(
new Identifier[] {
new Identifier(Citation.OPEN_GIS, "scale_factor"),
new Identifier(Citation.EPSG, "Scale factor at natural origin"),
new Identifier(Citation.GEOTIFF, "ScaleAtNatOrigin")
},
1, 0, Double.POSITIVE_INFINITY, Unit.ONE); |
public static final ParameterDescriptor FALSE_EASTING = createDescriptor(
new Identifier[] {
new Identifier(Citation.OPEN_GIS, "false_easting"),
// TODO new Identifier(Citation.EPSG, ""),
new Identifier(Citation.GEOTIFF, "FalseEasting")
},
0, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, SI.METER); |
public static final ParameterDescriptor FALSE_EASTING = createDescriptor( new Identifier[] { new Identifier(Citation.OPEN_GIS, "false_easting"), new Identifier(Citation.EPSG, "False easting"), new Identifier(Citation.EPSG, "Easting at false origin"), new Identifier(Citation.GEOTIFF, "FalseEasting") }, 0, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, SI.METER); |
public static final ParameterDescriptor FALSE_NORTHING = createDescriptor(
new Identifier[] {
new Identifier(Citation.OPEN_GIS, "false_northing"),
// TODO new Identifier(Citation.EPSG, ""),
new Identifier(Citation.GEOTIFF, "FalseNorthing")
},
0, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, SI.METER); |
public static final ParameterDescriptor FALSE_NORTHING = createDescriptor( new Identifier[] { new Identifier(Citation.OPEN_GIS, "false_northing"), new Identifier(Citation.EPSG, "False northing"), new Identifier(Citation.EPSG, "Northing at false origin"), new Identifier(Citation.GEOTIFF, "FalseNorthing") }, 0, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, SI.METER); |