[mapserver-users] Coordinate transformation in Java (latlong to LCC)
Paul Ramsey
pramsey at refractions.net
Wed Nov 20 13:40:21 PST 2002
The proj4j project (part of geotools) may have already implemented an
LCC projection. Might be worth checking out.
http://www.geotools.org
Jean-Francois.Doyon at ccrs.nrcan.gc.ca wrote:
> 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
>
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
More information about the MapServer-users
mailing list