Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

US-SPC to lat/long

29 views
Skip to first unread message

Xrec9140X

unread,
Apr 24, 2010, 3:58:58 PM4/24/10
to
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.

Melita Kennedy

unread,
Apr 24, 2010, 4:37:46 PM4/24/10
to

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

0 new messages