From: Benoît T. <thi...@ar...> - 2010-01-20 14:33:09
|
It's indeed a one time issue. I will thus try your method. However, I find it strange that there are no accessors on such CRS parameters... Thank you very much Ben Le 20 janv. 2010 à 15:26, Andrea Aime a écrit : > Benoît Thiébault ha scritto: >> 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 > > If this is a one time issue (that is, you don't need to automate it), > you can use the following: > > CoordinateReferenceSystem crs = CRS.decode("EPSG:3395); > System.out.println(crs); // this will print the WKT definition > String newWKT = "..."; // modified WKT definition with new cent. mer. > CoordinateReferenceSystem crs2 = CRS.parseWKT(newWKT); > > Hope this helps > > Cheers > Andrea > > -- > Andrea Aime > OpenGeo - http://opengeo.org > Expert service straight from the developers. > ---- 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 |