<br><font size=2 face="sans-serif">Tim,</font>
<br><font size=2 face="sans-serif">You might need to provide the proj4js
definitions for your map projection 2398 to use geodesic: true</font>
<br>
<br><font size=2 face="sans-serif">I already use it to transform coordinates,
perhaps it is also required by geodesic option. </font>
<br>
<br><font size=2 face="sans-serif">If you want to try it, install the library
and include theses scripts</font>
<br><font size=2 face="sans-serif">&lt;script src=&quot;../../../proj4js/lib/proj4js-compressed.js&quot;&gt;&lt;/script&gt;</font>
<br><font size=2 face="sans-serif">&lt;script src=&quot;../../../proj4js/lib/defs/EPSG2398.js&quot;&gt;&lt;/script&gt;
</font>
<br>
<br><font size=2 face="sans-serif">you'll probably need to create EPSG2398.js,
have a look at other definition files in the folder.</font>
<br><font size=2 face="sans-serif">That works for me.</font>
<br>
<br><font size=2 face="sans-serif">You can also have a look at this but
I never used it.</font>
<br><font size=2 face="sans-serif">http://dev.openlayers.org/docs/files/OpenLayers/Util-js.html#Util.distVincenty</font>
<br><font size=2 face="sans-serif">Steve</font>
<p>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Steve.Toutant@inspq.qc.ca@openlayers.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : users-bounces@openlayers.org</font>
<p><font size=1 face="sans-serif">24/09/2009 09:28 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Tim Balschmiter &lt;tb.rostock@googlemail.com&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">Users@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [OpenLayers-Users] RE &nbsp;measure
with 2398</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
I would try this</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
- Remove geodesic:true from the map option</font><font size=3> </font><font size=2 face="sans-serif"><br>
- set the measure option like this</font><font size=3> <br>
 &nbsp;var measureOptions = { <br>
 persist :true, <br>
 geodesic: true, <br>
 handlerOptions : { <br>
 &nbsp; style :&quot;default&quot; <br>
} <br>
} <br>
</font><font size=2 face="sans-serif"><br>
hope this helps</font><font size=3> </font><font size=2 face="sans-serif"><br>
steve</font><font size=3> </font>
<p><font size=3>&nbsp; </font>
<p><font size=3><br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=51%><font size=1 face="sans-serif"><b>Tim Balschmiter &lt;tb.rostock@googlemail.com&gt;</b>
</font>
<p><font size=1 face="sans-serif">24/09/2009 09:06 AM</font><font size=3>
</font>
<td width=48%>
<br>
<table width=100%>
<tr valign=top>
<td width=10%>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td width=89%><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca</font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">Users@openlayers.org</font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: RE [OpenLayers-Users] measure with
2398</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=50%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
<br>
<br>
<br>
Thanks for these answer, but that idea does not work. <br>
this is my map options: <br>
 &nbsp;function createMap() { <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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, <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;54070.29327392578,
10000.0, 5000.0,1000.0],maxExtent: new OpenLayers.Bounds(4504884.5,5997999.5,4506172.5,5999757.5)});
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return map; <br>
 &nbsp; &nbsp; &nbsp; &nbsp;} <br>
 &nbsp; &nbsp; &nbsp; &nbsp; <br>
and that my new measure options: <br>
<br>
 &nbsp;var measureOptions = { <br>
 handlerOptions : { <br>
 &nbsp; style :&quot;default&quot;, <br>
 persist :true, <br>
 projection: &quot;EPSG:2398&quot;, <br>
 geodesic: true <br>
} <br>
} <br>
<br>
2009/9/24 &lt;</font><a href=mailto:Steve.Toutant@inspq.qc.ca><font size=3 color=blue><u>Steve.Toutant@inspq.qc.ca</u></font></a><font size=3>&gt;
</font><font size=2 face="sans-serif"><br>
<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>
</font>
<p>
<table width=100%>
<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>
<td width=37%>
<br>
<table width=100%>
<tr valign=top>
<td width=12%>
<div align=right><font size=1 face="sans-serif">A</font></div>
<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>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[OpenLayers-Users] measure with 2398</font></table>
<br><font size=3><br>
</font>
<br>
<table width=100%>
<tr valign=top>
<td width=50%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
<br>
<br>
<br>
<br>
Hello list, i am using the measure-option, but i get wrong &nbsp;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>
 &nbsp; 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('messung'); <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>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var units = event.units; <br>
var measure = event.measure; <br>
var element = document.getElementById('messung'); <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><font size=3 color=blue><u><br>
</u></font><a href=mailto:Users@openlayers.org target=_blank><tt><font size=2 color=blue><u>Users@openlayers.org</u></font></tt></a><font size=3 color=blue><u><br>
</u></font><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>
</font>
<p><font size=3><br>
<br>
</font><tt><font size=2>_______________________________________________<br>
Users mailing list<br>
Users@openlayers.org<br>
http://openlayers.org/mailman/listinfo/users<br>
</font></tt>
<br>
<br>
<br>