<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hey Jose!<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">That looks like is is exactly what I need! I really appreciate you doing this. <br>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I installed it on a fresh version of Anaconda, but could not import gdal:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
jbrinkmann> python -c "from osgeo import gdal"<br>Traceback (most recent call last):<br> File "<string>", line 1, in <module><br> File "/workspace/jbrinkmann/.gdalpy/lib/python2.7/site-packages/osgeo/__init__.py", line 21, in <module><br>
_gdal = swig_import_helper()<br> File "/workspace/jbrinkmann/.gdalpy/lib/python2.7/site-packages/osgeo/__init__.py", line 17, in swig_import_helper<br> _mod = imp.load_module('_gdal', fp, pathname, description)<br>
ImportError: /workspace/jbrinkmann/.gdalpy/lib/python2.7/site-packages/osgeo/_gdal.so: undefined symbol: GDALRasterBandGetVirtualMem<br></blockquote><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
Do you know what the issue could be? <br><br>Thanks again!<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 18, 2014 at 12:59 PM, Jose Gomez-Dans <span dir="ltr"><<a href="mailto:jgomezdans@gmail.com" target="_blank">jgomezdans@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have produced a GDAL (1.11.0) binary for Anaconda with HDF4, HDF5 and NetCDF for X86_64. It should just work by installing standard anaconda and issuing the following command:</div>
<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">conda install -c </span><a href="https://conda.binstar.org/jgomezdans" style="font-family:arial,sans-serif;font-size:13px" target="_blank">https://conda.binstar.org/jgomezdans</a><span style="font-family:arial,sans-serif;font-size:13px"> gdal=1.11.0</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">The list of supported raster formats is available here: </span><font face="arial, sans-serif"><a href="https://gist.github.com/jgomezdans/11c1bb9ce266495e6544" target="_blank">https://gist.github.com/jgomezdans/11c1bb9ce266495e6544</a>, but in reality, I need it for working with MODIS data, so only tested MODIS, HDF5 and netcdf.</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Hope it's of use to other people!</font></div><div><font face="arial, sans-serif">Jose</font></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">On 18 August 2014 14:54, Jake Brinkmann <span dir="ltr"><<a href="mailto:jakebrinkmann@gmail.com" target="_blank">jakebrinkmann@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hey Daniel, <br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Much appreciated! I think building my own on a VM might be the next thing I try. <br>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I attempted to use jevans version, with a fresh install of Anaconda, but to no avail. <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
The code here: <a href="https://gist.github.com/jake-brinkmann/fb4bd3f4625b209978d0" target="_blank">https://gist.github.com/jake-brinkmann/fb4bd3f4625b209978d0</a> still didn't work. <br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
I'll look through the examples to attempt again after building my own package.<br><br>Thank you!<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
Jake<br></div></font></span></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Aug 16, 2014 at 4:34 AM, Daniel Clewley <span dir="ltr"><<a href="mailto:daniel.clewley@gmail.com" target="_blank">daniel.clewley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Jake,<br>
<br>
As you mentioned Anaconda Python, one options is to install a different GDAL build from binstar someone has built with HDF4 support or build yourself using the conda build system on a virtual machine you have root access to and then install these binaries through conda.<br>
<br>
A quick search of <a href="http://binstar.org" target="_blank">binstar.org</a> showed the following user with GDAL built against HDF4:<br>
<br>
<a href="https://binstar.org/jevans" target="_blank">https://binstar.org/jevans</a><br>
<br>
You should be able to install this version of GDAL through conda using:<br>
<br>
conda install -c <a href="https://conda.binstar.org/jevans" target="_blank">https://conda.binstar.org/jevans</a> gdal<br>
<br>
Note: I haven't tested this.<br>
<br>
Building your own packages is a bit more involved - basically you create a recipe and then build it using:<br>
<br>
conda build recipe-folder<br>
<br>
There is a github repository with lots of examples here:<br>
<br>
<a href="https://github.com/conda/conda-recipes/" target="_blank">https://github.com/conda/conda-recipes/</a><br>
<br>
We've built GDAL and other software through conda for Linux and OS X under virtual machines and installed on different machines (without root access) and it's worked pretty well.<br>
<br>
Hope this helps and the discussion of conda isn't too off topic.<br>
<br>
Thanks,<br>
<br>
Dan<br>
<br>
On 15 Aug 2014 23:11, Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>> wrote:<br>
><br>
> Jake,<br>
><br>
> well if you don't have the basic build dependencies, this might get<br>
> complicated... Nothing impossible, but might take time indeed.<br>
> Well one possibility is to access a CentOS where you have a root access (e.g. a<br>
> VM that you install), build on it, and then copy the resulting binaries.<br>
><br>
> Even<br>
><br>
>> Hey Even,<br>
>><br>
>> Thank you for outlining this. The trouble I have is that, without root<br>
>> access, `make install` is a never-ending list of missing libraries, or<br>
>> compilation errors...<br>
>> Do you know of a way to resolve the missing libraries without root access<br>
>> (and without wasting the next 48hours untaring, compiling, and installing)?<br>
>><br>
>> Just as an example, I cant even compile the HDF4 source with `./configure<br>
>> --prefix=/have/write/access` because of something with Fortran and g77... I<br>
>> disable fortran as `./configure --prefix=/have/write/access<br>
>> --enable-fortran=NO` but then it fails due to missing yacc utility.... This<br>
>> continues until I get so lost as to what library I'm installing for what<br>
>> package, that it just seems there must be an easier way...<br>
>><br>
>> If you have any thoughts, please, let me know.<br>
>><br>
>> Thank you for reaching out.<br>
>> Jake<br>
>><br>
>><br>
>> On Fri, Aug 15, 2014 at 4:45 PM, Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>><br>
>> wrote:<br>
>><br>
>>> Selon Jake Brinkmann <<a href="mailto:jakebrinkmann@gmail.com" target="_blank">jakebrinkmann@gmail.com</a>>:<br>
>>><br>
>>>> Hello all geospatial-web-wizards,<br>
>>>><br>
>>>> I am struggling pretty hard building the GDAL libraries and all the<br>
>>>> countless dependencies from source in CentOS6.5. I do not have root<br>
>>> access<br>
>>>> on my machine, but I need the GDAL (as well as HDF, GeoTiff, GEOS, etc.)<br>
>>>> libraries for performing image processing using the Terra/Aqua MODIS<br>
>>>> satellite remote sensing data.<br>
>>>> Does anyone out there have experience building GDAL along with HDF and<br>
>>>> Python bindings, but without, and I emphasize here: *without* root<br>
>>> access?<br>
>>>> Alternatively, if possible, I would be willing to install a binary, but<br>
>>>> remember: I do not have root access (so I'm not sure this would work...)<br>
>>>> and lack experience with *.rpm files<br>
>>>><br>
>>>> Let me know, please, if anyone has any ideas at all.<br>
>>>> I am really wishing the Anaconda Python distribution would come with GDAL<br>
>>>> supporting HDF4, but it currently does not...<br>
>>>><br>
>>>> Thanks for reading, and any help you can provide,<br>
>>><br>
>>> Jake,<br>
>>><br>
>>> It is always possible to build without root access.<br>
>>> The scheme is :<br>
>>> 1) Download HDF4 sources, untar, cd to the source directory<br>
>>> 2) ./configure --prefix=/somewhere/where/you/have/write/access<br>
>>> 3) make install<br>
>>> 4) Download GDAL sources, untar, cd to the source directory<br>
>>> 5) ./configure --prefix=/somewhere/where/you/have/write/access<br>
>>> --with-hdf4=/somewhere/where/you/have/write/access<br>
>>> 6) make install<br>
>>> 7) cd swig/python<br>
>>> 8) python setup.py build<br>
>>> 9) export PYTHONPATH=$PWD/build/lib.linuxXXXXXXXX (to be adapted depending<br>
>>> on<br>
>>> your architecture and Python version)<br>
>>> 10) export PATH=/somewhere/where/you/have/write/access/bin:$PATH<br>
>>> 11) export LD_LIBRARY_PATH=/somewhere/where/you/have/write/access/lib<br>
>>><br>
>>> You should be done.<br>
>>><br>
>>> Even<br>
<span><font color="#888888">>>><br>
>>> --<br>
>>> Spatialys - Geospatial professional services<br>
>>> <a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
<br>
</font></span></blockquote></div><br></div>
</div></div><br></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div>
</blockquote></div><br></div>