Thread: Re: pgdg GDAL version

Re: pgdg GDAL version

From
Christoph Berg
Date:
Re: Denis Rouzaud 2014-01-23 <52E0B4D3.8090109@gmail.com>
> Dear Christoph,
>
> I was looking for contacting a maintainer of the PGDG and I found
> your contact from the history of the wiki page.
>
> I wanted to ask you if you have any short intention to use GDAL 1.10
> in this repository.
>
> The main problem is that there is a conflict version between
> ubuntu-gis unstable and the pgdg repos.
>
> The short story is, PGDG apt repository for Debian/Ubuntu PostGIS
> 2.1 is based on GDAL 1.9,
> while UbuntuGIS-unstable and related repos are based on GDAL 1.10
> with updated drivers.
>
> Please let me know if you have any info on this.
>
> Best regards and thanks for your work!

Hi Denis,

the osgeo people have asked the same question last week.

The story is as follows:

In wheezy, sid, and trusty (Ubuntu 14.04), we are using the gdal that
comes with that distribution, while in precise (Ubuntu 12.04) we are
using a backport of the wheezy version (which was also the sid version
at the time we built that package).

I've tried to push a newer gdal package into precise, but that fails
horribly because precise doesn't have dh-python, and if you try to
produce a backport of that as well, the python3 version there is too
old.

An alternative would be to rip out the python3 parts of gdal to make
it build in precise, but that would be a regression compared to what
we have there now. I have pretty much no clue about gdal, so it won't
be me to dig into this.

One way that could work was to look into what the osgeo people have
done to get postgis working. I was under the impression that the PPA
for this was https://launchpad.net/~johanvdw/+archive/osgeolive , but
that doesn't seem to contain gdal, so they seem to have taken some
other route (probably just recompiling postgis against whatever gdal
they ship).

If you have a suggestion for how to resolve this, please let us know.

Christoph
--
cb@df7cb.de | http://www.df7cb.de/

Attachment

Re: pgdg GDAL version

From
Markus Wanner
Date:
On 01/25/2014 10:16 PM, Christoph Berg wrote:
>> The short story is, PGDG apt repository for Debian/Ubuntu PostGIS
>> 2.1 is based on GDAL 1.9,
>> while UbuntuGIS-unstable and related repos are based on GDAL 1.10
>> with updated drivers.

I think the easiest way forward might be to recompile postgis on that
mixture of additional packages from different repositories. That will
get you a postgis package compiled against a gdal 1.10 and for all
supported Postgres versions.

> One way that could work was to look into what the osgeo people have
> done to get postgis working.

Is ubuntu-gis even related to osgeo?

Anyways, I don't think there's much to be done to get postgis working.
It should build (and then work) with both, gdal 1.9 and 1.10. However,
the package and linking dependencies need to match with the rest of your
repositories.

In a way, the ubuntu-gis repo just isn't compatible to the pgapt one.
(Nor is osgeo, for that matter.) At least that's my way of thinking
about it.

Regards

Markus Wanner


Attachment

Re: pgdg GDAL version

From
Markus Wanner
Date:
On 01/30/2014 12:02 PM, Denis Rouzaud wrote:
> there is a repo for precise which hs gdal 1.10, postgis 2.1 and postgres
> 9.3:
>
> https://launchpad.net/~lwarx/+archive/postgis-pg93-bp

Alas. Yet another potentially incompatible repo.

It's not evident to me what postgis version got backported, there. But
the generated packages look similar enough to pgapt stuff.

> although, I have no idea how they solve this

The package certainly got recompiled, which already *solves* the issue.

Note that the author chose to add a few twists (libpostgis-java and gtk
dependencies "disabled").

> indeed. But the problem is that ogr2ogr needs to be from gdal1.10 to
> work properly with postgis 2 (without using the legacy.sql).

If that's your only problem, just *use* legacy.sql and stick with Ubuntu
+ pgapt, I'd say.

Regards

Markus Wanner



Attachment

Re: pgdg GDAL version

From
Denis Rouzaud
Date:

On 30. 01. 14 11:56, Markus Wanner wrote:
On 01/25/2014 10:16 PM, Christoph Berg wrote:
The short story is, PGDG apt repository for Debian/Ubuntu PostGIS
2.1 is based on GDAL 1.9,
while UbuntuGIS-unstable and related repos are based on GDAL 1.10
with updated drivers.
I think the easiest way forward might be to recompile postgis on that
mixture of additional packages from different repositories. That will
get you a postgis package compiled against a gdal 1.10 and for all
supported Postgres versions.
there is a repo for precise which hs gdal 1.10, postgis 2.1 and postgres 9.3:

https://launchpad.net/~lwarx/+archive/postgis-pg93-bp

although, I have no idea how they solve this
One way that could work was to look into what the osgeo people have
done to get postgis working.
Is ubuntu-gis even related to osgeo?

Anyways, I don't think there's much to be done to get postgis working.
It should build (and then work) with both, gdal 1.9 and 1.10. However,
the package and linking dependencies need to match with the rest of your
repositories.

In a way, the ubuntu-gis repo just isn't compatible to the pgapt one.
(Nor is osgeo, for that matter.) At least that's my way of thinking
about it.
indeed. But the problem is that ogr2ogr needs to be from gdal1.10 to work properly with postgis 2 (without using the legacy.sql).


Regards

Markus Wanner