<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Glynn,<div><br></div><div>apologize the private mail, i can see your answer on the list archive, but no reply is sent to my mail box (mybe some problems with the mailng list :-/)</div><div><br></div><div>### ### ###</div><div><span class="Apple-style-span" style="font-family: Times; "><pre>Massimo Di Stefano wrote:

&gt;<i> i've old scripts that i'm using to parse the "g.proj" output
</i>&gt;<i> 
</i>&gt;<i> in it i have units == meters
</i>&gt;<i> 
</i>&gt;<i> but form recent svn 6.5 version i can see it use :   metres
</i>&gt;<i> 
</i>&gt;<i> GRASS 6.5.svn (spearfish60):~/wxpython/data_catalog &gt; g.proj -p
</i>
&gt;<i> -PROJ_UNITS------------------------------------------------
</i>&gt;<i> unit       : metre
</i>&gt;<i> units      : metres
</i>&gt;<i> meters     : 1
</i>&gt;<i> 
</i>&gt;<i> 
</i>&gt;<i> 
</i>&gt;<i> is it a typo, or need i to modify my scripts to use :    metre / metres ?
</i>
g.proj outputs whatever is in the PROJ_UNITS file. The textual
description of the unit can be whatever the user chooses it to be, or
in the case of "g.proj -c", whatever is obtained from the source
specified by georef=. GRASS itself only the unit/units fields for
display to the user; calculations use the numeric value in the meters
field.

What do your scripts use the "unit" or "units" field for?
</pre><pre>### ### ###</pre><pre><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: normal;"><br></span></font></pre><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">I'm working on a script to send data from grass to ossimplanet,</span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">it is :</span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><a href="http://svn.osgeo.org/ossim/trunk/gsoc/OssimPlanetSasha/r.planet.py">http://svn.osgeo.org/ossim/trunk/gsoc/OssimPlanetSasha/r.planet.py</a></span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">there is a "projinfo()" function i'm using it to retrieve if the location use degrees or projected coordinates</span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">what i need is to extract the "center of the map" and use it in the  "zoom to" action.</span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">if the location is in degrees i use :</span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">setCLL(map)</span></font></span></div><div><span class="Apple-style-span" style="white-space: pre; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">location ..</span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">while if projected (meters) i use :</span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">setCPRJ(map)</span></font></span></div><div><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: pre;">in the example i used the spearfish dataset.</span></font></div><div><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: pre;">but as you pint me ... the ceck on the "units" string .. is not a good idea :-(&nbsp;</span></font></div><div><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: pre;">beacouse the "units value"  is "user - dependent"&nbsp;</span></font></div><div><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: pre;">and maybe someone that did a typo error defining the location will go in an error during the script execution.</span></font></div><div><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: pre;">regards,</span></font></div><div><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="white-space: pre;">Massimo</span></font></div></span></div></body></html>