Mapscript - Perl - Query - shapeObj
Aaron Craig
mercutio at POBOX.COM
Tue Jan 18 06:17:28 PST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The values property in the Perl implementation of a shapeObj is a scalar
reference.
I was hoping that it would be a hashref to my database columns for the
record returned by a layerObj->queryByPoint() call, similar to what it
looks like PHP does.
My output looks like:
<snipping code>
my $res = $lyr->getResult(0);
my $shp = mapscript::shapeObj->new($mapscript::MS_SHAPE_POLYGON);
$lyr->getShape($shp, $res->{tileindex}, $res->{shapeindex});
print "values: $shp->{values}\n";
values: _p_p_char=SCALAR(0xa3e7d74)
In the end I need to get an id value out of the database from my query.
~ Is there a standard way of doing this?
Thanks again for the help.
- --
Aaron Craig
mercutio at pobox.com
===========================================================
Get Firefox!
http://www.spreadfirefox.com/?q=affiliates&id=0&t=1
===========================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB7Rp4oyEQRcU83p4RAjRvAJ9V6c8FF483ASwWTAbbs8aInmhSIQCffzqn
gWOSxptVI9fD4VBsqt4Fp9s=
=YAU5
-----END PGP SIGNATURE-----
More information about the MapServer-users
mailing list