Thank you for your answer. Do you know how I can retrieve the parameters values from an existing CRS ? I don't want to build a new one from scratch, just to change the central_meridian parameter Thanks Ben
Le 20 janv. 2010 à 15:00, jle a écrit : > > 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 > ---- Benoît Thiébault Société Artenum 24 rue Louis Blanc, 75010 Paris tel: +33 (0)1 46 94 67 54 Artenum - Science & Groupware - http://www.artenum.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
