[mapserver-users] KML as Outputformat returns incorrect coordinates

Yewondwossen Assefa yassefa at dmsolutions.ca
Wed Jul 6 12:14:29 EDT 2011


Hi,

I think this bug is happening because of the fact that internally 
MapSever "plays" with the projection when answering to  non-square 
(distorted) wms requests. I think we end up with pixel coordinates, 
instead of ground coordinates at the output stage.
There was a similar issue I corrected a while ago 
(http://trac.osgeo.org/mapserver/ticket/3840).
I will use the test case provided in 
http://trac.osgeo.org/mapserver/ticket/3928 to correct this and update 
the bug.

best regards,


On 06/07/2011 11:55 AM, Joe Franklin wrote:
> I had to adjust the height parameter to make it work when downloading as KML:
>
> height = ((maxy-miny)/(maxx-minx))*width
>
> It still seems like a bug, but does this help?  I guess the WIDTH and HEIGHT parameters don't make much sense when outputting as KML.
>
>
>
> ----- Original Message -----
> From: Jeff McKenna<jmckenna at gatewaygeomatics.com>
> To: mapserver-users<mapserver-users at lists.osgeo.org>
> Cc:
> Sent: Wednesday, July 6, 2011 8:00 AM
> Subject: Re: [mapserver-users] KML as Outputformat returns incorrect coordinates
>
> You might be hitting the same issue that I reported a few weeks ago
> (http://trac.osgeo.org/mapserver/ticket/3928).
>
> -jeff
>


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------




More information about the mapserver-users mailing list