[mapserver-users] graticule label position

Shorthouse, David dshorthouse at eol.org
Thu Oct 6 08:20:51 EDT 2011


After a rather harrowing experience getting 6.0.1 compiled (never
could figure out cairo & I do need svg so I went back to 5.6.7), I
re-examined my graticule label positions and sadly, saw no difference.
Labels still do not appear on the image edges. They do of course
appear on the edges when the layer is not reprojected. But, when the
map is reprojected, grid layer labels get slapped around. Here's
another spectacular example when the grid layer is epsg:4326 and the
map's projection is epsg:102017: http://www.simplemappr.net/?map=1111.
I'm not sure if labels on the edges would actually help with this
projection unless latitudes and longitudes labels could also be
clearly differentiated.

Dave

On Wed, Oct 5, 2011 at 12:34 PM, Bob Basques
<Bob.Basques at ci.stpaul.mn.us> wrote:
>
> I can't find my test case at the moment, but Steve Lime did address them in later versions of MapServer.
>
> bobb
>
>
> >>> Brent Fraser <bfraser at geoanalytic.com> wrote:
>
> I doubt if it is fixed.  Some time ago I did some label positioning
> fixes on my local code version, so I'll test with that.
>
> I just thought your PROJECTION, EXTENT, and GRID layer def would get me
> started...
>
> Best Regards,
> Brent Fraser
>
>
> On 10/5/2011 10:28 AM, Shorthouse, David wrote:
> > To be clear, I'm using PHP-mapscript (no mapfile at all) and MapServer
> > 5.6.6. Was this known behavior and since fixed in 6.0.x? If so, I'm
> > all over that!
> >
> > Dave
> >
> > On Wed, Oct 5, 2011 at 12:18 PM, Brent Fraser<bfraser at geoanalytic.com>  wrote:
> >> Ok, that's a bug.  Can you send me your map file?
> >>
> >> Best Regards,
> >> Brent Fraser
> >>
> >>
> >> On 10/5/2011 10:15 AM, Shorthouse, David wrote:
> >>> Brent,
> >>>
> >>> Tics are not so much a big deal. If I understand correctly, something
> >>> like this cannot be avoided?
> >>>
> >>> http://www.simplemappr.net/?map=1110
> >>>
> >>> What I'd rather have is the labels positioned around the outside edge
> >>> of the image (i.e. horizontally and vertically) rather than arcing and
> >>> disappearing.
> >>>
> >>> Thanks,
> >>>
> >>> Dave
> >>>
> >>> On Wed, Oct 5, 2011 at 11:53 AM, Brent Fraser<bfraser at geoanalytic.com>
> >>>   wrote:
> >>>> David,
> >>>>
> >>>>   If you mean a specific number of pixels from your neat line, the answer
> >>>> is
> >>>> no.  Currently the graticule logic fixes the location from the edge of
> >>>> the
> >>>> image (i.e. the other side of the label).  And it doesn't do tics.
> >>>>
> >>>> Best Regards,
> >>>> Brent Fraser
> >>>>
> >>>>
> >>>> On 10/5/2011 8:44 AM, Shorthouse, David wrote:
> >>>>> Folks,
> >>>>>
> >>>>> Is it possible to fix the position of graticule labels around the
> >>>>> outside edge of a map in the face of on-the-fly reprojections of a shp
> >>>>> file? Following a hint in a very old post in the archives, I managed
> >>>>> to make fixed margin around the outside edge of a map where I hoped I
> >>>>> could place graticule labels, but unless I can actually fix their
> >>>>> position, there's not much I can do. This is an example of what I am
> >>>>> trying to do:
> >>>>> http://www.geo.wvu.edu/~mfinkenbinder/Geol%20321/UTM_Zones.bmp
> >>>>>
> >>>>> Thanks,
> >>>>>
> >>>>> Dave
> >>>>> _______________________________________________
> >>>>> mapserver-users mailing list
> >>>>> mapserver-users at lists.osgeo.org
> >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >>>>>
> >>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list