[mapserver-users] Coordinate transformation in Java (latlong to LCC)

Jean-Francois.Doyon at ccrs.nrcan.gc.ca Jean-Francois.Doyon at ccrs.nrcan.gc.ca
Wed Nov 20 14:37:59 EST 2002


Hello,

I once upon a time fumbled upon a SWIG interface for PROJ.4 ... It was
written for use with SWIG/Python, but maybe you could fairly easily use it
to generate a Java interface ? Find it attached.

Good luck!
J.F.

-----Original Message-----
From: Michael Soracco [mailto:Michael.Soracco at noaa.gov]
Sent: Wednesday, November 20, 2002 1:07 PM
To: Jan Kunzmann
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [mapserver-users] Coordinate transformation in Java
(latlong to LCC)


Jan-

Here's a class that will do it using the equations per Snyder's Handbook (as
seen
in GCTP).   Although I did not write the snipet (I can put you in contact
with the
original author offline if needed), I have used it routinely in a Java
applet. You
will see comments in the code describing the inputs (XY) and a parameter
array
which identifies the SP1,2 , ellipsoid, etc.

-m

Jan Kunzmann wrote:

> Hi there folks,
>
> I know this is a kind of of-topic question, but I really need help...
>
> I need to convert lat-long coordinates to Lambert Conic Conformal (2SP)
> coordinates and vice versa, as figured at
>
http://www.remotesensing.org/geotiff/proj_list/lambert_conic_conformal_2sp.h
tml
>
> I already found the PROJ.4 library being capable of doing this simple
> conversion, but I need to do it in Java. I searched the web and found
> some complex packages, but they are too complicated to understand for
> me, and none of them is as easy as
>
> (x,y) := convert(x,y, originlat, originlong, sp1lat, sp2lat)
>
> Does anyone know where I can find such a class, or can send me the
> algorithm (it's already on the remotesensing page but it's unreadable
> for me...)?
>
> Thanks in advance,
> Jan

--
////
Michael Soracco
SES, Inc. for NOAA/NESDIS
at NOAA Science Center (WWB)
5200 Auth Road, Room 607
Camp Springs, MD  20746
Voice: 301.763.8142 x117
FAX: 301.763.8131
Michael.Soracco at noaa.gov


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyProjectionLib-0.2.tgz
Type: application/octet-stream
Size: 25601 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20021120/86bc8687/pyProjectionLib-0.2.obj


More information about the mapserver-users mailing list