${iServerJava6R_GetFeaturesBySQLService_Title}

${iServerJava6R_GetFeaturesBySQLService_Description}

Inheritance: SuperMap.Web.Service.ServiceBase
        public iServerJava6RRouteCalculateMeasure()
        {
            InitializeComponent();

            _routeLayer = MyMap.Layers["RouteLayer"] as FeaturesLayer;
            _elementsLayer = MyMap.Layers["MyElementsLayer"] as ElementsLayer;

            GetFeaturesBySQLParameters param = new GetFeaturesBySQLParameters
            {
                DatasetNames = new List<string> { "Changchun:RouteDT_road" },
                FilterParameter = new SuperMap.Web.iServerJava6R.FilterParameter
                {
                    AttributeFilter = "RouteID = 1690",
                }
            };
            GetFeaturesBySQLService ser = new GetFeaturesBySQLService(_dataUrl);
            ser.Failed += new EventHandler<ServiceFailedEventArgs>(ser_Failed);
            ser.ProcessCompleted += new EventHandler<GetFeaturesEventArgs>(ser_ProcessCompleted);
            ser.ProcessAsync(param);

            Pushpin pushpin1 = new Pushpin();
            pushpin1.IsEnabled = false;
            pushpin1.Location = new Point2D(4020.0045, -4377.0273);
            pushpin1.Content = "A";
            this._elementsLayer.AddChild(pushpin1);

            Pushpin pushpin2 = new Pushpin();
            pushpin2.IsEnabled = false;
            pushpin2.Location = new Point2D(6214.1838, -4209.9278);
            pushpin2.Content = "B";
            this._elementsLayer.AddChild(pushpin2);
            
        }
 private void GetFeaturesBySQLTest_Click(object sender , RoutedEventArgs e)
 {
     if (string.IsNullOrEmpty(MyTextBox.Text) || string.IsNullOrWhiteSpace(MyTextBox.Text))
     {
         MessageBox.Show("请输入查询条件");
         return;
     }
     GetFeaturesBySQLParameters param = new GetFeaturesBySQLParameters
     {
         DatasetNames = new List<string> { "World:Capitals" } ,
         FilterParameter = new SuperMap.Web.iServerJava6R.FilterParameter
         {
             AttributeFilter = MyTextBox.Text ,
         }
     };
     GetFeaturesBySQLService ser = new GetFeaturesBySQLService(url);
     ser.Failed += new EventHandler<SuperMap.Web.Service.ServiceFailedEventArgs>(ser_Failed);
     ser.ProcessCompleted += new EventHandler<GetFeaturesEventArgs>(ser_ProcessCompleted);
     ser.ProcessAsync(param);
 }
        void Chongqing_Loaded()
        {
            GetFeaturesBySQLParameters param = new GetFeaturesBySQLParameters
            {
                DatasetNames = new List<String>() { "A_重庆5万:roalkL" },
                FromIndex = 0,
                ToIndex = 20000
            };

            FilterParameter filterParameters = new FilterParameter();
            filterParameters.Name = "roalkL@A_重庆5万";
            filterParameters.AttributeFilter = "SMID=10";

            param.FilterParameter = filterParameters;

            GetFeaturesBySQLService getFeaturesByGeometryServiceInSelectEditTool = new GetFeaturesBySQLService("http://localhost:8090/iserver/services/data-world/rest/data/featureResults");
            getFeaturesByGeometryServiceInSelectEditTool.ProcessAsync(param);
            getFeaturesByGeometryServiceInSelectEditTool.ProcessCompleted += new EventHandler<GetFeaturesEventArgs>(getFeaturesByGeometryServiceInSelectEditTool_ProcessCompleted);
            getFeaturesByGeometryServiceInSelectEditTool.Failed += new EventHandler<ServiceFailedEventArgs>(query_Failed);
        }