Hi Carlos, Using C-style formatting string, I can only use %g, %f, etc., but it is applied to Degrees component.
What I need is something like "%gº %3.2f", in whitch %gº is for the Degrees, and %3.2f for the decimal Minutes. Unfortunately, LABELFORMAT "DDMM" gives only the integer part of Degrees and Minutes. Thank you very much. Best regards, Pedro 2017-03-08 2:46 GMT+00:00 Carlos Ruiz <[email protected]>: > Well, current Mapserver documentation guide says the following: > > LABELFORMAT [DD|DDMM|DDMMSS|C format string] > Format of the label. “DD” for degrees, “DDMM” for degrees minutes, and > “DDMMSS” for degrees, minutes, seconds. *A C-style formatting string is > also allowed, such as “%g°” to show decimal degrees with a degree symbol. > The default is decimal display of whatever SRS you’re rendering the GRID > with.* > This sounds like that is what you are looking for. > > Cheers > > ------------------------------ > *From:* Pedro Venâncio <[email protected]> > *To:* [email protected] > *Sent:* Tuesday, March 7, 2017 11:42 AM > *Subject:* [mapserver-users] Mapserver GRID in degrees decimal minutes > format > > Hi all, > > I would like to use a GRID [0], but in degrees decimal minutes > LABELFORMAT. Something like: > 40 46.817 -7 4.327 > > Is this somehow possible in actual Mapserver version? > > Thank you very much! > > Best regards, > Pedro Venâncio > > [0] http://mapserver.org/mapfile/grid.html > > _______________________________________________ > mapserver-users mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/mapserver-users > >
_______________________________________________ mapserver-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
