[Qgis-developer] MapCanvas->mapRenderer->distanceArea->bearing Returns a NaN

Martin Dobias wonder.sk at gmail.com
Fri Dec 18 14:47:19 EST 2009


On Tue, Dec 15, 2009 at 6:38 PM, Oscar De Leon <oleongomez at gmail.com> wrote:
> Hello everybody:
>
> I'm working in a simple application that shows the bearing and distance from
> a reference point to the cursor position, but when I'm trying to calcute
> them, distanceArea of MapRenderer returns a NaN
> I've checked the configuration of mapcanvas and every thing looks fine. This
> is a chunk of code where I do the configuration:
>
> [...]

Hi Oscar,

to get some help, you should simplify the code you've posted: the
longer the pasted code is, less likely that someone will take time to
compile it and check for the problem. If you'll be able to isolate
your issue into few statements, there's higher chance you'll get some
advice.

Even better if you translate the code to Python code so that people
can try it directly e.g. from qgis python console...

Regards
Martin


More information about the Qgis-developer mailing list