Perl Mapscript 4.4 Issues
Aaron Craig
mercutio at POBOX.COM
Tue Jun 21 04:58:14 PDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Some perl variables that might be interesting to print out:
$]
~ The version + patchlevel / 1000 of the Perl interpreter.
$^V
~ The revision, version, and subversion of the Perl interpreter,
represented as a string composed of characters with those ordinals.
@INC
The array @INC contains the list of places that the do EXPR, require,
or use constructs look for their library files.
These should at least tell you that you're running from the right perl
installation.
Ellis Robin (Bundaberg) wrote:
| Thanks for all the assistance thus far. Is there a script available
that outputs the version & associated compilation of Perl Mapscript
being hit by different processes? I'm getting Perl Mapscript working OK
straight through a browser and Apache cgi, but it's my ArcIMS Emulation
stuff giving me the error outlined below. I'm just wondering if somehow
I've got processes pointing at 2 different installations.
|
| Thanks
|
| Rob
|
|
|
| -----Original Message-----
| From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
| Behalf Of Lowell Filak
| Sent: Monday, 20 June 2005 10:39 PM
| To: MAPSERVER-USERS at LISTS.UMN.EDU
| Subject: Re: [UMN_MAPSERVER-USERS] Perl Mapscript 4.4 Issues
|
|
| The following message was sent by Rob Ellis <robin.ellis at NRM.QLD.GOV.AU>
| on Sun, 19 Jun 2005 20:57:19 -0500.
|
|
|>On Mon, 25 Apr 2005 08:18:22 -0400, Lowell Filak <lfilak at MEDINACO.ORG>
|>wrote:
|>
|>
|>>The following message was sent by Stephen Woodbridge
|>><woodbri at SWOODBRIDGE.COM> on Sun, 24 Apr 2005 23:23:26 -0400.
|>>
|>>
|>>>Hi all,
|>>>
|>>>I'm looking at the SWIGMapScript doc and have run into a few problems.
|>>>
|>>>$mapObj->setExtent($minx, $miny, $maxx, $maxy);
|>>>
|>>>and throws an error:
|>>>
|>>>Can't locate auto/mapscript/mapObj/setExtent.al in @INC (@INC contains:
|>>>/etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4
|>>>/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
|>>>/usr/local/lib/site_perl /usr/local/lib/perl/5.8.0
|>>>/usr/local/share/perl/5.8.0 .) at index.cgi line 255
|>>>
|>>>Also looking at the document it looks like there is an
|>>>$layerObj->setExtent(...) which doesn't seem to be correct.
|>>>
|>>>The classObj doc says it "Provides access to all class parameters
|>>>(color, symbol, label, & etc...)." but there is no doc to indicate
|
| there
|
|>>>is a symbol property, nor is there any of doc/properties for color,
|>>>overlaycolor, size, overlaysize. I think these were moved to styleObjs
|>>>so it might be appropriate to comment on that.
|>>
|>>Steve,
|>>
|>>What version are you using?
|>>I just double checked and there is most certainly a 'setExtent' for the
|>>mapObj in the mapscript.pm.
|>>You are correct on the classObj not. It is an old note that needs to be
|>>deleted. Sorry for the confusion.
|>>
|>>Lowell
|>
|>Sorry to take you guys back to something that you've allready sorted out,
|>but I'm a little confused. I've upgraded to MS4.4.2 but am getting the
|>following message when trying to use Perl Mapscript, and from the previous
|>messages it looks as though I might just need to alter mapscript.pm:
|>
|>Can't locate auto/mapscript/classObj/swig_styles.al
|>
|>Am I right in interpreting the previous emails when I assume that I
|
| need to
|
|>remove refernces to classObj in mapscript.pm, or am I way off?
|
|
| Rob,
|
| I usually see this error after upgrading and trying to reference a
| member or method that no longer exists.
|>From the error it appears the code may be trying to do something like
| '$variable = $class->{styles}' and styles does not exist under class in
| 4.4 - you're upgrading from 4.0 is my guess.?
| The reply to Steve had nothing to do with alterring mapscript.pm but
| rather that the docs had/have a typo.
|
| Lowell
|
|
| ************************************************************************
| The information in this e-mail together with any attachments is
| intended only for the person or entity to which it is addressed
| and may contain confidential and/or privileged material.
| Any form of review, disclosure, modification, distribution
| and/or publication of this e-mail message is prohibited.
| If you have received this message in error, you are asked to
| inform the sender as quickly as possible and delete this message
| and any copies of this message from your computer and/or your
| computer system network.
| ************************************************************************
|
|
|
|
- --
Aaron Craig
mercutio at pobox.com
===========================================================
Get Firefox!
http://www.spreadfirefox.com/?q=affiliates&id=0&t=1
===========================================================
- -=-=-
If you prick us do we not bleed? If you tickle us do we not laugh?
If you poison us do we not die? And if you wrong us, shall we not
revenge? --The Merchant of Venice, III:1
- -=-=-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows 2000)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCuADWoyEQRcU83p4RAtIeAJ0dxFXKnfBNMRf5hGXR6XeaLFGLcwCfb/qH
KgQv2Gv4jwiPF/UGpKRCCvQ=
=yjH1
-----END PGP SIGNATURE-----
More information about the MapServer-users
mailing list