Well, actually, I was getting some troubles with the slider control. I was 
obtaining a result from the returnMaxScale function in initmap.php around '118' 
using degree units and the PMap.dgeo_c value wasn't 111120 as the application 
expected.

I see in the map documentation [1] that nauticalmiles is in the place where dd 
was, i.e. the index 5. So, I changed the value to 6 and the slider works well. 
I infer the dd index is now 6.

Regards.

Germán

----------------------------
[1] http://mapserver.org/en/mapfile/map.html

--


 -------------
  |\__
(:>__)( 
  |/ 

Soluciones Geoinformáticas Libre
http://geotux.tuxfamily.org


 

-----Original Message-----
From: Armin Burger <armin.bur...@gmail.com>
To: geotux_tux...@linuxmail.org
Cc: pmapper-users@lists.sourceforge.net
Sent: Mon, Apr 5, 2010 4:21 pm
Subject: Re: [pmapper-users] dd units in UMN MapServer 5.6


Thanks, I will update it to use the constant value instead of the index 

value, so there should not be any confusion any more then. Though to me 

it looks like MS_DD still corresponds to index 5, and nautical miles to 

7...



armin



On 04/04/2010 21:11, geotux_tux...@linuxmail.org wrote:

>

>   Hi Armin.

>

> I just saw that units in UMN MapServer 5.6 have changed [1]. It was 
> introduced 

a 'nauticalmiles' item with code 5, which belonged to decimal degrees before. 

The initmap.php file in incphp/init/ uses this code (I don't know if it's used 

in other files), so,  please change the lines:

>

> 689:

>       $roundFact = ($map->units != 5 ? 0 : 6);

>       to: $roundFact = ($map->units != 6 ? 0 : 6);

>

> 733:

>       $y_dgeo_m = ($this->mapUnits == 5 ? $y_dgeo * 111120 : $y_dgeo);

>       to:  $y_dgeo_m = ($this->mapUnits == 6 ? $y_dgeo * 111120 : $y_dgeo);

>

> and 752:

>       $dgeo['c'] = $this->map->units == 5 ? 111120 : 1;

>       to: $dgeo['c'] = $this->map->units == 6 ? 111120 : 1;

>

>

> Regards.

>

> Germán

>

> -----------------------

> [1] http://mapserver.org/mapfile/map.html

>

> --

> -----------

>    |\__

> (:>__)(

>    |/

>

> Soluciones Geoinformáticas Libres

> http://geotux.tuxfamily.org/

>

>

>

>

>

>

> ------------------------------------------------------------------------------

> Download Intel&#174; Parallel Studio Eval

> Try the new software tools for yourself. Speed compiling, find bugs

> proactively, and fine-tune applications for parallel performance.

> See why Intel Parallel Studio got high marks during beta.

> http://p.sf.net/sfu/intel-sw-dev

> _______________________________________________

> pmapper-users mailing list

> pmapper-users@lists.sourceforge.net

> https://lists.sourceforge.net/lists/listinfo/pmapper-users





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

Download Intel&#174; Parallel Studio Eval

Try the new software tools for yourself. Speed compiling, find bugs

proactively, and fine-tune applications for parallel performance.

See why Intel Parallel Studio got high marks during beta.

http://p.sf.net/sfu/intel-sw-dev

_______________________________________________

pmapper-users mailing list

pmapper-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/pmapper-users

 
 
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to