<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;">
Hey Group,<br><br>I'm sure those of you more experienced will groan at my ArcSDE related question but here goes.<br><br>I'm having problems get raw KML data back when connected to ArcSDE. I am using<br>Map Guide OS 1.2.0 beta and AutoDesk Map Guide Studio evaluation. I do have the same<br>problem using MGOS 1.1.<br><br>I have loaded my layer of points into ArcSDE via command line utilities, shp2sde because<br>I don't have ArcEditor or ArcInfo.<br>The first layer I loaded into my db was in a UTM projection. The second layer of points<br>I loaded to SDE was in WGS84. I specified a projection code and the layers report<br>their correct projections via SDE and ArcMap. I am able to successfully connect to SDE using the<br>ArcSDE FDO to create a data connection. I can create separate Map Guide layers<br>for both of my point layers. <br><br>Here is where it starts to get sketchy. In Map Guide Studio when I create a blank Map and <br>add my first layer by itself, whether it be my UTM points or my WGS84 points or some other layer in<br>another projection the map default projection comes up as UTM. I can of course change this to LL84 <br>if I am just creating a map with my WGS84 points. My first question is why does the map projection <br>default to a UTM projection when the first layer added is in another projection and does this shed light<br>on my resulting problems?<br><br>I can make web layouts with any combination of my point layers and other layers in other<br>projections and they display correctly in an AJAX web browser. <br><br>The problems start when I try to use the KML calls GetMapKML, GetLayerKML or GetFeaturesKML.<br>I can successfully make these calls either from a web browser with a response type of XML or in<br>Google Earth against my layer in UTM or other layers, however I get failed responses against my layer in<br>WGS84 either through url calls or through GE. More specifically when I try and debuging at the root <br>
GetFeaturesKML from a url call <br><br>http://localhost:8008/mapguide/mapagent/mapagent.fcgi?OPERATION=GetFeaturesKml&<br>VERSION=1.0.0&LAYERDEFINITION=Library://TEST/Layers/WGS_LOCS.LayerDefinition&<br>FORMAT=XML&DRAWORDER=6&BBOX=-106.7621,38.7261,-105.7026,41.7703&WIDTH=500&HEIGHT=500<br><br>for XML I get this response...<br><br><?xml version="1.0" encoding="UTF-8"?><br><kml xmlns="http://earth.google.com/kml/2.1"><br><NetworkLinkControl><minRefreshPeriod>2</minRefreshPeriod></NetworkLinkControl><br><Document><br><visibility>1</visibility><br></Document><br></kml><br><br>instead of xml with placemarks.<br><br>As further testing I added other datasets in various projections to ArcSDE. Any data that<br>is UTM is returned successfully, but the other geographic projections I tested; NAD27, NAD83, WGS84 yield<br>the same non-results.<br><br>It's almost as if because my first ArcSDE layer was in UTM, MapGuide sees some type of ArcSDE schema<br>and things all the data is in UTM. I even tried creating a second SQLSERVER DB with my points but had<br>the same results.<br><br>When I connect to via FDO for Shapefiles for data in various projections everything is hunky dory. I have<br>performed some additional testing to try and isolate the problem but won't overwhelm the list with all<br>my tests.<br><br>Any ideas as to if my problem lies in ArcSDE, FDO or the MGOS KML re-projection piece, or something I've done? <br>Or feel free to humble me with some small detail I missed.<br><br>Thanks in advance!<br><br>Trent<br><br><br><br><br></div></body>
</html>