当前位置: 首页>>代码示例>>C#>>正文


C# IFeatureSet类代码示例

本文整理汇总了C#中IFeatureSet的典型用法代码示例。如果您正苦于以下问题:C# IFeatureSet类的具体用法?C# IFeatureSet怎么用?C# IFeatureSet使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IFeatureSet类属于命名空间,在下文中一共展示了IFeatureSet类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CheckDataInput

 public CheckDataInput(IFeatureSet originalData, string field, string trans)
 {
     this._originalData = originalData;
     this.field = field;
     this.trans = trans;
 
 }
开发者ID:shoaib-ijaz,项目名称:geosoft,代码行数:7,代码来源:CheckDataInput.cs

示例2: ExcelJoin

 /// <summary>
 /// Show the dialog to join an Excel table with a feature set.
 /// </summary>
 /// <param name="e"></param>
 public void ExcelJoin(IFeatureSet e)
 {
     using (var jd = new JoinDialog(e))
     {
         ShowDialog(jd);
     }
 }
开发者ID:hanchao,项目名称:DotSpatial,代码行数:11,代码来源:FeatureLayerActions.cs

示例3: MapPointLayer

 /// <summary>
 /// Creates a new instance of a GeoPointLayer without sending any status messages
 /// </summary>
 /// <param name="featureSet">The IFeatureLayer of data values to turn into a graphical GeoPointLayer</param>
 public MapPointLayer(IFeatureSet featureSet)
     : base(featureSet)
 {
     // this simply handles the default case where no status messages are requested
     Configure();
     OnFinishedLoading();
 }
开发者ID:joelmuzz,项目名称:DotSpatial,代码行数:11,代码来源:MapPointLayer.cs

示例4: btnOK_Click

        //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;

            //        }
            //    }
            //}
        }
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:27,代码来源:frmQuery.cs

示例5: CombinedFields

 /// <summary>
 /// Generates an empty featureset that has the combined fields from this featureset
 /// and the specified featureset.
 /// </summary>
 /// <param name="self">This featureset</param>
 /// <param name="other">The other featureset to combine fields with.</param>
 /// <returns></returns>
 public static IFeatureSet CombinedFields(this IFeatureSet self, IFeatureSet other)
 {
     IFeatureSet result = new FeatureSet(self.FeatureType);
     Dictionary<string, DataColumn> resultColumns = new Dictionary<string, DataColumn>();
     foreach (DataColumn dc in self.DataTable.Columns)
     {
         string name = dc.ColumnName;
         int i = 1;
         while (resultColumns.ContainsKey(name))
         {
             name = dc.ColumnName + i;
             i++;
         }
         resultColumns.Add(name, dc);
     }
     foreach (DataColumn dc in other.DataTable.Columns)
     {
         string name = dc.ColumnName;
         int i = 1;
         while (resultColumns.ContainsKey(name))
         {
             name = dc.ColumnName + i;
             i++;
         }
         resultColumns.Add(name, dc);
     }
     foreach (KeyValuePair<string, DataColumn> pair in resultColumns)
     {
         result.DataTable.Columns.Add(new DataColumn(pair.Key, pair.Value.DataType));
     }
     return result;
 }
开发者ID:DIVEROVIEDO,项目名称:DotSpatial,代码行数:39,代码来源:FeatureSetExt.cs

示例6: Insert

 public static IMapFeatureLayer Insert(this IMapLayerCollection collection, int index, IFeatureSet featureSet)
 {
     if (featureSet != null)
     {
         featureSet.ProgressHandler = collection.ProgressHandler;
         if ((featureSet.FeatureType == FeatureType.Point) || (featureSet.FeatureType == FeatureType.MultiPoint))
         {
             IMapPointLayer item = new MapPointLayer(featureSet);
             collection.Insert(index, item);
             item.ProgressHandler = collection.ProgressHandler;
             return item;
         }
         if (featureSet.FeatureType == FeatureType.Line)
         {
             IMapLineLayer layer2 = new MapLineLayer(featureSet);
             collection.Insert(index, layer2);
             layer2.ProgressHandler = collection.ProgressHandler;
             return layer2;
         }
         if (featureSet.FeatureType == FeatureType.Polygon)
         {
             IMapPolygonLayer layer3 = new MapPolygonLayer(featureSet);
             collection.Insert(index, layer3);
             layer3.ProgressHandler = collection.ProgressHandler;
             return layer3;
         }
     }
     return null;
 }
