[Chameleon] Nautical Miles units

Paul Spencer pspencer at dmsolutions.ca
Tue Nov 15 13:53:43 EST 2005


As far as I know, MapServer does not have support for Nautical Miles  
although you might be able to fake it through a specific projection?   
Best to ask on the mapserver list I think.

Cheers

Paul

On 15-Nov-05, at 11:15 AM, Jan Jansen wrote:

> Hi Jesse,
>
> here's the code (http://www.skullsite.com/download/rulerNM.zip),  
> widget is called 'rulerNM' and 'requires' some adjustments in  
> NavTool.dbf. (Without the adjustments in NavTool.dbf it works also  
> by the way, quick and dirty)
> It doesn't work in JSAPI mode, if you want it to, you will need to  
> modify "ConvertUnit" in cwcjsapi.js.
>
> Copy the dir rulerNM to your widgets dir, if you put in  
> nav_enhanced.html the following lines..
>
> <td><cwc2 type="RulerNM" image="icons/icon_ruler.png"
> visible="true" styleresource="NavButtons" imagetip="Measure Distance"
> imagewidth="24" imageheight="24" toolset="Navigation" units="Nautical
> Miles">
>               <image state="normal"/>
>               <image state="selected"/>
>               <image state="hover"/>
>             </cwc2>
> </td>
>
> .. it will work (remove the normal ruler code in  
> nav_enhanced.html , because they bite each-other  :)
>
> Cheers,
>
> Jan
>
> ----- Original Message ----- From: "Jesse Cleary"  
> <jcleary at email.unc.edu>
> To: "Jan Jansen" <jansen at nieuwland.nl>
> Cc: <chameleon at lists.maptools.org>
> Sent: Monday, November 14, 2005 5:51 PM
> Subject: Re: [Chameleon] Nautical Miles units
>
>
>> Hi Jan
>>
>> Not a fix for your problem (though I'm interested in the  
>> solution), but wondering if you would share your code for enabling  
>> nautical miles using the ruler widget.  Thanks!
>>
>> Jesse
>>
>>
>>
>> Jan Jansen wrote:
>>
>>> Hello list,
>>>  we are currently working on an application that requires map  
>>> units to be displayed in Nautical Miles.
>>> We made some adjustments to Chameleon to have the ruler widget  
>>> support the new units, this all works fine.
>>>  No the next problem is the scalebar, which should also support  
>>> Nautical Miles, but this seems to be a lot harder. Is it possible  
>>> to do this (workaround), without recompiling the Mapserver  
>>> sourcecode itself?
>>>  (Mapserver code:
>>> if((layer->sizeunits = getSymbol(7,  
>>> MS_INCHES,MS_FEET,MS_MILES,MS_METERS,MS_KILOMETERS,MS_DD,MS_PIXELS)) 
>>>  == -1) return(-1);
>>>        break;
>>> )
>>>  Jan
>>>
>>> -------------------------------------------------------------------- 
>>> ----
>>>
>>> _______________________________________________
>>> Chameleon mailing list
>>> Chameleon at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/chameleon
>>>
>>
>> -- 
>> Jesse Cleary Department of Marine Sciences UNC Chapel Hill
>>
>> 17-6 Venable Hall
>> jcleary at email.unc.edu
>> (919) 962-4323
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.1.362 / Virus Database: 267.13.0/168 - Release Date:  
>> 11/14/2005
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+






More information about the Chameleon mailing list