[Mapserver-users] drawing lines with mapscript

Jeff Hoffmann jeff at propertykey.com
Tue Mar 30 06:56:52 PST 2004


Eric Bridger wrote:
> On Mon, 2004-03-29 at 16:24, Jeff Hoffmann wrote:
> 
>>I'm trying to create lines programmatically & draw them using mapscript, 
>>but I just can't seem to get any output.  It doesn't throw any errors, 
>>but I don't see any output, either.   
>>$layer = $map->getLayerByName('line_layer');
>>$layer->{status} = 1;
>>$class = $layer->getClass(0);
>>$class->setText($layer,"LINE");
>>my $shape = new mapscript::shapeObj($mapscript::MS_SHAPE_LINE);
>>$shape->add($line);
> 
> 
> Just a guess, but you could try $shape->setBounds() here.
> 
> 
>>$shape->draw($map, $layer, $img);

That didn't change anything.  Does anybody at least know if this looks 
like it should be working?  Are there any examples of code that does 
this sort of thing?

-- 

Jeff Hoffmann
PropertyKey.com



More information about the MapServer-users mailing list