<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.hw1
        {mso-style-name:hw1;
        color:#333333;
        font-weight:bold;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p><span lang=EN style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:black'>What Units does Buffer Expect to be sent in? <o:p></o:p></span></p>

<p><span lang=EN style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:black'>I&#8217;m Starting with unit type of feet and distance of 100. <o:p></o:p></span></p>

<p><span lang=EN style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:black'>Background: <o:p></o:p></span></p>

<p><span lang=EN style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:black'>When I do a -&gt;getunits on the Coordinate System (srsDs) it
returns US_foot When I do a -&gt;getunitScale on the Coordinate System (srsDs)
it returns 0.304800609601 <o:p></o:p></span></p>

<p><span lang=EN style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:black'>Earlier in the PHP code it converts my Units to Meters from feet:
{if($units == &quot;fe&quot;) //feet $distance *= .30480;} Returning
distance=30.480 Then later the Code does this: $dist = $srsDs-&gt;<a
href="http://trac.osgeo.org/mapguide/wiki/ConvertMetersToCoordinateSystemUnits"><span
style='color:#999988;background:#FAFAF0'>ConvertMetersToCoordinateSystemUnits?</span></a>($distance)
returning dist=99.9998 After this it Creates $measure = new <a
href="http://trac.osgeo.org/mapguide/wiki/MgCoordinateSystemMeasure"><span
style='color:#999988;background:#FAFAF0'>MgCoordinateSystemMeasure?</span></a>($srsDs);
<o:p></o:p></span></p>

<p><span lang=EN style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:black'>Here's Where it gets weird if I run
measure-&gt;getDistance(1.0,0.0,0.0,0.0) I would expect it to return the value
of 1 but instead it returns 3.27654107864 (Shouldn't the Measure Object be in
feet since it was created off a US Foot coordinate system or is it assuming
Meters on coordinates sent in???) We Use Measure and dist to create the buffer
so since a one unit coordinate change returns 3.27654107864 it makes sense why
the distance would come up so much smaller. $geomBuffer =
$geom-&gt;Buffer($dist, $measure); <o:p></o:p></span></p>

<p><span lang=EN style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:black'>Its somewhere in the <a
href="http://trac.osgeo.org/mapguide/wiki/MgCoordinateSystemMeasure"><span
style='color:#999988;background:#FAFAF0'>MgCoordinateSystemMeasure?</span></a>
area or in the 0.304800609601 <a
href="http://trac.osgeo.org/mapguide/wiki/UnitScale"><span style='color:#999988;
background:#FAFAF0'>UnitScale?</span></a> on the coordinate system...I know how
to force a fix...but it wouldnt repair whats ultimately really broken here. <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Andy
Morsell<br>
<b>Sent:</b> Wednesday, July 11, 2007 12:13 PM<br>
<b>To:</b> 'MapGuide Users Mail List'<br>
<b>Subject:</b> RE: [mapguide-users] Buffer Issues Units<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>I just checked with 1.2.0 RC2 on a State Plane, feet map and see
the same results as you.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Regarding your other question below, I don't think this has
anything at all to do with Studio, it is a bug with the AJAX viewer.&nbsp; Have
you logged this issue in Trac yet?</span><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;<o:p></o:p></span></p>

</div>

<p><span style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'>Andy
Morsell, P.E.</span> <br>
<span style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'>Spatial
Integrators, Inc.</span> <br>
<span style='font-size:7.5pt;font-family:"Tahoma","sans-serif"'><a
href="http://www.SpatialGIS.com">http://www.SpatialGIS.com</a></span> <o:p></o:p></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Scott
Hameister<br>
<b>Sent:</b> Wednesday, July 11, 2007 9:46 AM<br>
<b>To:</b> 'MapGuide Users Mail List'<br>
<b>Subject:</b> RE: [mapguide-users] Buffer Issues Units</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='color:#1F497D'>Nobody is having issues with
buffers not working properly on Maps using state Plane Coordinates? Or just no
solutions.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Scott
Hameister<br>
<b>Sent:</b> Tuesday, July 10, 2007 10:34 AM<br>
<b>To:</b> 'MapGuide Users Mail List'<br>
<b>Subject:</b> [mapguide-users] Buffer Issues Units<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hello I am using Mapguide Open Source as my Server and
Autodesk Mapguide Studio as my Authoring tool.<o:p></o:p></p>

<p class=MsoNormal>All my Maps are Using state Plane feet in Different
States&#8230;When I run a 66 foot buffer, it comes out 1/3 of what it should be, when
I run a 66 Meter buffer they run in what looks like feet&#8230;<o:p></o:p></p>

<p class=MsoNormal>Is this an issue with Mapguide Open Source trying to Buffer
a map Made in Mapguide Studio and not recognizing Autodesk Coord Systems in the
open Source Server?????? If so how do we address this for people that want to
buy Studio but Use Open Source for their Server????? Or is this part of a
bigger more Nefarious Issue?<o:p></o:p></p>

</div>

</body>

</html>