开发者ID:ondrejpialek,项目名称:Genesis,代码行数:29,代码来源:MapLayerCollectionExtensions.cs

示例7: FeatureFromPoints

       public static IFeatureSet FeatureFromPoints(List<Kpoint> points, IFeatureSet refe)
        {
            foreach(Kpoint p in points)
               {
                }

            return refe;
        }
开发者ID:shoaib-ijaz,项目名称:geosoft,代码行数:8,代码来源:Utils.cs

示例8: Configure

        private void Configure(IFeatureSet inFeatureSet)
        {
            if (inFeatureSet == null) throw new ArgumentNullException("inFeatureSet");
            if (inFeatureSet.FeatureType != FeatureType.Polygon) throw new PolygonFeatureTypeException();

            Symbology = new PolygonScheme();
            Symbology.SetParentItem(this);
        }
开发者ID:hanchao,项目名称:DotSpatial,代码行数:8,代码来源:PolygonLayer.cs

示例9: FeatureSelection

 /// <summary>
 ///
 /// </summary>
 /// <param name="featureSet"></param>
 /// <param name="inFilter"></param>
 /// <param name="activeType"></param>
 /// <param name="isReadOnly"></param>
 public FeatureSelection(IFeatureSet featureSet, IDrawingFilter inFilter, FilterType activeType, bool isReadOnly)
 {
     _filter = inFilter;
     _activeType = activeType;
     _isReadOnly = isReadOnly;
     _featureSet = featureSet;
     Configure();
 }
开发者ID:DIVEROVIEDO,项目名称:DotSpatial,代码行数:15,代码来源:FeatureSelection.cs

示例10: Configure

 private void Configure(IFeatureSet inFeatureSet)
 {
     if (inFeatureSet.FeatureType != FeatureType.Line)
     {
         throw new LineFeatureTypeException();
     }
     Symbology = new LineScheme();
 }
开发者ID:DIVEROVIEDO,项目名称:DotSpatial,代码行数:8,代码来源:LineLayer.cs

示例11: IDW

        /// <summary>
        /// Initializes a new instance of the IDW class
        /// </summary>
        /// <param name="shapeLayer">Shapefile type point</param>
        /// <param name="idField">Position of field that contains the Z value</param>
        public IDW(IFeatureSet shapeLayer, int idField) :
            base(shapeLayer, idField)
        {
            this.method = "IDW";

           // this.CreatePoints(shapeLayer, idField);
          //  this.CalculateDistances();
        }
开发者ID:shoaib-ijaz,项目名称:geosoft,代码行数:13,代码来源:IDW.cs

示例12: SearchResultItem

        public SearchResultItem(string serviceCode, IFeatureSet featureSet)
        {
            if (serviceCode == null) throw new ArgumentNullException("serviceCode");
            if (featureSet == null) throw new ArgumentNullException("featureSet");
            Contract.EndContractBlock();

            ServiceCode = serviceCode;
            FeatureSet = featureSet;
        }
开发者ID:CUAHSI,项目名称:HydroClient,代码行数:9,代码来源:SearchResult.cs

示例13: Selection

 /// <summary>
 /// Creates a new instance of Selection
 /// </summary>
 public Selection(IFeatureSet fs, IDrawingFilter inFilter):base(fs, inFilter, FilterTypes.Selection)
 {
     Selected = true;
     UseSelection = true;
     UseCategory = false;
     UseVisibility = false;
     UseChunks = false;
     SelectionMode = SelectionModes.IntersectsExtent;
 }
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:12,代码来源:Selection.cs

示例14: LocalTrend

 public LocalTrend(IFeatureSet shapeLayer, int idField, int order) :
     base(shapeLayer, idField)
 {
     this.method = "LocalTrend";
     this.order = order;
     if (order >= 1 || order <= 3)
     {
         serie = SerieCoef(order);
     }
 }
开发者ID:shoaib-ijaz,项目名称:geosoft,代码行数:10,代码来源:LocalTrend.cs

示例15: Configure

 private void Configure(IFeatureSet inFeatureSet)
 {
     if (inFeatureSet.FeatureType != FeatureType.Polygon)
     {
         throw new PolygonFeatureTypeException();
     }
     PolygonScheme ps = new PolygonScheme();
     ps.SetParentItem(this);
     Symbology = ps;
 }
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:10,代码来源:PolygonLayer.cs


注:本文中的IFeatureSet类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。