problem with NZMG in GeoTiffMetadata2CRSAdapter.java
----------------------------------------------------
Key: GEOT-2663
URL: http://jira.codehaus.org/browse/GEOT-2663
Project: GeoTools
Issue Type: Bug
Components: gc geotiff
Affects Versions: 2.4.2
Reporter: Niels Hoffmann
There is an error in GeoTiffMetadata2CRSAdapter.java
The semi-major and semi-minor axis are not part of the projection, but the
spheroid.
The getoriginLat and getoriginLon values are assigned twice, the first 2 should
be deleted as shown below.
/**
*
* New Zealand Map Grid
*
*/
if (name.equalsIgnoreCase("New_Zealand_Map_Grid") ||
code == GeoTiffCoordinateTransformationsCodes.CT_NewZealandMapGrid) {
parameters = mtFactory
.getDefaultParameters("New_Zealand_Map_Grid");
//parameters.parameter("semi_major").setValue(
// getOriginLat(metadata));
//parameters.parameter("semi_minor").setValue(
// getOriginLong(metadata));
parameters.parameter("latitude_of_origin").setValue(
this.getOriginLat(metadata));
parameters.parameter("central_meridian").setValue(
getOriginLong(metadata));
parameters.parameter("false_easting").setValue(
getFalseEasting(metadata));
parameters.parameter("false_northing").setValue(
getFalseNorthing(metadata));
return parameters;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel