<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=501404919-07012004><FONT face=Arial
size=2>Greetings</FONT></SPAN></DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial size=2>I am having a
problem projecting a shapefile of canada from geographic to
UPS:</FONT></SPAN></DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial
size=2></FONT></SPAN> </DIV><SPAN class=501404919-07012004><FONT face=Arial
size=2>
<DIV><BR>P:\Data\maproom.psu.edu>shpproj canada.shp
projections\ups\canada.shp -i=geographic -o"proj=ups"</DIV>
<DIV> </DIV>
<DIV><BR>P:\Data\maproom.psu.edu></FONT></SPAN></DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial size=2>The program appears
to complete without error, but the resulting .prj file has a single line of
"proj=geographic" and the output shape file is exactly the same as the
input shape file.</FONT></SPAN></DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial size=2>So, in stepping
though the debugger, the problem appears to be that the SHPSetProjection call is
returning 0 for the new_prj. Further, the call to pj_init in shpgeo.c is
returning 0 as well.</FONT></SPAN></DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial size=2>My
environ:</FONT></SPAN></DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial size=2>Windows
XP</FONT></SPAN></DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial
size=2>shapelib-1.2.10</FONT></SPAN></DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial size=2>proj cvs as of
December 2003</FONT></SPAN></DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=501404919-07012004><FONT face=Arial size=2>Any
Ideas</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV align=left>Charlie Van Dusen</DIV>
<DIV align=left>IM Design</DIV>
<DIV align=left> </DIV>
<DIV align=left><FONT face=Arial size=2><A
href="mailto:charlie@im-design.net">charlie@im-design.net</A></FONT></DIV>
<DIV align=left><FONT face=Arial size=2>+1 781.389.0343</FONT></DIV>
<DIV> </DIV></BODY></HTML>