[geotk] How to convert Lat/Lon to UTM

Brian Schlining bschlining at gmail.com
Wed Feb 2 19:10:39 EST 2011


Nevermind, I just saw the module names in the demo code ...

On Wed, Feb 2, 2011 at 16:02, Brian Schlining <bschlining at gmail.com> wrote:

> Hi Martin,
>
> My code is not finding the following imports:
>
> import org.geotoolkit.referencing.CRS
> import org.geotoolkit.referencing.crs.DefaultGeographicCRS
> import org.geotoolkit.geometry.DirectPosition2D
>
> I'm referencing your Maven repo at http://maven.geotoolkit.org/ and
> including the following:
> group = "org.geotoolkit", module = "geotoolkit", version="3.16"
> group = "org.opengis", module = "geoapi-pending", version="2.3-M9"
>
> So I'm finding the opengis API with no problem, but I think I'm referencing
> the wrong geotoolkit module (there's a ton of them). Can you point me at
> ones I need to include the above classes?
>
> Thanks
> B
>
>
> On Wed, Feb 2, 2011 at 15:29, Martin Desruisseaux <
> martin.desruisseaux at geomatys.fr> wrote:
>
>> Hello Brian
>>
>> Le 03/02/11 00:19, Brian Schlining a écrit :
>>
>>  I have a positions defined using latitude and longitude (WGS84) that I'd
>>> like to convert to UTM Zone 10N eastings and northings. How do I go about
>>> doing that using Geotoolkit?
>>>
>> On http://www.geotoolkit.org/demos/index.html there is a (unfortunately
>> very small) set of demo. The "Demonstration applets" are broken for now, but
>> the "Demonstration code" are okay. The CoordinateConversion demo should give
>> you a starting point. Take any method from this demo and set source/target
>> CRS as below:
>>
>> sourceCRS = DefaultGeographicCRS.WGS84;
>> targetCRS = CRS.decode("EPSG:32610");
>>
>> The following page may be worth a look:
>> http://www.geotoolkit.org/modules/referencing/faq.html
>> Please let me know if you have any other issue!
>>
>>    Regards,
>>
>>        Martin
>>
>> _______________________________________________
>> Geotoolkit mailing list
>> Geotoolkit at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geotoolkit
>>
>
>
>
> --
> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
> Brian Schlining
> bschlining at gmail.com
>



-- 
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Brian Schlining
bschlining at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geotoolkit/attachments/20110202/89838058/attachment-0001.html


More information about the Geotoolkit mailing list