Dear All,

    

    I would like to ask you if any of you have successfully done a ED50
    datum to ETRS89 datum reprojection (or viceversa), using a NTv2
    format grid file.

    

    I am using the next code:

    

      double[] srcPts = {lat,lon};

      double[] dstPts = new double[2];        

              

      CRSAuthorityFactory fact;

      fact = ReferencingFactoryFinder.getCRSAuthorityFactory("epsg",
      null);

              

      CoordinateReferenceSystem sourceCRS;

      CoordinateReferenceSystem targetCRS;

      String foundTransf = null;

      

      sourceCRS = fact.createCoordinateReferenceSystem("4258");

      targetCRS = fact.createCoordinateReferenceSystem("23030");

                  

      MathTransform mt = CRS.findMathTransform(sourceCRS, targetCRS);

                  

      foundTransf = mt.toWKT();
      mt.transform(srcPts, 0, dstPts, 0, 1);

    

    

    I have place the grid in the classpath renamed to "sped2et.gsb", but
    for some reason findMathTransform() does not find it.

    I am using Geotools 8.0.RC1 version.

    

    Thank you in advance
                                          
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to