Ticket #1731 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

GDAL-GRASS plugin install omission of driver/

Reported by: neteler Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords: grass
Cc: mloskot

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

gdal_grass_pkg.patch Download (0.8 KB) - added by neteler 6 years ago.
Revised again patch for plugin

Change History

Changed 6 years ago by neteler

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

Changed 6 years ago by neteler

Revised again patch for plugin

Changed 6 years ago by warmerdam

  • status changed from new to closed
  • resolution set to fixed

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

Changed 5 years ago by mloskot

  • cc mloskot added
  • keywords grass added
Note: See TracTickets for help on using tickets.