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® 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® 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