problem with units in mapserver

Frank Warmerdam warmerdam at POBOX.COM
Tue Nov 14 13:45:23 PST 2006


Ben Tuttle wrote:
> Hi-
> I have a a near global 30 arcsecond dataset I would like to serve
> through WMS and WCS. However, it seems that no matter what I try it is
> being dealt with in degrees (0.00833333) and not seconds. Is there a
> way to specify seconds in the mapfile are use gdal to do this? I
> notice in the mapfile reference that seconds is not an option for
> Units. The problem I am having with using degrees is serious rounding
> errors in the pixel sizes of the returned images. It seems that
> mapserver is doing a string to float conversion on 0.0833333 and then
> doing math with that float and this is causing the output image to
> have incorrect pixel sizes. It seems that if I could use seconds
> (which would mean I'd have a round number for my units instead of a
> repeating decimal) that this problem would be solved. I haven't found
> a way to do this though.

Ben,

There is no way to operate in arcseconds with mapserver - sorry.

I'd be interested in knowing more about what is getting rounded
improperly, and how you are specifying the values.  Are you using
a world file?  Is it the DescribeCoverage that is coming back
rounded improperly?

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the MapServer-users mailing list