[mapguide-users] Searching for a sample C# application for searching multiple fields of a feature class

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Fri Jan 15 03:41:15 EST 2010

I don't have a comple sample that fits your description,
but some bits and pieces (chunks if you prefer).

I personally use MaestroAPI (for obvious reasons):

Using the MaestroAPI samples as a base, I have put together this quick 
untested sample of the server code:

Another way to do it is show here:

The interesting line is 751:
using (FeatureSetReader rd = 
m_schema.FullnameDecoded, filter, new string[] { ColumnName.Text }))
     while (rd.Read())
    { } //Read data here

If you do not want to use MaestroAPI, you can look at the MaestroAPI 
source code to figure out
how to use the MgFeatureService object to query features.

Regards, Kenneth Skovhede, GEOGRAF A/S

On 13-01-2010 10:46, Dejan Gregor wrote:
> Hi,
> I am new to development in MapGuide and C# programming. I would like to
> implement a sample C# application for searching multiple fields of a vector
> FDO feature class (e.g. parcel numbers and other description). I am using
> MGOS 2.1.
> I would need a complete sample code (not just chunks) that I could directly
> implement, but maybe searching on the wrong place. I have a simple AJAX
> Viewer, not Fusion.
> Does anyone know a place to search or submit a stable search engine sample?
> Thanks!
> Dejan
> -----
> Dejan Gregor, MSc
> GISc Researcher and Consultant
> http://www.linkedin.com/in/dgregor

More information about the mapguide-users mailing list