1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>GDAL/OGR</TITLE>
<META NAME="description" CONTENT="GDAL/OGR">
<META NAME="keywords" CONTENT="install">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="install.css">
<LINK REL="next" HREF="node9.html">
<LINK REL="previous" HREF="node7.html">
<LINK REL="up" HREF="install.html">
<LINK REL="next" HREF="node9.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html146"
HREF="node9.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
<A NAME="tex2html142"
HREF="install.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
<A NAME="tex2html136"
HREF="node7.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<A NAME="tex2html144"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html147"
HREF="node9.html">Qt</A>
<B> Up:</B> <A NAME="tex2html143"
HREF="install.html">Building and Installing QGIS</A>
<B> Previous:</B> <A NAME="tex2html137"
HREF="node7.html">GRASS</A>
<B> <A NAME="tex2html145"
HREF="node1.html">Contents</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION00080000000000000000">
GDAL/OGR</A>
</H1>
The GDAL and OGR libraries provide support for raster and vector data formats. QGIS makes use of both of these libraries (which come bundled in one distribution).
<P>
Note: A Linux binary of GDAL is available at <TT><A NAME="tex2html12"
HREF="http://www.remotesensing.org/gdal">http://www.remotesensing.org/gdal</A></TT>. If you choose to install the binary you will also need to download and unpack the source tree since QGIS needs the header files in order to compile.
<P>
To install GDAL/OGR from source:
<OL>
<LI>Download the GDAL distribution from <TT><A NAME="tex2html13"
HREF="http://www.remotesensing.org/gdal">http://www.remotesensing.org/gdal</A></TT>. You should use version 1.1.9 or higher. Versions prior to 1.1.9 contained a bug that caused problems when a null feature was encountered. If you want to build vector support for GRASS, you must use GDAL 1.2.3.
<P>
</LI>
<LI>Untar the distribution
<PRE>
tar xfvz /../path/../gdal-x.x.x.tar.gz
</PRE>
<P>
</LI>
<LI>Change to the gdal-x.x.x subdirectory that was created by step 2
<PRE>
cd gdal-x.x.x
</PRE>
<P>
</LI>
<LI>Configure GDAL
<PRE>
./configure
</PRE>
or if you want GRASS support
<PRE>
./configure --with-grass=<full path to grass install>
</PRE>
Depending on the GDAL version you are building, it may be necessary to specify -without-ogdi when running configure if you don't have the OGDI libary avaiable on your system.
<P>
</LI>
<LI>Build and install GDAL:
<PRE>
make
su
make install
</PRE>
<P>
</LI>
<LI>In order to run GDAL after installing it is necessary for the shared
library to be findable. This can often be accomplished by setting
LD_LIBRARY_PATH to include /usr/local/lib. On Linux, you can add
/usr/local/lib (or whatever path you used for installing GDAL) to
/etc/ld.so.conf and run ldconfig as root.
<P>
</LI>
<LI>Make sure that gdal-config (found in the bin subdirectory where GDAL was installed) is included in the PATH. If necessary, add the path to gdal-config to the PATH environment variable.
<PRE>
export PATH=/../path/../gdal-config:$PATH
</PRE>
<P>
</LI>
<LI>Check the install by running:
<PRE>
gdal-config --prefix
</PRE>
<P>
</LI>
</OL>
<P>
If you've had problems during the installation, refer to this manual, where the whole process is described with some more detail: <TT><A NAME="tex2html14"
HREF="http://www.remotesensing.org/gdal/gdal_building.html">http://www.remotesensing.org/gdal/gdal_building.html</A></TT>
<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html146"
HREF="node9.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
<A NAME="tex2html142"
HREF="install.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
<A NAME="tex2html136"
HREF="node7.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
<A NAME="tex2html144"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html147"
HREF="node9.html">Qt</A>
<B> Up:</B> <A NAME="tex2html143"
HREF="install.html">Building and Installing QGIS</A>
<B> Previous:</B> <A NAME="tex2html137"
HREF="node7.html">GRASS</A>
<B> <A NAME="tex2html145"
HREF="node1.html">Contents</A></B>
<!--End of Navigation Panel-->
<ADDRESS>
Gary Sherman
2004-10-01
</ADDRESS>
</BODY>
</HTML>
|