Thanks, but it does not work, too.<div>thanks for helping me<br><br><div class="gmail_quote">2009/9/24  <span dir="ltr">&lt;<a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br><font size="2" face="sans-serif">I would try this</font>
<br>
<br><font size="2" face="sans-serif">- Remove geodesic:true from the map
option</font>
<br><font size="2" face="sans-serif">- set the measure option like this</font>
<br><font size="3">  var measureOptions = {</font>
<br><font size="3"> persist :true,</font>
<br><font size="3"> geodesic: true,</font>
<br><font size="3"> handlerOptions : {</font>
<br><font size="3">   style :&quot;default&quot;</font>
<br><font size="3">}</font>
<br><font size="3">}</font>
<br>
<br><font size="2" face="sans-serif">hope this helps</font>
<br><font size="2" face="sans-serif">steve</font>
<p>
</p><p><font size="3">  </font>
</p><p>
<br>
<br>
<br>
</p><p></p><table width="100%">
<tbody><tr valign="top">
<td width="40%"><div class="im"><font size="1" face="sans-serif"><b>Tim Balschmiter &lt;<a href="mailto:tb.rostock@googlemail.com" target="_blank">tb.rostock@googlemail.com</a>&gt;</b>
</font>
</div><p><font size="1" face="sans-serif">24/09/2009 09:06 AM</font>
</p></td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">A</font></div>
</td><td><div class="im"><font size="1" face="sans-serif"><a href="mailto:Steve.Toutant@inspq.qc.ca" target="_blank">Steve.Toutant@inspq.qc.ca</a></font>
</div></td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">cc</font></div>
</td><td><font size="1" face="sans-serif"><a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">Objet</font></div>
</td><td><font size="1" face="sans-serif">Re: RE [OpenLayers-Users] measure with
2398</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table><div><div></div><div class="h5">
<br>
<br>
<br>
<br>
<br><font size="3">Thanks for these answer, but that idea does not work.</font>
<br><font size="3">this is my map options:</font>
<br><font size="3">  function createMap() {</font>
<br><font size="3">            map = new
OpenLayers.Map(&quot;map&quot;,{geodesic: true,projection: &quot;EPSG:2398&quot;,controls:[],scales:[442943842.5,221471921.25,110735960.625,55367980.3125,27683990.15625,13841995.078125,6920997.5390625,
3460498.76953125, 1730249.384765625,865124.6923828125, 432562.34619140625,
216281.17309570312, 108140.58654785156,</font>
<br><font size="3">              
     54070.29327392578, 10000.0, 5000.0,1000.0],maxExtent:
new OpenLayers.Bounds(4504884.5,5997999.5,4506172.5,5999757.5)});</font>
<br><font size="3">            return
map;</font>
<br><font size="3">        }</font>
<br><font size="3">        </font>
<br><font size="3">and that my new measure options:</font>
<br>
<br><font size="3">  var measureOptions = {</font>
<br><font size="3"> handlerOptions : {</font>
<br><font size="3">   style :&quot;default&quot;,</font>
<br><font size="3"> persist :true,</font>
<br><font size="3"> projection: &quot;EPSG:2398&quot;,</font>
<br><font size="3"> geodesic: true</font>
<br><font size="3">}</font>
<br><font size="3">}</font>
<br>
<br><font size="3">2009/9/24 &lt;</font><a href="mailto:Steve.Toutant@inspq.qc.ca" target="_blank"><font size="3" color="blue"><u>Steve.Toutant@inspq.qc.ca</u></font></a><font size="3">&gt;</font>
<br><font size="2" face="sans-serif"><br>
Hi,<br>
Try to add geodesic: true as an option.</font><font size="3"> </font><font size="2" face="sans-serif"><br>
Is </font><font size="3">EPSG:2398</font><font size="2" face="sans-serif">,
the projection defined in the option of the map object?</font><font size="3">
<br>
Steve </font>
<p><font size="3"><br>
<br>
</font>
</p><p>
</p><p></p><table width="100%">
<tbody><tr valign="top">
<td width="62%"><font size="1" face="sans-serif"><b>Tim Balschmiter &lt;</b></font><a href="mailto:tb.rostock@googlemail.com" target="_blank"><font size="1" color="blue" face="sans-serif"><b><u>tb.rostock@googlemail.com</u></b></font></a><font size="1" face="sans-serif"><b>&gt;@</b></font><a href="http://openlayers.org/" target="_blank"><font size="1" color="blue" face="sans-serif"><b><u>openlayers.org</u></b></font></a><font size="1" face="sans-serif">
<br>
Envoyé par : </font><a href="mailto:users-bounces@openlayers.org" target="_blank"><font size="1" color="blue" face="sans-serif"><u>users-bounces@openlayers.org</u></font></a><font size="3">
</font>
<p><font size="1" face="sans-serif">24/09/2009 02:17 AM</font><font size="3">
</font>
</p></td><td width="37%">
<br>
<table width="100%">
<tbody><tr valign="top">
<td width="12%">
<div align="right"><font size="1" face="sans-serif">A</font></div>
</td><td width="87%"><a href="mailto:Users@openlayers.org" target="_blank"><font size="1" color="blue" face="sans-serif"><u>Users@openlayers.org</u></font></a><font size="3">
</font>
</td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">cc</font></div>
</td><td>
</td></tr><tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">Objet</font></div>
</td><td><font size="1" face="sans-serif">[OpenLayers-Users] measure with 2398</font></td></tr></tbody></table>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td width="50%">
</td><td width="50%"></td></tr></tbody></table>
<br></td></tr></tbody></table>
<br><font size="3"><br>
<br>
<br>
<br>
<br>
Hello list, i am using the measure-option, but i get wrong  distance,
if i am using projection 2398. <br>
What can i do to get the right values?! <br>
thanks for helping me <br>
tim <br>
code: <br>
<br>
var measureOptions = { <br>
 handlerOptions : { <br>
   style :&quot;default&quot;, <br>
 persist :true, <br>
 projection: &quot;EPSG:2398&quot; <br>
} <br>
} <br>
var lineMeasure = new OpenLayers.Control.Measure( <br>
OpenLayers.Handler.Path, measureOptions); <br>
var polygonMeasure = new OpenLayers.Control.Measure( <br>
OpenLayers.Handler.Polygon, measureOptions); <br>
<br>
lineMeasure.events.on( { <br>
&quot;measure&quot; :handleDistanceMeasurements, <br>
&quot;measurepartial&quot; :handleDistanceMeasurements <br>
}); <br>
polygonMeasure.events.on( { <br>
&quot;measure&quot; :handleAreaMeasurements, <br>
&quot;measurepartial&quot; :handleAreaMeasurements <br>
}); <br>
<br>
function handleAreaMeasurements(event) { <br>
var units = event.units; <br>
var measure = event.measure; <br>
var element = document.getElementById(&#39;messung&#39;); <br>
var out = &quot;&quot;; <br>
out += &quot;Fläche: &quot; + measure.toFixed(3) + &quot; &quot; + units
<br>
+ &quot;&lt;sup&gt;2&lt;/sup&gt;&quot;; <br>
element.innerHTML = out; <br>
} <br>
function handleDistanceMeasurements(event) { <br>
          var units = event.units; <br>
var measure = event.measure; <br>
var element = document.getElementById(&#39;messung&#39;); <br>
var out = &quot;&quot;; <br>
out += &quot;Distanz: &quot; + measure.toFixed(3) + &quot; &quot; + units;
<br>
element.innerHTML = out; <br>
};</font><tt><font size="2">_______________________________________________<br>
Users mailing list</font></tt><tt><font size="2" color="blue"><u><br>
</u></font></tt><a href="mailto:Users@openlayers.org" target="_blank"><tt><font size="2" color="blue"><u>Users@openlayers.org</u></font></tt></a><tt><font size="2" color="blue"><u><br>
</u></font></tt><a href="http://openlayers.org/mailman/listinfo/users" target="_blank"><tt><font size="2" color="blue"><u>http://openlayers.org/mailman/listinfo/users</u></font></tt></a><font size="3"><br>
<br>
<br>
</font>
<p>
<br>
<br>
<br></p><p></p><p></p></div></div><p></p><p></p><p></p></blockquote></div><br></div>