[Proj4j] projection transformation
Martin Davis
mbdavis at refractions.net
Fri May 28 17:08:32 EDT 2010
Ok, I'll work on this ASAP.
Martin
ahmet temiz wrote:
> thank you
>
> I prefer second option. Could you send it if possible ?
>
> regards
>
> 2010/5/27 Martin Davis <mtnclimb at gmail.com>:
>
>> Ahmet,
>>
>> Unfortunately at this point there isn't an available distribution of
>> Proj4J in compiled form. You have two choices:
>>
>> 1. download the project source files and compile it yourself (there is
>> an Ant script that does this)
>>
>> 2. If #1 is not an option possibly I can provide you with a compiled jar
>>
>> Martin
>>
>> On Thu, May 27, 2010 at 4:14 AM, ahmet temiz <ahmettemiz88 at gmail.com> wrote:
>>
>>> 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
>>>>>
>>>>>
> _______________________________________________
> Proj4j mailing list
> Proj4j at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/proj4j
>
>
--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022
More information about the Proj4j
mailing list