Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#1731 closed defect (fixed)

GDAL-GRASS plugin install omission of driver/

Reported by: Markus Neteler Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords: grass
Cc: Mateusz Łoskot

Description

Frank,

using recent MapServer for displaying GRASS 6 data, it turned out after strace debugging that GDAL (or MapServer) expect the GRASS drivers in the plugin directory:

[root@localhost cgi-bin]# export REQUEST_METHOD=GET
[root@localhost cgi-bin]# export QUERY_STRING="map=/var/www/html/mapfiles/nc_wake.map"
[root@localhost cgi-bin]# ./mapserv
No such file or directory: Cannot open drivers directory
No such file or directory: Cannot open drivers directory
Content-type: text/html
...

I had to manually copy the GRASS DB drivers to make the plugin happy:

cp -r /home/neteler/grass63/dist.x86_64-unknown-linux-gnu/driver/db /usr/local/share/gdal/grass/driver/
ls -la /usr/local/share/gdal/grass/
total 4
drwxr-xr-x 4 neteler neteler 1024 Aug  1 10:27 ./
drwxr-xr-x 3 neteler neteler 1024 Jul 11 14:42 ../
drwxr-xr-x 3 root    root    1024 Aug  1 10:27 driver/
drwxr-xr-x 2 neteler neteler 1024 Jul 11 18:10 etc/

ls -la /usr/local/share/gdal/grass/driver/
total 3
drwxr-xr-x 3 neteler neteler 1024 Aug  1 10:31 ./
drwxr-xr-x 4 neteler neteler 1024 Aug  1 10:31 ../
drwxr-xr-x 2 neteler neteler 1024 Aug  1 10:31 db/

Patch for gdal/frmts/grass/pkg/Makefile.in attached. Then this works.

Markus

Attachments (1)

gdal_grass_pkg.patch (825 bytes ) - added by Markus Neteler 17 years ago.
Revised again patch for plugin

Download all attachments as: .zip

Change History (4)

comment:1 by Markus Neteler, 17 years ago

Frank,

additionally, the file datumtransform.table seems to be missing in the install routine (desired by mapserver):

strace /var/www/cgi-bin/mapserv
...
open("/usr/local/share/gdal/grass//etc/ellipse.table", O_RDONLY) = 12
fstat(12, {st_mode=S_IFREG|0644, st_size=5783, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9af04000
read(12, "# this file contains ellipsoid p"..., 4096) = 4096
read(12, "00 \tf=1/298.30\n# Fischer 1968\nfs"..., 4096) = 1687
read(12, "", 4096)                      = 0
open("/usr/local/share/gdal/grass//etc/datumtransform.table", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "Unable to initialise PROJ.4 with"..., 63Unable to initialise PROJ.4 with the following parameter list:
) = 63
...

I try hard to get Mapserver-GDAL/OGR-GRASS running again... (first time with plugin). Patch attached.

Best regards,

Markus

by Markus Neteler, 17 years ago

Attachment: gdal_grass_pkg.patch added

Revised again patch for plugin

comment:2 by warmerdam, 17 years ago

Resolution: fixed
Status: newclosed

Patch applied in trunk. gdal-grass 1.4.3 plugin version issued as:

http://download.osgeo.org/gdal/gdal-grass-1.4.3.tar.gz

comment:3 by Mateusz Łoskot, 16 years ago

Cc: Mateusz Łoskot added
Keywords: grass added
Note: See TracTickets for help on using tickets.