How do I embed any text onto the map

Daryl Herzmann akrherz at IASTATE.EDU
Fri Dec 2 08:27:38 PST 2005


Hi Steve,

> The problem you'll run into is that inline pixel coordinates are 
> absolute so they really only work with one image size. (except for the 
> UL corner which is always 0,0) The only solution there is to either have 
> 1 mapfile for each image size you need. You could muck with the 
> coordinates at runtime possibly too.
>
> Ideally we'd allow relative pixel coordinates some like:
>
> FEATURE
>  RELATIVETO LR
>  POINTS -50 -50 END
> END
>
> Which would give you a point just inside the lower right-hand corner, 
> but alas it has not been implemented. (not a bad idea and not that hard- 
> I'll file a bug now).

Good idea.  I see you have added this bug:

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1547

I would like to see the use of values that range from 0 to 1 to specify 
the location.  So if you wanted the middle of the image, you would use 0.5 
0.5 .  Perhaps the REALTIVETO could be IMGSIZE or something like that.  I 
have added my comment to the bug...

thanks,
    daryl

-- 
/**
   * Daryl Herzmann (akrherz at iastate.edu)
   * Program Assistant -- Iowa Environmental Mesonet
   * http://mesonet.agron.iastate.edu
   */



More information about the MapServer-users mailing list