On Wed, Oct 28, 2009 at 9:27 AM, Jason Grout
<[email protected]> wrote:
>
> ellian wrote:
>> Can anyone point me at GIS resources for sage?  I am particularly
>> interested in finding replacements for matlab's
>>
>>     shaperead()   and   shapewrite()
>>
>> functions to read and write *.shp files.
>
>
> The thing to do is look for python GIS packages.  A quick google search
> for "GIS python" and some clicking around turns up a few interesting pages:
>
>
> http://gispython.org/
>
> http://www.gis.usu.edu/~jlowry/python/
>
> http://invisibleroads.com/tutorials/  (this looks very useful to you,
> particularly
> http://invisibleroads.com/tutorials/gdal-shapefile-points-load.html; the
> video looks like it does not apply to the page, though!  The video shows
> how to make a call through skype totally in python, even having python
> controlling a text-to-speech interface to navigate through a 411 voice
> menu.)
>
> You can install any python module into Sage just by following the
> directions for installation after typing "sage -sh" (which sets up the
> sage environment so things get installed into Sage).

Here's the line I'm using to install GDAL into SageMathCloud -- see
https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2014-11-30-gdal.sagews
for a worksheet that uses GDAL:

    umask 022; sage -sh
    unset MAKE && cd /tmp && export V=1.11.1 && rm -rf gdal-$V* &&
wget http://download.osgeo.org/gdal/CURRENT/gdal-$V.tar.xz && tar xf
gdal-$V.tar.xz && cd gdal-$V && export CXXFLAGS=-I/usr/include/mpi/ &&
./configure --with-python --prefix=$SAGE_ROOT/local && make -j20; make
&& cd swig/python && python setup.py install && cd ../.. && make
install && cd /tmp && rm -rf gdal-$V*



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to