Can you please show me what the updated code for 2.5 looks like for the
following?
FactoryGroup factories = new FactoryGroup(null);
GeographicCRS geoCRS = DefaultGeographicCRS.WGS84;
CartesianCS cartCS = DefaultCartesianCS.PROJECTED;
ParameterValueGroup parameters = mtFactory.getDefaultParameters("Oblique
Stereographic");
parameters.parameter("semi_major").setValue(ConstantesDespliegue.VALOR_S
EMI_MAYOR);
parameters.parameter("semi_minor").setValue(6356752.314245179);
parameters.parameter("central_meridian").setValue(coordinateCentro.x);
parameters.parameter("latitude_of_origin").setValue(coordinateCentro.y);
parameters.parameter("scale_factor").setValue(1.0);
parameters.parameter("false_easting").setValue(0.0);
parameters.parameter("false_northing").setValue(0.0);
Map properties = Collections.singletonMap("name", "WGS 84 / UTM Zone
12N");
ProjectedCRS projCRS = factories.createProjectedCRS(properties, geoCRS,
null, parameters, cartCS);
I see how it is createProjectedCRS is deprecated and split into 2 calls
on 2 different objects. However, now OperationMethod can't be null as it
was in the last line above.
I tried to do:
Conversion c =
coordinateOperationFactory.createDefiniingConversion(properties, null,
parameters);
But that failed because operation method can't be null, but it was
allowed to be null in 2.3 (my current version).
Thanks,
Michael
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users