[mapserver-users] problem with mapscript/php
Lowell Filak
lfilak at medinaco.org
Thu Apr 25 13:34:06 PDT 2002
What is the output from:
perl dump.pl -file=dash | head -10
?
Lowell F.
The following message was sent by "Michel M. dos Santos" <michel at omnisystem.com.br> on Thu, 25 Apr 2002 14:34:56 -0300.
>
>
> Can anyone help me ?
>
> I'm get crazy with this !!!
>
> --
> []'s
> Michel M. dos Santos
>
>
> Em Qua 24 Abr 2002 16:08, Michel M. dos Santos escreveu:
> > Hi,
> >
> > I'm with a problem with mapscript php. I try putting a shape line, but it
> > doesn't draw. If I change the type to POINT, the points are draw, when I
> > put the type to LINE , the line aren't draw.
> >
> > Can anyone help me.
> >
> > Map file:
> >
> > ##################################### OK dash
> > LAYER #dash
> >
> > CLASS
> > NAME "dash"
> > COLOR 0 0 255
> > SIZE 5
> > SYMBOL "dash-long"
> > END
> >
> > NAME "dash"
> > STATUS ON
> > TYPE LINE <--- if I change to POINT , the points are draw.
> >
> > END #dash
> > #################################### OK dash
> >
> > code php:
> >
> > -----------8<--------------------------------------
> > $figura = ms_newShapeObj(MS_SHAPE_LINE); <-- shape type LINE
> >
> > for($i=0;$i<$N;$i++){
> >
> > $ponto_obj = ms_newLineObj(); <- object point
> > $ponto_obj->add($ponto[$i]); <- get the point
> > $figura->add($ponto_obj); <- put in the shape
> > }
> >
> > $layer = $map->getLayerByName("dash"); <- get the layer to put shape
> > $layer->addFeature($figura); <- put shape in layer
> >
> > ----------8<--------------------------------------
> >
> > --
> > []'s
> > Michel M. dos Santos
More information about the MapServer-users
mailing list