Good morning, I believe that the Longitude of Origin is actually the Central Meridian parameter. So somewhere in your code when you set up your parameters, make sure you set the central meridian value as your value.
I found this link: http://www.remotesensing.org/geotiff/proj_list/mercator_2sp.html Looks like the required parameters are: - "standard_parallel_1" : the Latitude of first standard parallel, unit: angular (radian i believe) - "latitude_of_origin": the Latitude of natural origin, unit: angular (radian I believe) - "central_meridian": the Longitude of natural origin, unit: angular (radian ~me) - "false_easting": False Easting - "false_northing": False Northing This is what I think how to set up the parameters (in my theory :) I am still testing with UTM) try { MathTransformFactory mtFactory = ReferencingFactoryFinder.getMathTransformFactory(null); ParameterValueGroup parameters = mtFactory.getDefaultParameters("Mercator_2SP"); parameters.parameter("standard_parallel_1").setValue( <some value here> ); parameters.parameter("latitude_of_origin").setValue( <some value here> ); parameters.parameter("central_meridian").setValue( <some value here> ); parameters.parameter("false_easting").setValue( <some value here> ); parameters.parameter("false_northing").setValue( <some value here> ); // TODO: set up the math transform and do transform } catch (NoSuchIdentifierException e) { e.printStackTrace(); } I hope this helps. ~jle Note to myself: http://www.remotesensing.org/geotiff/proj_list/ -- View this message in context: http://n2.nabble.com/How-to-translate-a-ProjectedCRS-tp4425910p4426611.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
