[Mapserver-users] problem adding north arrow to map
Charlton Purvis
cpurvis at asg.sc.edu
Wed Jun 23 07:45:24 PDT 2004
Could you try adding
POSTLABELCACHE TRUE
and perhaps an empty STYLE object?
BTW, I use TRANSFORM OFF instead of TRANSFORM FALSE (don't remember
why!).
So something like:
> > LAYER
> > NAME "North Arrow"
> > STATUS DEFAULT
> > TRANSFORM OFF
POSTLABELCACHE TRUE
> > TYPE POINT
> > FEATURE
> > POINTS 250 250 END
> > END
> > CLASS
> > SYMBOL 'northarrow1'
STYLE END
> > END
> > END
> -----Original Message-----
> From: Mark Adams [mailto:markadams at cuestasys.com]
> Sent: Wednesday, June 23, 2004 10:11 AM
> To: mapserver-users at lists.gis.umn.edu
> Subject: RE: [Mapserver-users] problem adding north arrow to map
>
> 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
> >
> >
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list