GRID Label format

G. Madrigal mapas at ADDAX.CC
Mon Nov 7 20:52:13 EST 2005


Hi,

I am adding GRID layer, I want the grid labels to be displayed in meters.
The map is in meters and its projection is epsg:9803, defined by me as:
+proj=lcc -f '%.4f' +lat_0=10.46666667 +lat_1=9.93333333 +lat_2=11 +ellps=clrk66
+x_0=500000 +y_0=271820.522 +lon_0=-84.3333333

So I am using the same projection for the grid to get meter units in the labels,
so far it seems to be working fine except for a little detail: Grid labels are
being displayed using scientific notation:
so instead of getting 500000, I am getting 5e+05. If I use LABELFORMAT "DDMM",
then I get the labels I want but with two extra zeros at the end (minutes).

Is there a way to format the label ouput to get only meters in regular notation?

P.D:

My grid definition is:

LAYER
 NAME "GRID"
 TRANSPARENCY 50
 PROJECTION
  "init=epsg:9803"
 END
 TYPE LINE
 STATUS DEFAULT
 CLASS
  COLOR 0 0 0
  LABEL
   TYPE BITMAP
   SIZE MEDIUM
   COLOR 0 0 0
   OUTLINECOLOR 255 255 255
  END
 END
 GRID
  MINARCS 2
  MAXARCS 4
  MINSUBDIVIDE 1
  MAXSUBDIVIDE 1
  #LABELFORMAT "DDMM"
 END
END


Regards,

-- 
---------------------------------------------------------------------
G Madrigal
--------------------------------------------------------------------

----------------------------------------------------------------
This message was sent using Addax Software Development's Mail Services.



More information about the mapserver-users mailing list