Hello all,<br> I need to project UTM coordinates into stateplane, but I have no need for drawing graphical maps. My output is to be a script that will be imported into another application. I have found the Geo::Proj4 for PERL, and I have a functioning skeleton program that is properly translating coordinates, but I'm not that familar with PERL and I'm spending 10x the time trying to do what I want as opposed to PHP which I know very well. I'm looking for the same functionality in PHP, but having a hard time finding it. I just discovered PHP/MapScript, and I hope that it can do what I need, but so far I have not found any samples that I can learn from. I have PHP/MapScript installed and working, It's drawing maps and processing shp files.<br>
<br>Here's a sample of the PERL code that I am using:<br><br>====================================<br>#!/usr/bin/perl<br>use Geo::Proj4;<br>my $proj = Geo::Proj4->new(init => "epsg:2269") or die;<br>my($lon, $lat) = (-122.667591, 45.522973);<br>
my @newLatLon = $proj->forward($lat, $lon);<br>print "x:", $newLatLon[0]," y:", $newLatLon[1],"\n";<br>====================================<br><br>When run, it returns: x:7646617.87276814 y:684215.14079164<br>
<br>Is there a way to do this in PHP? Is MapScript the way to go, or is there another project that I have not yet found that could do it for me? Any assistance is much appreciated!<br><br>-Ray<br>