<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I haven't used the official API for a while, because I made my own.<br>
You can see how to do use it on this page:<br>
<a class="moz-txt-link-freetext" href="http://code.google.com/p/mapstudioos/wiki/HowToUseMapGuideAPI">http://code.google.com/p/mapstudioos/wiki/HowToUseMapGuideAPI</a><br>
<br>
With that API you can use the following code:<br>
MapGuideAPI.ServerConnectionI con = new HttpServerConnection(new
Uri(<a class="moz-txt-link-rfc2396E" href="http://localhost/mapguide/mapagent/mapagent.fcgi">"http://localhost/mapguide/mapagent/mapagent.fcgi"</a>),
"Administrator", "admin", null);<br>
MapGuideAPI.FeatureSetReader fsr =
con.QueryFeatureSource("Library://sample.FeatureSource",
"SDF_2:Schema", "ID=5 OR ID=7", new string[] { "ID", "GEOM" });<br>
while(fsr.Read())<br>
{<br>
&nbsp;&nbsp;&nbsp; MapGuideAPI.FeatureSetRow row =&nbsp; fsr.Row;<br>
&nbsp;&nbsp;&nbsp; MapGuideAPI.Geometry geom = (MapGuideAPI.Geometry)fsr["GEOM"];<br>
&nbsp;&nbsp;&nbsp; int id = (int)fsr["ID"];<br>
}<br>
<br>
<br>
You should be able to find some similar code for the official API in
the selection handler, supplied with the MapGuide viewer.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
&Aacute;ron De&aacute;k skrev:
<blockquote
 cite="mid:77dfe0ec0803130619v63fc8d46s96515508fd28f797@mail.gmail.com"
 type="cite">Thank you for your quick reply, I am still stuck tough.<br>
  <br>
What I really need is to be able to access the feature information on
the server without having to create a viewer.<br>
  <br>
I couldn't find sample code that does this, please show me how I could
do this.<br>
  <br>
Thanks in advance<br>
  <br>
Aron Deak<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
  </pre>
</blockquote>
</body>
</html>