<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr">Hi,</div></div><div dir="ltr"><br></div><div>I build GDAL by specifying <span style="font-size:12.8px">--with-static-proj4</span><span style="font-size:12.8px">  on the configure command line. This does not seem to have resolved the problem.</span></div><div><span style="font-size:12.8px"><br></span></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">echo 2 49 | build-release/lib/gdal/bin/gdaltransform -s_srs EPSG:4326 -t_srs EPSG:32632<br></span><span style="font-size:12.8px">-11818.9526229417 5451106.95020125 0</span></blockquote></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Cheers</span></div><div><span style="font-size:12.8px">Chris<br></span></div></div></div></div></div></div>
<br><div class="gmail_quote">On 18 October 2017 at 12:58, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On mercredi 18 octobre 2017 10:20:41 CEST Chris Marsh wrote:<br>
> I was wondering if anyone had thoughts on this? I posted to the proj.4<br>
> list, but seems like this may be a gdal problem and not proj.4 as the<br>
> proj.4 command line has no problem with this string.<br>
> I have also tried the  newest gdal without success.<br>
<br>
</span>Try building --with-static-proj4 to avoid the issues with the dlopen()'ing of<br>
libproj.so<br>
<br>
Check if the following works<br>
<br>
echo 2 49 | gdaltransform -s_srs EPSG:4326 -t_srs EPSG:32632<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<br>
> Cheers<br>
> Chris<br>
><br>
> On 12 October 2017 at 11:41, Chris Marsh <<a href="mailto:chris.marsh@usask.ca">chris.marsh@usask.ca</a>> wrote:<br>
> > Hi,<br>
> ><br>
> > I'm using GDAL (and by extension proj.4) to reproject a set of WGS84<br>
> > coordinates to North America Albers Conic Conformal.<br>
> ><br>
> > On all but 1 computer I run my code on, this works as expected. However,<br>
> > when trying to run on one of Compute Canada's newest machines, I get the<br>
> > error<br>
> ><br>
> > ERROR 6: Failed to initialize PROJ.4 with `+proj=aea +lat_1=20 +lat_2=60<br>
> > +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0<br>
> > +units=m +no_defs'.<br>
> ><br>
> > I have tried building and linking against various proj.4 versions, none of<br>
> > which solves this problem.<br>
> ><br>
> > The code  is straightfoward<br>
> > OGRSpatialReference insrs;<br>
> ><br>
> >     insrs.SetWellKnownGeogCS("<wbr>WGS84");<br>
> ><br>
> >     OGRSpatialReference outsrs;<br>
> >     outsrs.importFromProj4("+proj=<wbr>aea +lat_1=20 +lat_2=60 +lat_0=40<br>
> ><br>
> > +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m<br>
> > +no_defs");<br>
> ><br>
> >     OGRCoordinateTransformation* coordTrans =  NULL;<br>
> >     coordTrans = OGRCreateCoordinateTransformat<wbr>ion(&insrs, &outsrs);<br>
> ><br>
> >     coordTrans->Transform(1, &longitude, &latitude)<br>
> ><br>
> > with the error appearing on the Transform call. The proj.4 string is from<br>
> > using the ExportToWkt of GDAL for the WKT of Albers Conic Conformal. (long<br>
> > story as to why i'm doing this). I have tried using the WKT string and<br>
> > that<br>
> > results in the same error -- seems like it is just converted to proj.4<br>
> > behind the scenes.<br>
> ><br>
> > I am using gdal 2.2.1 and proj4 4.8 (4.9 has other issues I'm running<br>
> > into)<br>
> ><br>
> > $gcc -v<br>
> > Using built-in specs.<br>
> > COLLECT_GCC=gcc<br>
> > COLLECT_LTO_WRAPPER=/cvmfs/<a href="http://soft.computecanada.ca/nix/store/" rel="noreferrer" target="_blank">sof<wbr>t.computecanada.ca/nix/store/</a><br>
> > lvjwgn6hpngyy6k4xqcqa9h2cxy3fl<wbr>30-gfortran-5.4.0/libexec/gcc/<br>
> > x86_64-unknown-linux-gnu/5.4.<wbr>0/lto-wrapper<br>
> > Target: x86_64-unknown-linux-gnu<br>
> > Configured with:<br>
> > Thread model: posix<br>
> > gcc version 5.4.0 (GCC)<br>
> ><br>
> > $uname -a<br>
> > Linux gra-login4 3.10.0-514.21.1.el7.x86_64 #1 SMP Thu May 25 17:04:51 UTC<br>
> > 2017 x86_64 GNU/Linux<br>
> ><br>
> > Cheers<br>
> > Chris<br>
<br>
<br>
</div></div><span class="gmail-HOEnZb"><font color="#888888">--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</font></span></blockquote></div><br></div></div>