<div dir="ltr">Jeremy<br><br>I think your installation of PROJ is OK. I get the same result with the command line (I omitted some parts which are not needed):<br><br>echo -75.921819 41.295735 |cs2cs +proj=latlong +datum=NAD27 .... +to +init=epsg:32028<br>
2502332.66 416669.38 0.00<br><br>The problem is, I think, with the command line. The input system is geographical coordinates in the Clarke 66 ellipsoid, so in the NAD27 datum. The output is a LCC projection, also based on the NAD27 datum. There is no datum transformation, so using +nadgrids is irrelevant. Your command is doing only a map projection, that you could also do with proj command:<br>
<br>echo -75.921819 41.295735 | proj +init=epsg:32028<br>2502332.66 416669.38<br><br>In your message you refer the NAD27 to WGS84 transformation, so it is likely that your input coordinates are WGS84 geographical. In that case you should use the command:<br>
<br>echo -75.921819 41.295735 | cs2cs +init=epsg:4326 +to +init=epsg:32028<br>2502234.97 416637.87 0.00<br><br>This result is much closer to what you were expecting (distance of less than 1 metre).<br><br>> should return <br>
><br>> 2502235.76228 416637.89162 <br><br>I hope this helps<br>Regards<br><br>José Gonçalves<br><br><br><br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/8 Jeremy Boecker <span dir="ltr"><<a href="mailto:jeremy.boecker@gmail.com" target="_blank">jeremy.boecker@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Guys, I've tried everything suggested here in multiple variations, even to the point of rebuilding from the source code following the instructions in the FAQ, and I'm still getting the same output as is shown in my previous reply to this thread. I'm not sure what the difference is between what I'm doing and what Andre (one of the previous replies) is doing to be able to get the correct results. Would anyone be willing to give me a detailed step-by-step, starting with downloading "<a href="http://download.osgeo.org/proj/proj446_win32_bin.zip" target="_blank">http://download.osgeo.org/proj/proj446_win32_bin.zip</a>" and unzipping in a windows environment (I placed everything in C:\proj). See Andre's post above for the inputs and outputs. The second set of output coordinates is exactly what I need to get, but my output is just zeros and asterisks. Thanks so much folks for your help... I feel like I'm just missing something simple...!</div>
<div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 28, 2013 at 6:03 PM, Mikael Rittri <span dir="ltr"><<a href="mailto:Mikael.Rittri@carmenta.com" target="_blank">Mikael.Rittri@carmenta.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF">
<div>I think you don't have the grid shift files that are required for</div>
<div>the Proj.4 default datum shift between NAD27 and WGS84.</div>
<div>The files are called alaska and conus, and NTv2.gsb for</div>
<div>Canada, and should be in the "nad" directory I think.</div>
<div>The US files can require an extra manual <span>command
to</span></div>
<div><span>generate, if you build Proj.4
yourself. </span></div>
<div><br>
You can read more about this on the Proj.4 FAQ. </div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
<div>Mikael Rittri</div>
<div>Carmenta</div>
<div>Sweden</div>
<div><a href="http://www.carmenta.com" target="_blank">http://www.carmenta.com</a></div>
<div><br>
26 jul 2013 kl. 20:50 skrev "Jeremy Boecker" <<a href="mailto:jeremy.boecker@gmail.com" target="_blank">jeremy.boecker@gmail.com</a>>:<br>
<br>
</div><div><div>
<div></div>
<blockquote type="cite">
<div>
<div dir="ltr">Thank you, I tried what you said, and what I'm getting as output is as follows when I run the same batch file:
<div><br>
</div>
<div>
<div>WGS84-NAD27</div>
<div>* * 0.000</div>
<div>WGS84-NAD27PAft</div>
<div>* * 0.000</div>
<div>NAD27-NAD27PAft</div>
<div>2502332.66 416669.38 0.000</div>
</div>
<div><br>
</div>
<div>I'm thinking my EPSG definitions might be messed up somehow... but I also tried copying from
<a href="http://spatialreference.org" target="_blank"></a><a href="http://spatialreference.org" target="_blank">spatialreference.org</a>, and still I get the same output. (It seems like the 4326 EPSG is not working... ) Any further ideas? Your second result is the correct and expected conversion
result... not sure why I'm getting asterisks and zeros for the same command! :/ Thanks again for your help!!</div>
</div>
</div>
</blockquote>
</div></div><blockquote type="cite">
<div><span>_______________________________________________</span><div><br>
<span>Proj mailing list</span><br>
<span><a href="mailto:Proj@lists.maptools.org" target="_blank">Proj@lists.maptools.org</a></span><br>
<span><a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a></span></div></div>
</blockquote>
</div>
<br>_______________________________________________<br>
Proj mailing list<br>
<a href="mailto:Proj@lists.maptools.org" target="_blank">Proj@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Proj mailing list<br>
<a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br></blockquote></div><br></div>