Ejemplo n.º 1
0
        //when clicking "OK"
        private void btnOK_Click(object sender, EventArgs e)
        {
            queryResult = null;
            SpatiaLiteHelper slh = new SpatiaLiteHelper();
            queryResult = slh.ReadFeatureSet(connString, txtQuery.Text);

            dgQueryResult.DataSource = queryResult.DataTable;

            //SpatiaLiteHelper slh = new SpatiaLiteHelper();

            //foreach (DataGridViewRow r in dgGeometryColumns.Rows)
            //{
            //    if (r.Selected)
            //    {
            //        GeometryColumnInfo item = r.DataBoundItem as GeometryColumnInfo;
            //        if (item != null)
            //        {
            //            IFeatureSet fs = slh.ReadFeatureSet(connString, item);

            //            IMapFeatureLayer lay = mainMap.Layers.Add(fs);
            //            //lay.EditMode = false;

            //        }
            //    }
            //}
        }
Ejemplo n.º 2
0
        // when clicking "OK"
        private void BtnOkClick(object sender, EventArgs e)
        {
            _queryResult = null;
            _queryResult = _slh.ReadFeatureSet(txtQuery.Text);

            dgQueryResult.DataSource = _queryResult.DataTable;
        }
Ejemplo n.º 3
0
        //when clicking "OK"
        private void btnOK_Click(object sender, EventArgs e)
        {
            queryResult = null;
            SpatiaLiteHelper slh = new SpatiaLiteHelper();

            queryResult = slh.ReadFeatureSet(connString, txtQuery.Text);

            dgQueryResult.DataSource = queryResult.DataTable;

            //SpatiaLiteHelper slh = new SpatiaLiteHelper();

            //foreach (DataGridViewRow r in dgGeometryColumns.Rows)
            //{
            //    if (r.Selected)
            //    {
            //        GeometryColumnInfo item = r.DataBoundItem as GeometryColumnInfo;
            //        if (item != null)
            //        {
            //            IFeatureSet fs = slh.ReadFeatureSet(connString, item);

            //            IMapFeatureLayer lay = mainMap.Layers.Add(fs);
            //            //lay.EditMode = false;

            //        }
            //    }
            //}
        }
Ejemplo n.º 4
0
        // when clicking "OK"
        private void BtnOkClick(object sender, EventArgs e)
        {
            _queryResult = null;
            SpatiaLiteHelper slh = new SpatiaLiteHelper();

            _queryResult = slh.ReadFeatureSet(_connString, txtQuery.Text);

            dgQueryResult.DataSource = _queryResult.DataTable;
        }
Ejemplo n.º 5
0
        // when clicking "OK"
        private void BtnOkClick(object sender, EventArgs e)
        {
            foreach (DataGridViewRow r in dgGeometryColumns.SelectedRows)
            {
                if (r.DataBoundItem is GeometryColumnInfo item)
                {
                    IFeatureSet fs = _slh.ReadFeatureSet(item);
                    _mainMap.Layers.Add(fs);
                }
            }

            Close();
        }
Ejemplo n.º 6
0
        // when clicking "OK"
        private void BtnOkClick(object sender, EventArgs e)
        {
            SpatiaLiteHelper slh = new SpatiaLiteHelper();

            foreach (DataGridViewRow r in dgGeometryColumns.Rows)
            {
                if (r.Selected)
                {
                    GeometryColumnInfo item = r.DataBoundItem as GeometryColumnInfo;
                    if (item != null)
                    {
                        IFeatureSet fs = slh.ReadFeatureSet(_connString, item);
                        _mainMap.Layers.Add(fs);
                    }
                }
            }
        }
Ejemplo n.º 7
0
        //when clicking "OK"
        private void btnOK_Click(object sender, EventArgs e)
        {
            SpatiaLiteHelper slh = new SpatiaLiteHelper();

            foreach (DataGridViewRow r in dgGeometryColumns.Rows)
            {
                if (r.Selected)
                {
                    GeometryColumnInfo item = r.DataBoundItem as GeometryColumnInfo;
                    if (item != null)
                    {
                        IFeatureSet fs = slh.ReadFeatureSet(connString, item);

                        IMapFeatureLayer lay = mainMap.Layers.Add(fs);
                        //lay.EditMode = false;
                    }
                }
            }
        }