formatting of BoundingBox coordinates (mapows.c)

Martin Kofahl martin.kofahl at UNI-ROSTOCK.DE
Fri Nov 4 07:01:38 EST 2005


Hi,
I have had some troubles with a WMS client connection mapserv last time.
Reason was the formatting of the <BoundingBox SRS=> tag in the
capabilities document - numbers were written as 1.11111e+06. As I
changed to floating (see below), the application worked.

Question: is there a special reason for formatting the BoundingBox as
exponents? Could you change it?


Changes I made in mapows.c:

1206c1206
<   msIO_fprintf(stream, "%s<%s minx=\"%f\" miny=\"%f\" maxx=\"%f\"
maxy=\"%f\" />\n",
---
>   msIO_fprintf(stream, "%s<%s minx=\"%g\" miny=\"%g\" maxx=\"%g\"
maxy=\"%g\" />\n",
1231c1231
<                "%s            minx=\"%f\" miny=\"%f\" maxx=\"%f\"
maxy=\"%f\"",
---
>                "%s            minx=\"%g\" miny=\"%g\" maxx=\"%g\"
maxy=\"%g\"",


Thank you!
Martin


-- 
Universität Rostock
Agrar- und Umweltwissenschaftliche Fakultät
Geodäsie und Geoinformatik

Martin Kofahl

Justus-v.-Liebig Weg 6 / Zimmer 72
18059 Rostock
Tel. +49 381 498 2165
Fax. +49 381 498 2188
martin.kofahl at uni-rostock.de
http://www.auf.uni-rostock.de/
http://www.auf.uni-rostock.de/gg/



More information about the mapserver-dev mailing list