I have been trying to get this to work and have posted a couple question and so far I have not got anywhere. I am trying to use C# and the Manifold object model to pass a parameter to a query in a Map file. I found the following code in one of Manifold's examples and would you believe that it doesn't work! I have tried to port this over to C# (example below). //Tracker Example script application var queryLength = mapserver.Document.ComponentSet("QueryLength"); queryLength.ParameterSet(0).Value = wktLine; queryLength.ParameterSet(1).Value = trackUnit; queryLength.Run(); //My attempt at C# code Manifold.Interop.Query q = (Manifold.Interop.Query)mapServer.Document.ComponentSet["LoadTickets Points Drawing"]; q.ParameterSet[0].Value = "10"; q.Run(); The problem seems to be that the object is not a Query, it seems to be a Manifold.Interop.DrawingClass. This does not make since because the DrawingClass does not have a ParameterSet property or a Run Property. But in the Manifold example it implies that it does. Can anyone help me out with this? Thanks Eddie
|