<!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">
You need to query the FeatureSource and read out the geometry for the
objects.<br>
This is easiest if the records have a primary key.<br>
<br>
These are relevant links that document the required service and method:<br>
<a class="moz-txt-link-freetext" href="http://mapguide.osgeo.net/files/mapguide/docs/webapi/de/ddf/group___feature___service___module.html">http://mapguide.osgeo.net/files/mapguide/docs/webapi/de/ddf/group___feature___service___module.html</a><br>
<a class="moz-txt-link-freetext" href="http://mapguide.osgeo.net/files/mapguide/docs/webapi/d5/d10/class_mg_feature_service_cd90e83ea6f7d1c0c68b8547c7ec6286.html#cd90e83ea6f7d1c0c68b8547c7ec6286">http://mapguide.osgeo.net/files/mapguide/docs/webapi/d5/d10/class_mg_feature_service_cd90e83ea6f7d1c0c68b8547c7ec6286.html#cd90e83ea6f7d1c0c68b8547c7ec6286</a><br>
<a class="moz-txt-link-freetext" href="http://mapguide.osgeo.net/files/mapguide/docs/webapi/d6/ddc/class_mg_feature_reader.html">http://mapguide.osgeo.net/files/mapguide/docs/webapi/d6/ddc/class_mg_feature_reader.html</a><br>
<br>
Basically, you get a MgFeatureReader from the FeatureService, by
calling the SelectFeatures method.<br>
There are examples within the documentation, but also look at the
buffer.(aspx|jsp|php) file in your MapGuide installation<br>
for a real example in the language of your choosing.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Amit Kumar Shukla skrev:
<blockquote
 cite="mid:da9418290909110008p41d6f214m326ea37933d15fb5@mail.gmail.com"
 type="cite">Hi List,<br>
  <br>
I'm using MapGuide Open Source 2.1 Beta 1. I want to measure distance
between objects to show nearest objects of a selected point on the map.
I'm easily getting the coordinate of the selected point but how to get
the coordinates of the other objects from another layer.<br>
  <br>
Hopefully someone help me.<br>
  <br>
Thanks and regards<br>
Amit <br>
  <br clear="all">
  <br>
  <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>