[mapserver-users] featureObj in mapscript
Walt Lin
joemayfair at usa.net
Sun Jan 20 21:39:46 PST 2002
Hi, I have a question about generating a new featureObj and using it in
mapscript (mapserver 3.3). I want to recreate this through mapscript:
FEATURE
POINTS 620 277 END
TEXT 'some text'
END
I want to do this through mapscript because I want the coordinates in
the POINTS to be dynamic. I can do this fine:
my $feature = new featureObj;
$feature->{text} = "some text";
but when i try any of these, mapscript just hangs until i kill it.
$feature->add("620 277");
$feature->add("POINTS 620 277 END");
$feature->add("620,277");
what is the correct way to do this? (and no, i cannot set
$feature->{points}). It seems like the documentation is lacking here.
Thanks,
Walt
More information about the MapServer-users
mailing list