{"title":"Leabharlanna Geospásúla a","version":"5.2","locale":"ga","docname":"ref/contrib/gis/install/geolibs","url":"/ga/5.2/ref/contrib/gis/install/geolibs/","canonical":"https://djangodocs.dev/ga/5.2/ref/contrib/gis/install/geolibs/","summary":"Úsáideann GeodJango agus/nó soláthraíonn sé comhéadain do na leabharlanna geospásúla foinse oscailte Clár Cur síos Riachtanach Leaganacha Tacaithe GEOS Foinse…","html":"<h1>Leabharlanna Geospásúla a<a class=\"heading-anchor\" href=\"#installing-geospatial-libraries\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Úsáideann GeodJango agus/nó soláthraíonn sé comhéadain do na leabharlanna geospásúla foinse oscailte</p>\n<div class=\"table-scroll\" role=\"region\" tabindex=\"0\" aria-label=\"Table\"><table class=\"docutils align-default\">\n<thead>\n<tr class=\"row-odd\"><th class=\"head\"><p>Clár</p></th>\n<th class=\"head\"><p>Cur síos</p></th>\n<th class=\"head\"><p>Riachtanach</p></th>\n<th class=\"head\"><p>Leaganacha Tacaithe</p></th>\n</tr>\n</thead>\n<tbody>\n<tr class=\"row-even\"><td><p><a class=\"reference internal\" href=\"/ga/5.2/ref/contrib/gis/geos/\"><span class=\"doc\">GEOS</span></a></p></td>\n<td><p>Foinse Oscailte Inneall Ge</p></td>\n<td><p>Tá</p></td>\n<td><p>3.13, 3.12, 3.11, 3.10, 3.9, 3.8</p></td>\n</tr>\n<tr class=\"row-odd\"><td><p><a class=\"reference external\" href=\"https://proj.org/\">PROJECT</a></p></td>\n<td><p>Leabharlann Réamh-mheastach</p></td>\n<td><p>Sea (PostgreSQL agus SQLite amháin)</p></td>\n<td><p>9.x, 8.x, 7.x, 6.x</p></td>\n</tr>\n<tr class=\"row-even\"><td><p><a class=\"reference internal\" href=\"/ga/5.2/ref/contrib/gis/gdal/\"><span class=\"doc\">GDAL</span></a></p></td>\n<td><p>Leabharlann Aistí Sonraí Geospásúla</p></td>\n<td><p>Tá</p></td>\n<td><p>3.10, 3.9, 3.8, 3.7, 3.6, 3.5, 3.4, 3.3, 3.2, 3.1</p></td>\n</tr>\n<tr class=\"row-odd\"><td><p><a class=\"reference internal\" href=\"/ga/5.2/ref/contrib/gis/geoip2/\"><span class=\"doc\">GeoIP</span></a></p></td>\n<td><p>Leabharlann geolocation bunaithe ar IP</p></td>\n<td><p>Níl</p></td>\n<td><p>2</p></td>\n</tr>\n<tr class=\"row-even\"><td><p><a class=\"reference external\" href=\"https://postgis.net/\">PostGis</a></p></td>\n<td><p>Síntí spásúla do PostgreSQL</p></td>\n<td><p>Sea (PostgreSQL amháin)</p></td>\n<td><p>3.4, 3.3, 3.2, 3.1</p></td>\n</tr>\n<tr class=\"row-odd\"><td><p><a class=\"reference external\" href=\"https://www.gaia-gis.it/gaia-sins/\">Spatialite</a></p></td>\n<td><p>Síntí spásúla le haghaidh SQLite</p></td>\n<td><p>Sea (SQLite amháin)</p></td>\n<td><p>5.1, 5.0, 4.3</p></td>\n</tr>\n</tbody>\n</table>\n</div>\n<p>Tabhair faoi deara go bhféadfadh leaganacha níos sine nó níos déanaí de na leabharlanna seo oibriú go hiomlán breá le GeodJango freisin. Féadfaidh do mhíleáiste a athrú.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Is féidir na comhéadain GeodJango le GEOS, GDAL, agus GeoIP a úsáid go neamhspleách ar Django. Is é sin le rá, níl aon bhunachar sonraí ná comhad socruithe ag teastáil - iad a iompórtáil mar is gnách ó:mod: django.contrib.gis.</p>\n</aside>\n<p>Ar Debian/Ubuntu, moltar duit na pacáistí seo a leanas a shuiteáil a shuiteálfaidh, go díreach nó trí spleáchas, na leabharlanna geospásúla riachtanacha:</p>\n<div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>sudo<span class=\"w\"> </span>apt-get<span class=\"w\"> </span>install<span class=\"w\"> </span>binutils<span class=\"w\"> </span>libproj-dev<span class=\"w\"> </span>gdal-bin\n</code></pre></div>\n<p>Téigh i gcomhairle le treoracha ardáin a shonraíonn freisin má tá tú ar:ref: macos nó:ref: windows.</p>\n<section id=\"building-from-source\">\n<span id=\"build-from-source\"></span><h2>Tógáil ó fhoinse<a class=\"heading-anchor\" href=\"#building-from-source\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Agus tú ag suiteáil ó fhoinse ar chórais UNIX agus GNU/Linux, lean na treoracha suiteála go cúramach, agus suiteáil na leabharlanna san ord ar leith. Má úsáideann tú MySQL nó Oracle mar an bunachar sonraí spásúil, níl ach GEOS ag teastáil.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Ar ardáin Linux, b'fhéidir go mbeadh sé riachtanach an t-ordú ldconfig a reáchtáil tar éis gach leabharlann a shuiteáil. Mar shampla:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span>sudo<span class=\"w\"> </span>make<span class=\"w\"> </span>install\n$<span class=\"w\"> </span>sudo<span class=\"w\"> </span>ldconfig\n</code></pre></div>\n</aside>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Ní mór d'úsáideoirí macOS <a class=\"reference external\" href=\"https://developer.apple.com/xcode/\">Xcode</a> a shuiteáil d'fhonn bogearraí a thiomsú ón bhfoinse.</p>\n</aside>\n<section id=\"geos\">\n<span id=\"geosbuild\"></span><h3>GEOS<a class=\"heading-anchor\" href=\"#geos\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Is leabharlann C ++ é GEOS chun oibríochtaí geoiméadracha a dhéanamh, agus is é an léiriú geoiméadrachta inmheánach réamhshocraithe a úsáideann GeodJango (tá sé taobh thiar de na geoiméadrachtaí “leisciúla”). Go sonrach, tugtar leabharlann C API (m.sh., <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>libgeos_c.so <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>) go díreach ó Python ag baint úsáide as ctypes.</p>\n<p>Ar dtús, íoslódáil GEOS ó shuíomh Gréasáin GEOS agus déan an cartlann foinse a dhíoslódáil:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span>wget<span class=\"w\"> </span>https://download.osgeo.org/geos/geos-X.Y.Z.tar.bz2\n$<span class=\"w\"> </span>tar<span class=\"w\"> </span>xjf<span class=\"w\"> </span>geos-X.Y.Z.tar.bz2\n</code></pre></div>\n<p>Ansin téigh isteach san eolaire GEOS, cruthaigh fillteán <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>tógáil <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>, agus déan isteach ann:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span><span class=\"nb\">cd</span><span class=\"w\"> </span>geos-X.Y.Z\n$<span class=\"w\"> </span>mkdir<span class=\"w\"> </span>build\n$<span class=\"w\"> </span><span class=\"nb\">cd</span><span class=\"w\"> </span>build\n</code></pre></div>\n<p>Ansin tógáil agus suiteáil an pacáiste:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span>cmake<span class=\"w\"> </span>-DCMAKE_BUILD_TYPE<span class=\"o\">=</span>Release<span class=\"w\"> </span>..\n$<span class=\"w\"> </span>cmake<span class=\"w\"> </span>--build<span class=\"w\"> </span>.\n$<span class=\"w\"> </span>sudo<span class=\"w\"> </span>cmake<span class=\"w\"> </span>--build<span class=\"w\"> </span>.<span class=\"w\"> </span>--target<span class=\"w\"> </span>install\n</code></pre></div>\n<section id=\"troubleshooting\">\n<h4>Fabhtcheartú<a class=\"heading-anchor\" href=\"#troubleshooting\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<section id=\"can-t-find-geos-library\">\n<h5>Ní féidir leabharlann GEOS a fháil<a class=\"heading-anchor\" href=\"#can-t-find-geos-library\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Nuair nach féidir le GeodJango GEOS a fháil, ardaítear an earráid seo:</p>\n<div class=\"code-block\" data-language=\"text\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Text</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Text code\"><code>ImportError: Could not find the GEOS library (tried &quot;geos_c&quot;). Try setting GEOS_LIBRARY_PATH in your settings.\n</code></pre></div>\n<p>Is é an réiteach is coitianta ná do: ref: libsettings <em>nó</em> set:ref: geoslibrarypath a chumrú i gceart i do shocruithe.</p>\n<p>Má tá pacáiste dénártha de GEOS á úsáid agat (m.sh., ar Ubuntu), b'fhéidir go mbeidh ort: ref: binutils.</p>\n</section>\n<section id=\"geos-library-path\">\n<span id=\"geoslibrarypath\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">CONAIR_LEABHARLANNA_GEOS</span></code><a class=\"heading-anchor\" href=\"#geos-library-path\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Má tá do leabharlann GEOS in áit neamhchaighdeánach, nó mura dteastaíonn uait cosán leabharlainne an chórais a mhodhnú ansin is féidir an socrú:: GEOS_LIBRARY_PATH a chur le do chomhad socruithe Django leis an gcosán iomlán chuig leabharlann GEOS C. Mar shampla:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"nv\">GEOS_LIBRARY_PATH</span><span class=\"w\"> </span><span class=\"o\">=</span><span class=\"w\"> </span><span class=\"s1\">&#39;/home/bob/local/lib/libgeos_c.so&#39;</span>\n</code></pre></div>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Caithfidh an socrú gurb é an cosán <em>iomlán</em> chuig an leabharlann roinnte**C**; i bhfocail eile ba mhaith leat <code class=\"docutils literal notranslate\"><span class=\"pre\">libgeos_c.so</span></code> a úsáid, ní <code class=\"docutils literal notranslate\"><span class=\"pre\">libgeos.so</span></code>.</p>\n</aside>\n<p>&lt;geos-exceptions-in-logfile&gt;Féach freis:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Líontar mo logaí le earráidí a bhaineann le Geos <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n</section>\n</section>\n</section>\n<section id=\"proj4\">\n<span id=\"id3\"></span><h3>PROJ<a class=\"heading-anchor\" href=\"#proj4\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Is leabharlann é <a class=\"reference external\" href=\"https://proj.org/\">PROJ</a> chun sonraí geospásúla a thiontú go córais tagartha comhordaithe éagsúla.</p>\n<p>Ar dtús, íoslódáil cód foinse PROJ:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span>wget<span class=\"w\"> </span>https://download.osgeo.org/proj/proj-X.Y.Z.tar.gz\n</code></pre></div>\n<p>... agus comhaid athraithe dáta (íoslódáil <code class=\"docutils literal notranslate\"><span class=\"pre\">proj-datumgrid-x.y.tar.gz</span></code> do PROJ &lt;7.x) [#] _:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span>wget<span class=\"w\"> </span>https://download.osgeo.org/proj/proj-data-X.Y.tar.gz\n</code></pre></div>\n<p>Ansin, déan an cartlann cód foinse a bhaint, agus bain na comhaid athraithe dáta san fho-eolaire <code class=\"docutils literal notranslate\"><span class=\"pre\">sonra</span></code>. Caithfear é seo a dhéanamh <em>roimh</em> chun cumraíocht:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span>tar<span class=\"w\"> </span>xzf<span class=\"w\"> </span>proj-X.Y.Z.tar.gz\n$<span class=\"w\"> </span><span class=\"nb\">cd</span><span class=\"w\"> </span>proj-X.Y.Z/data\n$<span class=\"w\"> </span>tar<span class=\"w\"> </span>xzf<span class=\"w\"> </span>../../proj-data-X.Y.tar.gz\n$<span class=\"w\"> </span><span class=\"nb\">cd</span><span class=\"w\"> </span>../..\n</code></pre></div>\n<p>Maidir le PROJ 9.x agus níos mó, ní scaoiltear ach tógáil tacaíochta ag baint úsáide as <code class=\"docutils literal notranslate\"><span class=\"pre\">Cmake</span></code> (féach <a class=\"reference external\" href=\"https://proj.org/community/rfc/rfc-7.html#rfc7\">PROJ RFC-7</a>).</p>\n<p>Chun tógáil le <code class=\"docutils literal notranslate\"><span class=\"pre\">Cmake</span></code> cinntigh go gcomhlíonann do chóras na <a class=\"reference external\" href=\"https://proj.org/install.html#build-requirements\">riachtanais tógála</a>. Ansin cruthaigh fillteán <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>tógáil <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>san eolaire PROJ, agus déan isteach ann:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span><span class=\"nb\">cd</span><span class=\"w\"> </span>proj-X.Y.Z\n$<span class=\"w\"> </span>mkdir<span class=\"w\"> </span>build\n$<span class=\"w\"> </span><span class=\"nb\">cd</span><span class=\"w\"> </span>build\n</code></pre></div>\n<p>Faoi dheireadh, cumraigh, déan agus suiteáil PROJ:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span>cmake<span class=\"w\"> </span>..\n$<span class=\"w\"> </span>cmake<span class=\"w\"> </span>--build<span class=\"w\"> </span>.\n$<span class=\"w\"> </span>sudo<span class=\"w\"> </span>cmake<span class=\"w\"> </span>--build<span class=\"w\"> </span>.<span class=\"w\"> </span>--target<span class=\"w\"> </span>install\n</code></pre></div>\n</section>\n<section id=\"gdal\">\n<span id=\"gdalbuild\"></span><h3>GDAL<a class=\"heading-anchor\" href=\"#gdal\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Is leabharlann geospásúil foinse oscailte den scoth é <a class=\"reference external\" href=\"https://gdal.org/\">GDAL</a> a bhfuil tacaíocht aige chun an chuid is mó de na formáidí sonraí spásúla veicteora agus raster a léamh. Faoi láthair, ní thacaíonn GeodJango ach le: doc: Sonraí veicteora GDAL &lt;.. /gdal &gt; `cumais [#] _. :ref: `geosbuild agus:ref: proj4 ba chóir a shuiteáil sula ndéantar GDAL a thógáil.</p>\n<p>Déan an leagan scaoilte GDAL is déanaí a íoslódáil ar dtús agus déan an cartlann</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span>wget<span class=\"w\"> </span>https://download.osgeo.org/gdal/X.Y.Z/gdal-X.Y.Z.tar.gz\n$<span class=\"w\"> </span>tar<span class=\"w\"> </span>xzf<span class=\"w\"> </span>gdal-X.Y.Z.tar.gz\n</code></pre></div>\n<p>Maidir le GDAL 3.6.x agus níos mó, ní scaoiltear ach tógáil tacaíochta ag baint úsáide as <code class=\"docutils literal notranslate\"><span class=\"pre\">Cmake</span></code>. Chun tógáil le Cmake` cruthaigh fillteán <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>tógáil <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>san eolaire GDAL, agus déan isteach ann:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span><span class=\"nb\">cd</span><span class=\"w\"> </span>gdal-X.Y.Z\n$<span class=\"w\"> </span>mkdir<span class=\"w\"> </span>build\n$<span class=\"w\"> </span><span class=\"nb\">cd</span><span class=\"w\"> </span>build\n</code></pre></div>\n<p>Faoi dheireadh, cumraigh, déan agus suiteáil GDAL:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code>$<span class=\"w\"> </span>cmake<span class=\"w\"> </span>..\n$<span class=\"w\"> </span>cmake<span class=\"w\"> </span>--build<span class=\"w\"> </span>.\n$<span class=\"w\"> </span>sudo<span class=\"w\"> </span>cmake<span class=\"w\"> </span>--build<span class=\"w\"> </span>.<span class=\"w\"> </span>--target<span class=\"w\"> </span>install\n</code></pre></div>\n<p>Má tá aon fhadhbanna agat, féach an chuid fabhtcheartaithe thíos le haghaidh moltaí agus réitigh.</p>\n<section id=\"gdaltrouble\">\n<span id=\"id7\"></span><h4>Fabhtcheartú<a class=\"heading-anchor\" href=\"#gdaltrouble\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<section id=\"can-t-find-gdal-library\">\n<h5>Ní féidir leabharlann GDAL a fháil<a class=\"heading-anchor\" href=\"#can-t-find-gdal-library\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Nuair nach féidir le GeodJango leabharlann GDAL a fháil, cumraigh do: ref: libsettings <em>nó</em> set:ref: gdallibrarypath i do shocruithe.</p>\n</section>\n<section id=\"gdal-library-path\">\n<span id=\"gdallibrarypath\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">BÓTHAIR_LEABHARLANNA_GDAL</span></code><a class=\"heading-anchor\" href=\"#gdal-library-path\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Má tá do leabharlann GDAL in áit neamhchaighdeánach, nó mura dteastaíonn uait cosán leabharlainne an chórais a mhodhnú ansin is féidir an socrú:: GDAL_LIBRARY_PATH a chur le do chomhad socruithe Django leis an gcosán iomlán chuig leabharlann GDAL. Mar shampla:</p>\n<div class=\"code-block\" data-language=\"shell\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"nv\">GDAL_LIBRARY_PATH</span><span class=\"w\"> </span><span class=\"o\">=</span><span class=\"w\"> </span><span class=\"s1\">&#39;/home/sue/local/lib/libgdal.so&#39;</span>\n</code></pre></div>\n<p class=\"rubric\">Fonótaí</p>\n<aside class=\"footnote-list brackets\">\n<aside class=\"footnote brackets\" id=\"id8\" role=\"doc-footnote\">\n<span class=\"label\"><span class=\"fn-bracket\">[</span><a role=\"doc-backlink\" href=\"#id4\">1</a><span class=\"fn-bracket\">]</span></span>\n<p>Teastaíonn na comhaid athraithe dáta chun sonraí a thiontú go réamh-mheastacháin áirithe agus ó. Mar shampla, ní éil&lt; <a class=\"reference external\" href=\"https://spatialreference.org/ref/epsg/3857/\">https://spatialreference.org/ref/epsg/3857/</a>&gt; íonn an teaghrán PROJ don teilgean Google (900913 nó 3857) `_ an comhad greille ``null` atá san áireamh ach sna comhaid athraithe dátum breise. Tá sé níos éasca na comhaid athraitheacha a shuiteáil anois, ansin fadhb a dhífhabhtú mar gheall ar a n-easpa níos déanaí.</p>\n</aside>\n<aside class=\"footnote brackets\" id=\"id9\" role=\"doc-footnote\">\n<span class=\"label\"><span class=\"fn-bracket\">[</span><a role=\"doc-backlink\" href=\"#id5\">2</a><span class=\"fn-bracket\">]</span></span>\n<p>Go sonrach, soláthraíonn GeoDjango tacaíocht don leabharlann <a class=\"reference internal\" href=\"#ogr\">OGR</a>, comhpháirt de GD&lt; <a class=\"reference external\" href=\"https://gdal.org/user/vector_data_model.html\">https://gdal.org/user/vector_data_model.html</a>&gt; AL.</p>\n</aside>\n</aside>\n</section>\n</section>\n</section>\n</section>","rootId":"installing-geospatial-libraries","toc":[{"title":"Tógáil ó fhoinse","anchor":"building-from-source","children":[{"title":"GEOS","anchor":"geos","children":[{"title":"Fabhtcheartú","anchor":"troubleshooting","children":[{"title":"Ní féidir leabharlann GEOS a fháil","anchor":"can-t-find-geos-library","children":[]},{"title":"CONAIR_LEABHARLANNA_GEOS","anchor":"geos-library-path","children":[]}]}]},{"title":"PROJ","anchor":"proj4","children":[]},{"title":"GDAL","anchor":"gdal","children":[{"title":"Fabhtcheartú","anchor":"gdaltrouble","children":[{"title":"Ní féidir leabharlann GDAL a fháil","anchor":"can-t-find-gdal-library","children":[]},{"title":"BÓTHAIR_LEABHARLANNA_GDAL","anchor":"gdal-library-path","children":[]}]}]}]}],"breadcrumbs":[{"docname":"ref/index","title":"Tagairt API","url":"/ga/5.2/ref/"},{"docname":"ref/contrib/index","title":"Pacáistí contrib","url":"/ga/5.2/ref/contrib/"},{"docname":"ref/contrib/gis/index","title":"GeodJango","url":"/ga/5.2/ref/contrib/gis/"},{"docname":"ref/contrib/gis/install/index","title":"Suiteáil GeodJango","url":"/ga/5.2/ref/contrib/gis/install/"}],"prev":{"docname":"ref/contrib/gis/install/index","title":"Suiteáil GeodJango","url":"/ga/5.2/ref/contrib/gis/install/"},"next":{"docname":"ref/contrib/gis/install/postgis","title":"PostGIS a shuiteáil","url":"/ga/5.2/ref/contrib/gis/install/postgis/"},"formats":{"html":"/ga/5.2/ref/contrib/gis/install/geolibs/","markdown":"/ga/5.2/ref/contrib/gis/install/geolibs.md","json":"/ga/5.2/ref/contrib/gis/install/geolibs.json"},"source":"https://github.com/django/django/blob/stable/5.2.x/docs/ref/contrib/gis/install/geolibs.txt","official":"https://docs.djangoproject.com/ga/5.2/ref/contrib/gis/install/geolibs/","inVersions":["6.1","6.0","5.2"],"inLocales":["en","sv","zh-hans","ga","fr","ja","id","it","pt-br","ko","es","el","pl"]}