[Proj4j] projection transformation

ahmet temiz ahmettemiz88 at gmail.com
Thu May 27 07:14:18 EDT 2010


thank you

where can I find related "jar" file ?

regards

2010/5/26 Martin Davis <mtnclimb at gmail.com>:
> Here's some sample code to do this (this code is also now in the
> ExampleTest file in SVN)
>
>  public void testExplicitTransform()
>  {
>    String csName1 = "EPSG:32636";
>    String csName2 = "EPSG:4326";
>
>    CoordinateTransformFactory ctFactory = new CoordinateTransformFactory();
>    CRSFactory csFactory = new CRSFactory();
>    /*
>     * Create {@link CoordinateReferenceSystem} & CoordinateTransformation.
>     * Normally this would be carried out once and reused for all
> transformations
>     */
>    CoordinateReferenceSystem crs1 = csFactory.createFromName(csName1);
>    CoordinateReferenceSystem crs2 = csFactory.createFromName(csName2);
>
>    CoordinateTransform trans = ctFactory.createTransform(crs1, crs2);
>
>    /*
>     * Create input and output points.
>     * These can be constructed once per thread and reused.
>     */
>    ProjCoordinate p1 = new ProjCoordinate();
>    ProjCoordinate p2 = new ProjCoordinate();
>    p1.x = 500000;
>    p1.y = 4649776.22482;
>
>    /*
>     * Transform point
>     */
>    trans.transform(p1, p2);
>
>    assertTrue(isInTolerance(p2, 33, 42, 0.000001));
>  }
>
>
> On Sun, May 23, 2010 at 11:33 AM, ahmet temiz <ahmettemiz88 at gmail.com> wrote:
>> hello
>>
>> how can I transform utm epsg :32636 values to epsg:4326
>>
>> regards
>> _______________________________________________
>> Proj4j mailing list
>> Proj4j at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/proj4j
>>
>


More information about the Proj4j mailing list