I have searched the mailing list about Lat/Long to TransverseMercator (UTM)
however what other had asked were not like my issue.

I am trying to do a quick projection transform from Lat/Long to UTM and
would like not to use the CRS class.

try {
                MathTransformFactory mtFactory =
ReferencingFactoryFinder.getMathTransformFactory(null);
                ParameterValueGroup parameters =
mtFactory.getDefaultParameters("Transverse_Mercator");
               
parameters.parameter("semi_major").setValue(DefaultEllipsoid.WGS84.getSemiMajorAxis());
               
parameters.parameter("semi_minor").setValue(DefaultEllipsoid.WGS84.getSemiMinorAxis());
                parameters.parameter("scale_factor").setValue(0.9996);
                parameters.parameter("false_easting").setValue(500000);
                parameters.parameter("false_northing").setValue(0);
                
                MathTransform toUTM = new
org.geotools.referencing.operation.projection.TransverseMercator(parameters);

            } catch (NoSuchIdentifierException e) {
                e.printStackTrace();
            }

However, TransverseMercator has protected access in the gt-referencing so
the code above doesn't work. Any suggestion to deal with this error?

I would like not to touch the CRS class and to define the Zone or Central
Meridian value because my data is usually of millions of points and usually
not in one zone.

Thanks in advance.

(Just a note for myself:
http://n2.nabble.com/Std-methodology-for-coordinate-transformation-td1937620.html#a1937621)
-- 
View this message in context: 
http://n2.nabble.com/gt-referencing-questions-from-a-newbie-tp4294766p4422558.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

Reply via email to