Bookmark this page: Add US SPC to lat long  to Yahoo MyWeb Add US SPC to lat long  to Google Bookmarks Add US SPC to lat long  to Windows Live Add US SPC to lat long  to Del.icio.us Digg US SPC to lat long ! Add US SPC to lat long  to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by Xrec9140X on April 24, 2010, 3:58 pm


I am looking to find some formulas to use in php and/or BASH programs to
convert from the US - SPC to lat/long (decimal) so that these can be stored
in MySQL for various other functions and used with mapping sources.

I am not looking for existing programs unless they operate on Linux, and
Linux only. I do not have access to anything win based. This excludes the
US Army corpscon, arcgis etc.. Any program also needs to operate in a batch
mode to convert so the Perl script at NOAA is not of use. Also C/C++ libs
do not help as I will not be using this via C/C++. Only PHP, or BASH if
needed.

I am just looking for the math formulas to convert the E/W SPC -> lat/long
NAD83 and I will create my functions to do this from the files I have.

Thanks in advance.


Posted by Melita Kennedy on April 24, 2010, 4:37 pm


Xrec9140X wrote:
> I am looking to find some formulas to use in php and/or BASH programs to
> convert from the US - SPC to lat/long (decimal) so that these can be stored
> in MySQL for various other functions and used with mapping sources.
>
> I am not looking for existing programs unless they operate on Linux, and
> Linux only. I do not have access to anything win based. This excludes the
> US Army corpscon, arcgis etc.. Any program also needs to operate in a batch
> mode to convert so the Perl script at NOAA is not of use. Also C/C++ libs
> do not help as I will not be using this via C/C++. Only PHP, or BASH if
> needed.
>
> I am just looking for the math formulas to convert the E/W SPC -> lat/long
> NAD83 and I will create my functions to do this from the files I have.
>
> Thanks in advance.

Proj.4 might work. http://trac.osgeo.org/proj/

A search on proj4 and php found some messages that imply there's a php
version available with MapServer. http://www.mapserver.org

For equations, you can look at http://www.epsg.org , Guidance Note 7-2

or John Snyder's Map Projections: A Working Manual which also has the
zone parameter values: http://pubs.er.usgs.gov/usgspubs/pp/pp1395

The NAD83 parameter changes from NAD27 are in an appendix.

Melita