Dear All,
Thanks a lot for your answers. My problem could be solved out if I knew how
to create a projectioncrs from scratch with some geotools class having in
hand the projection parameters(like "src_semi_major" and so one). I am using
HDFEOS file format and as Frank said there are using this kind of projection
in their product. I found an example here but deprecated: I'm unable to find
neither FactoryGroup nor FactoryContainer in geotools. Herebelow is the code
copied from GeoTools 2.5 Users Guide
Thanks.
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_SEMI_MAYOR);
parameters.parameter("semi_minor").setValue(6356752.314245179);
parameters.parameter("central_meridian").setValue(coordinateCentro.x);
//parameters.parameter("latitude_of_origin").setValue(70.0);
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);
The above code example may be out of date FactoryGroup( has been replaced by
FactoryContainer)
Agossa wrote:
>
> Hello,
> How could I use a GCTP Projection code in Geotools? That is, I would like
> to decode a GCTP code into geotools CoordinateReferenceSystem;
> Thanks for your help.
> Agossa
>
--
View this message in context:
http://n2.nabble.com/GCTP-Projection-tp2269223p2273974.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users