perl mapscript: Can't locate swig_numres.al
Joe Bussell
joe at OTSYS.COM
Wed Jul 27 00:26:01 PDT 2005
my $numResults = $layerObj->getNumResults();
:)
Joe Bussell
On Time Systems
Jachym Cepicky wrote:
>Hallo,
>
>I use mapserver and perl-mapscript from debian package, version 4.4.1-2.
>
>I can not query layers by point, I try to approach by Mapscript Query
>HOWTO (http://zcologia.com/mapserver/querying-howto):
>
>
>$layerObj->queryByPoint($mapObj,$pntObj,$mapscript::MS_SINGLE,0);
>
>my $results = $layerObj->getResult(0);
>
>if ($results) {
> for ($i = 0; $i < $results->{numresults}; $i++) {
>
> my $result = $results->getResult($i);
> my $feature=$layerObj->getFeature($result->{shapeindex},$result->{tileindex});
>
> }
>}
>
>But I get following message from my webserver:
>
>Can't locate auto/mapscript/resultCacheMemberObj/swig_numres.al in @INC (@INC contains: /var/www/perl /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/apache/ /etc/apache/lib/perl) at /usr/lib/perl5/mapscript.pm line 29
>
>What am I doing wrong?
>
>Is there some other howto, which would show me, what to do?
>
>Thank you for any help
>
>Jachym
>
>
More information about the MapServer-users
mailing list