[mapserver-users] MapServer GRID object.

Brent Fraser bfraser at geoanalytic.com
Wed Mar 5 13:16:19 EST 2008


Bob,

  For spherical unit (Degrees-minutes-seconds) labels you
could use:

LABELFORMAT "DDMMSS"

  or for cartesian units (e.g. meters) an un-documented
feature(!) of any C-style formatting string:

LABELFORMAT "%7.0f m"

Brent Fraser
GeoAnalytic Inc.
Calgary, Alberta
----- Original Message ----- 
From: "Bob Basques" <Bob.Basques at ci.stpaul.mn.us>
To: "Brent Fraser" <bfraser at geoanalytic.com>;
<mapserver-users at lists.osgeo.org>
Sent: Wednesday, March 05, 2008 11:01 AM
Subject: Re: [mapserver-users] MapServer GRID object.


Oops, yup, you're right. LABELFORMAT.  Anyway, how to I get
rid of the Scientific notation for the labels?  There
doesn't seem to be a method for this.

bobb



>>> "Brent Fraser" <bfraser at geoanalytic.com> wrote:
Bob,

  I take it you mean LABELFORMAT (not FORMATOPTION)?  From
http://mapserver.gis.umn.edu/docs/reference/mapfile/grid:

LABELFORMAT [DD|DDMM|DDMMSS]
Format of the label. "DD" for degrees, "DDMM" for degrees
minutes, and "DDMMSS" for degrees, minutes, seconds. The
default is decimal display of whatever SRS you're rendering
the GRID with.

Brent Fraser
GeoAnalytic Inc.
Calgary, Alberta

----- Original Message ----- 
From: "Bob Basques" <Bob.Basques at ci.stpaul.mn.us>
To: <mapserver-users at lists.osgeo.org>
Sent: Wednesday, March 05, 2008 9:18 AM
Subject: [mapserver-users] MapServer GRID object.


All,

I got the GRID object to work and display in this interface:

http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml

I still need to know more info about the function though, is
FORMATOPTION the only method of changing the labeling?  I
would like to get rid of the Scientific notaion that it uses
by default and use LAT/LON instead.

Specifically I'm trying to get it to label using the US
National Grid.  Anyone had any experience with this?  I have
a couple of other experimental layers in the interface
referenced above that are sourced with Polygons,and Polyline
SHP files as well as via the MapServer Grid Object.  Im
shooting for the GRID labeling method as the preferred
output at this point.

Thanks for any pointers.

bobb






------------------------------------------------------------
--------------------


> _______________________________________________
> 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