[Mapserver-users] problem adding north arrow to map

Mark Adams markadams at cuestasys.com
Wed Jun 23 07:10:34 PDT 2004


I've tried having the symbol in a symbol file, as well as in the map
file; same result. Executing mapserv -v indicates support for GIF output
(I'm using the standard windows binary PHP mapscript 4.2 package), and
as I said I've had success displaying the symbol with regular layers,
but not with this feature layer. I do have it as the last layer in the
map file. I've tried removing all other layers from the map file except
the north arrow feature layer, it still doesn't show.

For what it's worth, here's a further oddity. The layer shows in my HTML
legend if I set status to ON - that is to say the layer *name* shows in
the legend, but not the symbol. Again, if I use this symbol in a
different layer (I used it on a line layer for example), it displays on
the map, and in the legend.

------------------------------
Mark Adams
Business & Systems Analyst
Cuesta Systems Inc.
5230 South Service Road
Burlington, ON L7L 5K2
Phone: 905-333-4544 x14
Fax: 905-333-0455
Email: markadams at cuestasys.com
 

-----Original Message-----
From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] 
Sent: Wednesday, June 23, 2004 9:51 AM
To: markadams at cuestasys.com
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] problem adding north arrow to map

The symbol probably should be in the symbol.sym file
Is this the last layer in the mapfile? if not try putting it last so it 
gets drawn on top of the other layers.
Remember that 0,0 is upper left when TRANSFORM FALSE is set so the 
symbol should be placed 250 to the right and 250 down from the top.

-Steve W.

Mark Adams wrote:

> Hi all,
>  
> I’m hoping someone can point out what might be going wrong here.
> Following the instructions in the wiki, I am trying to add a north
arrow
> to may map. I’ve got a basic north arrow image (northarrow1.gif), I’ve
> added a pixmap symbol referencing it, and I’ve added a layer to the
map.
> However, the GIF never shows. I’ve tried this in both a mapscript app
> and the basic Itasca demo, same result. I know there is nothing wrong
> with the GIF or symbol definition, as it shows fine if I use this
symbol
> on a “regular” layer rather than a feature layer. Any ideas? Have I
> defined the feature layer wrongly? Here are my symbol def and layer
def:
>  
>   SYMBOL #North Arrow
>     NAME "northarrow1"
>     TYPE pixmap
>     IMAGE "northarrow1.gif"
>   END
>  
>     LAYER
>         NAME "North Arrow"
>         STATUS DEFAULT
>         TRANSFORM FALSE
>         TYPE POINT
>         FEATURE
>           POINTS 250 250 END
>         END
>         CLASS
>             SYMBOL 'northarrow1'
>         END
>   END
>  
> Thanks in advance.
> ------------------------------
> Mark Adams
> Business & Systems Analyst
> Cuesta Systems Inc.
> 5230 South Service Road
> Burlington, ON L7L 5K2
> Phone: 905-333-4544 x14
> Fax: 905-333-0455
> Email: markadams at cuestasys.com
>  
> 





More information about the MapServer-users mailing list