[GRASS-user] another database question grass 6.4.3

Markus Metz markus.metz.giswork at gmail.com
Mon Apr 8 05:58:11 PDT 2013


On Mon, Apr 8, 2013 at 9:40 AM, Moritz Lennert
<mlennert at club.worldonline.be> wrote:
> On 08/04/13 08:14, Hamish wrote:
>>
>> Shaun wrote:
>>>
>>> I have access to a machine running
>>> grass 6.4.3.  I developed code using 6.4.2 which
>>> includes using the function v.out.org to export a vector
>>> file to a postgres database.  However, in the new
>>> version, it seems that the PostgreSQL driver isn't
>>> included.  Here's the relevant part of the output:
>>>
>>> ERROR: value<PostgreSQL>  out of range for parameter<format>
>>
>> ...
>>>
>>> Do I need to install something additional or was this left
>>> out intentionally?
>>
>>
>> The inclusion or exclusion of support for different DBs is
>> determined at build time. The good news is that the code you
>> wrote for 6.4.2 should work for all future 6.4.x without
>> needing any changes. The bad news is that whoever built 6.4.3
>> on that system will have to rebuild/replace it with a version
>> of 6.4.3(rc/svn) that was built with support for the Postgres
>> optional extra.
>
>
> I always thought that the inclusion of specific drivers in v.*.ogr and
> r.*.gdal depends on the compilation of GDAL/OGR, not on the compilation of
> GRASS.

Yes, in this case OGR needs to be recompiled with PostgreSQL support.
There is no need to recompile or reinstall GRASS.

Markus M
>
> @Shaun: what does 'ogrinfo --formats' show ?
>
> Moritz
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list