Hi<div><br></div><div>How do you install GDAL with GEOS and the Python Bindings on Ubuntu Linux Natty Narwhal 11.04?</div><div><br></div><div>I've Googled an awful lot and tried heaps of suggestions most of which I'm afraid I can't remember. Presumably my system is now in a horrible mess. I remember installing umpteen different versions of Python, for example.</div>
<div><br></div><div>Somehow I managed to get enough of GDAL and Python to work to use gdalbuildvrt and gdal2tiles.py. But now I want to do something like:</div><div><br></div><div><div>ogr2ogr -s_srs EPSG:2193 -t_srs EPSG:2193 -f "GeoJSON" -clipdst 18785164.071364913 -5009377.0856973119 20037508.342789244 -3757032.814272983 doc-campsites-clipped.json doc-campsites.shp</div>
<div><br></div></div><div>which responds with hundreds of lines of "ERROR 6: GEOS support not enabled." Leaving out "-clip dst", as below, works though.</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">ogr2ogr -s_srs EPSG:2193 -t_srs EPSG:2193 -f "GeoJSON" doc-campsites-clipped.json doc-campsites.shp</div>
<div><br></div><div>I probably tried using the Ubuntu Software Centre. I remember doing something with FWTools, reluctantly, because it's out of date. I remember building lots of stuff from source. I added the ubuntugis-unstable repositry and did "apt-get update". My hopes were raised when "apt-get install gdal-bin" didn't fail, but then "apt-get install python-gdal" responded with </div>
<div><br></div><div><div>The following packages have unmet dependencies:</div><div> python-gdal : Depends: python (< 2.7) but 2.7.1-0ubuntu5 is to be installed</div><div>E: Broken packages</div></div><div><br></div><div>
Which is how I ended up installing (maybe even building) earlier versions of Python.</div><div><br></div><div>Many thanks,</div><div>Duncan</div>