[Mapserver-users] Can't locate object method "TIEHASH"

Lowell Filak lfilak at medinaco.org
Fri May 28 08:12:07 EDT 2004


It is best to use Perl's XBase module for querying the DBF files.
I'm pretty sure that isn't even documented on purpose - I'll have to
check the doc.

Lowell

The following message was sent by Agneta Schick
<schick at sdac.hannover.bgr.de> on Fri, 28 May 2004 11:54:04 +0200 (MEST).

> Hello mapserver-users,
> 
> I've searched the mail archive and found 2 messages on this topic,
> both were, however, unanswered.
> 
> So I'll try again...
> 
> Platform:
> 	MapServer 4.0.1
> 	solaris 9
> 	Perl 5.8.3
> 
> I want to test an application querying shape files.
> My perl mapscript code
> ...
>   $layer->queryByPoint($tmp_map,$pnt,$mapscript::MS_SINGLE,1000);
>   my $res = $layer->getResult(0);
>   $layer->open();
>   my $shape=new mapscript::shapeObj($layer->{type});
>   my $shape_index = $layer->getShape($shape,-1,$res->{shapeindex});
>   my $table = 
>
mapscript::msDBFOpen("/space/b3sn13/webdb/htdocs/ermos/data/usgs.dbf","r+");
> ....
> is terminated with 
> Can't locate object method "TIEHASH" via package "_DBFHandle".
> 
> Is this a mapscript problem or is something missing in the installation?
> 
> (I tried the same perl script on solaris 8, mapserver 3.6.5, perl 5.6
> and got the same error).
> 
> Thanks,
> Agneta Schick
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     Agneta Schick
>     
>     Bundesanstalt fuer Geowissenschaften und Rohstoffe
>     Federal Institute for Geosciences and Natural Resources
>     Stilleweg 2
>     D- 30655 Hannover                   Tel.: +49 511 643 3136
>     GERMANY                             FAX.: +49 511 643 3663
> 
>     schick at sdac.hannover.bgr.de         http://www.seismologie.bgr.de
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list