simple tool for conversion

Ethan Alpert ealpert at DIGITALGLOBE.COM
Thu Dec 9 09:26:31 EST 2004


I still don't see why you feel you must reproject your lat/long data.  Look back at the emails people have sent you. You just need to set a correct PROJECTION block for each layer and the mapfile and mapserver will take care of the rest.
 
-e

________________________________

From: UMN MapServer Users List on behalf of Joseph Norris
Sent: Wed 12/8/2004 4:40 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion



I do the following:

[joseph at spare:]$ proj +units=us-ft +init=nad83:4202 <<EOD
> -119.770623
> 36.830072
> EOD
-7049825.31     -4677803.10
45036164.88     26747054.17

I am not sure what the results are.  Are these x/y coordinates?  And if so -
which set the upper or the lower.


#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr
$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-
68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On
Behalf Of Lawrence, Kevin
Sent: Wednesday, December 08, 2004 7:05 AM
To: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion

proj - the same utility used for on the fly re-projection

one example
echo $lat $long | proj +proj=lcc +lon_0=95w +lat_0=0 +lat_1=49 +lat2=77 -r

project geographic to
lambert conformal
        origin -95 0
        1st parallel 49
        2nd parallel 77

KL

> ----------
> From:         UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU]
> on behalf of Joseph Norris[SMTP:sirronj at PACBELL.NET]
> Reply To:     Joseph Norris
> Sent:         Wednesday, December 08, 2004 9:58 AM
> To:   MAPSERVER-USERS at LISTS.UMN.EDU
> Subject:      [UMN_MAPSERVER-USERS] simple tool for conversion
>
> Can anyone make a recommendation for unix command line tool that will
> convert lat/long to xy coordinates?
>
> Thanks.
>
> #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map
> chr
> $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14
> ,-
> 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041209/afcc8846/attachment.html


More information about the mapserver-users mailing list