<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:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (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]-->
<title>Re: [mapguide-users] Database connections in MapGuide Studio</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @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:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.E-mailStijl17
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.m1
        {color:blue;}
span.t1
        {color:#990000;}
span.b1
        {font-family:"Courier New";
        color:red;
        font-weight:bold;
        text-decoration:none none;}
span.tx1
        {font-weight:bold;}
span.ns1
        {color:red;}
span.E-mailStijl25
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=NL link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Ok, that worked, now I&#8217;m
getting coordinates&#8230;&nbsp; but in Google Earth the map is zoomed to completely
the wrong place. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Could this be that our
coordinate system differs from what Earth is expecting?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>I&#8217;m getting this
from my resources:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Boundary Line</NAME><STYLEURL>#myBoundaryLine</STYLEURL><POLYGON><EXTRUDE>0</EXTRUDE><ALTITUDEMODE>clampedToGround</ALTITUDEMODE><OUTERBOUNDARYIS><LINEARRING><COORDINATES>157086.938,403382.689,0
157078.527,403376.459,0 157074.187,403374.389,0 157070.947,403375.979,0
157068.266,403381.019,0 157069.616,403384.109,0 157080.227,403390.199,0
157082.778,403390.529,0 157084.707,403389.319,0 157087.568,403385.819,0
157086.938,403382.689,0<o:p></o:p></span></font></p>

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

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

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>Our coordinate system is Arbritrary X-Y Meters&#8230;
the Sheybogan is WGS84.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>Willem<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

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

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>Van:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Jason Birch
[mailto:Jason.Birch@nanaimo.ca] <br>
<b><span style='font-weight:bold'>Verzonden:</span></b> maandag 10 april 2006
18:37<br>
<b><span style='font-weight:bold'>Aan:</span></b> <st1:PersonName
ProductID="Willem Schwarte" w:st="on">Willem Schwarte</st1:PersonName><br>
<b><span style='font-weight:bold'>CC:</span></b> users@mapguide.osgeo.org<br>
<b><span style='font-weight:bold'>Onderwerp:</span></b> [mapguide-users] RE:
MapGuide OS with Google Earth</span></font><o:p></o:p></p>

</div>

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

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Hi,</span></font><o:p></o:p></p>

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

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Something that I've recently figured out
is that it's a lot easier to debug Mg errors if you wrap your code in
Try/Catch.&nbsp; Have a look at some of the code in the mapadmin area, or in
the package command line utilities I posted about yesterday.</span></font><o:p></o:p></p>

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

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>I wonder if the geometry column for your
data source is the same as the sample data (SHPGEOM).</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>You can see what this is supposed to be by
looking at a layer based on that feature source in Studio, under &quot;Feature
Data Setup&quot;.&nbsp; You can also get this information by going into the
mapagent/index.html file, clicking on Feature Service API in the upper left,
then clicking on Describe Feature item, and finally fill in the FeatureSource
ID </span></font><o:p></o:p></p>

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

<p class=MsoNormal><span class=tx1><b><font size=2 face=Verdana><span
lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>Library://Bolsward/Data/Data/totaal_tvg32010101_v.FeatureSource</span></font></b></span><o:p></o:p></p>

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

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>The&nbsp;sample data definition&nbsp;looks
like this:</span></font><o:p></o:p></p>

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

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;&nbsp;<span class=m><font color=blue><span style='color:blue'>&lt;</span></font></span><span
class=t><font color="#990000"><span style='color:#990000'>xs:complexType name</span></font></span><span
class=m><font color=blue><span style='color:blue'>=&quot;</span></font></span><b><span
style='font-weight:bold'>HydrographicPolygonsType</span></b><span class=m><font
color=blue><span style='color:blue'>&quot;</span></font></span><span class=t><font
color="#990000"><span style='color:#990000'> abstract</span></font></span><span
class=m><font color=blue><span style='color:blue'>=&quot;</span></font></span><b><span
style='font-weight:bold'>false</span></b><span class=m><font color=blue><span
style='color:blue'>&quot;</span></font></span><span class=t><font
color="#990000"><span style='color:#990000'> fdo:geometryName</span></font></span><span
class=m><font color=blue><span style='color:blue'>=&quot;</span></font></span><b><span
style='font-weight:bold'>SHPGEOM</span></b><span class=m><font color=blue><span
style='color:blue'>&quot;&gt;</span></font></span><o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>The fdo:geometryName attribute is what you
want here.&nbsp; </span></font><o:p></o:p></p>

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

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>A better solution would be to let the code
extract the geometry column... hmm...&nbsp;bit of research later:</span></font><o:p></o:p></p>

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

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>You could replace this line:</span></font><o:p></o:p></p>

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

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>&nbsp;&nbsp;$byteReader =
$featureReader-&gt;GetGeometry('SHPGEOM');</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>With this:<o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>&nbsp;&nbsp;$byteReader =
$featureReader-&gt;GetGeometry($featureReader-&gt;GetClassDefinition()-&gt;GetDefaultGeometryPropertyName());</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Note that this isn't very efficient; it
checks the default geometry property on each feature object.&nbsp; It would be
better to do this outside of the loop, or at the top of the loop in a section
that's only executed once.<o:p></o:p></span></font></p>

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

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Jason<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>&nbsp;<o:p></o:p></span></font></p>

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

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

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

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
lang=EN-US style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
<st1:PersonName ProductID="Willem Schwarte" w:st="on">Willem Schwarte</st1:PersonName>
[mailto:willem@giskit.nl] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, April 10, 2006 07:38<br>
<b><span style='font-weight:bold'>To:</span></b> Jason Birch<br>
<b><span style='font-weight:bold'>Cc:</span></b> users@mapguide.osgeo.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: MapGuide OS with
Google Earth</span></font><span lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>I have tried your sample
for Google Earth, and it work fine with the sheybogan sample data.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>If I paste this in my
internet Explorer <a href="http://localhost/sites/google_earth/water.php">http://localhost/sites/google_earth\water.php</a>
I will get a bunch of coordinates.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>But when I try to use my
own data I get an error:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'>PHP Fatal error: Uncaught exception
'mgobjectnotfoundexception' in Unknown on line 0</span></font><font size=2
color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:
Arial;color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>In the water.php file I
change this line like so:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>$featureReader =
$featureService-&gt;SelectFeatures(new
MgResourceIdentifier(&quot;Library://Bolsward/Data/Data/totaal_tvg32010101_v.FeatureSource&quot;),
&quot;totaal_tvg32010101_v&quot;, null);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>As you can see in XML
below, this does exist. &nbsp;Do you might know why I don&#8217;t get anything
?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Willem<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><span class=m1><font size=2
color=blue face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:
Verdana'>&lt;</span></font></span><span class=t1><font size=2 color="#990000"
face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>ResourceId</span></font></span><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>&gt;</span></font></span><span
class=tx1><b><font size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;
font-family:Verdana'>Library://Bolsward/Data/Data/totaal_tvg32010101_v.FeatureSource</span></font></b></span><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>&lt;/</span></font></span><span
class=t1><font size=2 color="#990000" face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>ResourceId</span></font></span><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>&gt;</span></font></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;</font></span><span class=t1><font
color="#990000">Depth</font></span><span class=m1><font color=blue>&gt;</font></span><span
class=tx1><b>4</b></span><span class=m1><font color=blue>&lt;/</font></span><span
class=t1><font color="#990000">Depth</font></span><span class=m1><font
color=blue>&gt;</font></span> <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;</font></span><span class=t1><font
color="#990000">Owner</font></span><span class=m1><font color=blue>&gt;</font></span><span
class=tx1><b>Administrator</b></span><span class=m1><font color=blue>&lt;/</font></span><span
class=t1><font color="#990000">Owner</font></span><span class=m1><font
color=blue>&gt;</font></span> <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;</font></span><span class=t1><font
color="#990000">CreatedDate</font></span><span class=m1><font color=blue>&gt;</font></span><span
class=tx1><b>2006-04-07T08:32:36Z</b></span><span class=m1><font color=blue>&lt;/</font></span><span
class=t1><font color="#990000">CreatedDate</font></span><span class=m1><font
color=blue>&gt;</font></span> <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;</font></span><span class=t1><font
color="#990000">ModifiedDate</font></span><span class=m1><font color=blue>&gt;</font></span><span
class=tx1><b>2006-04-07T08:32:36Z</b></span><span class=m1><font color=blue>&lt;/</font></span><span
class=t1><font color="#990000">ModifiedDate</font></span><span class=m1><font
color=blue>&gt;</font></span> <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><a
href="http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCES&amp;VERSION=1.0.0&amp;LOCALE=en&amp;RESOURCEID=Library%3A%2F%2F&amp;TYPE=&amp;DEPTH=-1##"
onfocus="h()"><b><font color=red face="Courier New"><span lang=EN-GB
style='font-family:"Courier New";color:red;font-weight:bold'>-</span></font></b></a>
</span></font><span class=m1><font size=2 color=blue face=Verdana><span
lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>&lt;</span></font></span><span
class=t1><font size=2 color="#990000" face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>ResourceDocumentHeader</span></font></span><span
class=ns1><font size=2 color=red face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'> xmlns:xsd</span></font></span><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>=&quot;</span></font></span><b><font
size=2 color=red face=Verdana><span lang=EN-GB style='font-size:10.0pt;
font-family:Verdana;color:red;font-weight:bold'>http://www.w3.org/2001/XMLSchema</span></font></b><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>&quot;</span></font></span><span
class=ns1><font size=2 color=red face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'> xmlns:xsi</span></font></span><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>=&quot;</span></font></span><b><font
size=2 color=red face=Verdana><span lang=EN-GB style='font-size:10.0pt;
font-family:Verdana;color:red;font-weight:bold'>http://www.w3.org/2001/XMLSchema-instance</span></font></b><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>&quot;</span></font></span><span
class=t1><font size=2 color="#990000" face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'> xsi:noNamespaceSchemaLocation</span></font></span><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>=&quot;</span></font></span><b><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana;
font-weight:bold'>ResourceDocumentHeader-1.0.0.xsd</span></font></b><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>&quot;&gt;</span></font></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><a
href="http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCES&amp;VERSION=1.0.0&amp;LOCALE=en&amp;RESOURCEID=Library%3A%2F%2F&amp;TYPE=&amp;DEPTH=-1##"
onfocus="h()"><b><font color=red face="Courier New"><span lang=EN-GB
style='font-family:"Courier New";color:red;font-weight:bold'>-</span></font></b></a>
</span></font><span class=m1><font size=2 color=blue face=Verdana><span
lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>&lt;</span></font></span><span
class=t1><font size=2 color="#990000" face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>General</span></font></span><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>&gt;</span></font></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;</font></span><span class=t1><font
color="#990000">IconName</font></span><span class=m1><font color=blue>&gt;</font></span><span
class=tx1><b>FeatureSourceSdf</b></span><span class=m1><font color=blue>&lt;/</font></span><span
class=t1><font color="#990000">IconName</font></span><span class=m1><font
color=blue>&gt;</font></span> <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-12.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;/</font></span><span class=t1><font
color="#990000">General</font></span><span class=m1><font color=blue>&gt;</font></span><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><a
href="http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCES&amp;VERSION=1.0.0&amp;LOCALE=en&amp;RESOURCEID=Library%3A%2F%2F&amp;TYPE=&amp;DEPTH=-1##"
onfocus="h()"><b><font color=red face="Courier New"><span lang=EN-GB
style='font-family:"Courier New";color:red;font-weight:bold'>-</span></font></b></a>
</span></font><span class=m1><font size=2 color=blue face=Verdana><span
lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>&lt;</span></font></span><span
class=t1><font size=2 color="#990000" face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>Security
xsi:noNamespaceSchemaLocation</span></font></span><span class=m1><font size=2
color=blue face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:
Verdana'>=&quot;</span></font></span><b><font size=2 face=Verdana><span
lang=EN-GB style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>ResourceSecurity-1.0.0.xsd</span></font></b><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>&quot;&gt;</span></font></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;</font></span><span class=t1><font
color="#990000">Inherited</font></span><span class=m1><font color=blue>&gt;</font></span><span
class=tx1><b>true</b></span><span class=m1><font color=blue>&lt;/</font></span><span
class=t1><font color="#990000">Inherited</font></span><span class=m1><font
color=blue>&gt;</font></span> <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><a
href="http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCES&amp;VERSION=1.0.0&amp;LOCALE=en&amp;RESOURCEID=Library%3A%2F%2F&amp;TYPE=&amp;DEPTH=-1##"
onfocus="h()"><b><font color=red face="Courier New"><span lang=EN-GB
style='font-family:"Courier New";color:red;font-weight:bold'>-</span></font></b></a>
</span></font><span class=m1><font size=2 color=blue face=Verdana><span
lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>&lt;</span></font></span><span
class=t1><font size=2 color="#990000" face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>Groups</span></font></span><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>&gt;</span></font></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><a
href="http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCES&amp;VERSION=1.0.0&amp;LOCALE=en&amp;RESOURCEID=Library%3A%2F%2F&amp;TYPE=&amp;DEPTH=-1##"
onfocus="h()"><b><font color=red face="Courier New"><span lang=EN-GB
style='font-family:"Courier New";color:red;font-weight:bold'>-</span></font></b></a>
</span></font><span class=m1><font size=2 color=blue face=Verdana><span
lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>&lt;</span></font></span><span
class=t1><font size=2 color="#990000" face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>Group</span></font></span><span
class=m1><font size=2 color=blue face=Verdana><span lang=EN-GB
style='font-size:10.0pt;font-family:Verdana'>&gt;</span></font></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;</font></span><span class=t1><font
color="#990000">Name</font></span><span class=m1><font color=blue>&gt;</font></span><span
class=tx1><b>Everyone</b></span><span class=m1><font color=blue>&lt;/</font></span><span
class=t1><font color="#990000">Name</font></span><span class=m1><font
color=blue>&gt;</font></span> <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-24.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;</font></span><span class=t1><font
color="#990000">Permissions</font></span><span class=m1><font color=blue>&gt;</font></span><span
class=tx1><b>r,w</b></span><span class=m1><font color=blue>&lt;/</font></span><span
class=t1><font color="#990000">Permissions</font></span><span class=m1><font
color=blue>&gt;</font></span> <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-12.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;/</font></span><span class=t1><font
color="#990000">Group</font></span><span class=m1><font color=blue>&gt;</font></span><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-12.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;/</font></span><span class=t1><font
color="#990000">Groups</font></span><span class=m1><font color=blue>&gt;</font></span><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-12.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;/</font></span><span class=t1><font
color="#990000">Security</font></span><span class=m1><font color=blue>&gt;</font></span><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-12.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;/</font></span><span class=t1><font
color="#990000">ResourceDocumentHeader</font></span><span class=m1><font
color=blue>&gt;</font></span><o:p></o:p></span></font></p>

<p class=MsoNormal style='text-indent:-12.0pt'><span class=b1><b><font size=2
color=red face="Courier New"><span lang=EN-GB style='font-size:10.0pt'>&nbsp;</span></font></b></span><font
size=2 face=Verdana><span lang=EN-GB style='font-size:10.0pt;font-family:Verdana'>
<span class=m1><font color=blue>&lt;/</font></span><span class=t1><font
color="#990000">ResourceDocument</font></span><span class=m1><font color=blue>&gt;</font></span><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

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

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>Van:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Jason Birch
[mailto:Jason.Birch@nanaimo.ca] <br>
<b><span style='font-weight:bold'>Verzonden:</span></b> dinsdag 14 maart 2006
8:19<br>
<b><span style='font-weight:bold'>Aan:</span></b> users@mapguide.osgeo.org<br>
<b><span style='font-weight:bold'>Onderwerp:</span></b> MapGuide OS with Google
Earth</span></font><o:p></o:p></p>

</div>

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

<div id=idOWAReplyText30819>

<div>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>I've uploaded a pretty basic example of
using MapGuide OS to serve KML to Google Earth, based on an example that Bob
Bray provided with the first preview:</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'><a
href="http://www.jasonbirch.com/files/google_earth.zip">http://www.jasonbirch.com/files/google_earth.zip</a></span></font><o:p></o:p></p>

</div>

<div>

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

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>This is totally unsupported, but in my experience it works
with the Sheboygan data set.&nbsp; On a standard Windows/Apache/Php install you
should just have to follow the instructions in the readme.txt file.</span></font><o:p></o:p></p>

</div>

<div>

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

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I had a better example that worked to return data for the
current bounding box (you can see it in action at <a
href="http://earth.nanaimo.ca/">http://earth.nanaimo.ca/</a>&nbsp;) but I was
unable to get this working with the sample data, so either something has
changed with 1.0 or the sample data is different somehow than what I'm
serving.&nbsp; I didn't get any error messages, but seeing all of the exception
codes in the API, I guess I should be trapping for these somehow.&nbsp; Not
enough time to research now though.</span></font><o:p></o:p></p>

</div>

<div>

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

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My to-do list:</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>- </span></font><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>clean up the code, make it more modular, and possibly use
TJ's KMLDocument class for generating the KML:</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><a href="http://kml.tjworld.net/downloads.php">http://kml.tjworld.net/downloads.php</a></span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>- figure out how to read the default scale ranges and
symbology from MapGuide, and return a semblance of those instead of having to
custom code each layer.&nbsp; </span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>- dynamically rewrite the bounding box, so that it shifts to
the foreground when the view is tilted, allowing delivery of data without killing
the server with a huge extent</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>- deliver GroundOverlay images as an option for small-scale
mapping where serving vectors is inappropriate</span></font><o:p></o:p></p>

</div>

<div>

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

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Of course Autodesk could just step in any time now and
provide a template for default delivery of KML :)</span></font><o:p></o:p></p>

</div>

<div>

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

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Jason</span></font><o:p></o:p></p>

</div>

</div>

<div id=idSignature79640>

<div>

<div>

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

</div>

</div>

</div>

</div>

</body>

</html>