コード例 #1
0
ファイル: MapForm1.cs プロジェクト: rupeshkumar399/seemapcell
        // add geometry to temp layer with hollow style
        private void ShowSearchGeometry(FeatureGeometry g, bool clear)
        {
            if (clear)
            {
                // first clear out any other geometries from table
                (_tempTable as IFeatureCollection).Clear();
            }

            Style s=null;
            if (g is IGenericSurface) // closed geometry, use area style
            {
                s  = new AreaStyle(new SimpleLineStyle(new LineWidth(2, LineWidthUnit.Pixel), 2, Color.Red, false), new SimpleInterior(0));
            }
            else if (g is MapInfo.Geometry.Point)
            {
                s = new SimpleVectorPointStyle(34, Color.Red, 18);
            }
            Feature f = new Feature(g, s);

            // Add feature to temp table
            _tempTable.InsertFeature(f);
        }
コード例 #2
0
ファイル: MapForm1.cs プロジェクト: rupeshkumar399/seemapcell
 public MyCustomFilter(FeatureGeometry geometry, Distance innerDistance, Distance outerDistance)
     : base(geometry)
 {
     _distanceInner = innerDistance;
     _distanceOuter = outerDistance;
 }
コード例 #3
0
ファイル: MapForm1.cs プロジェクト: rupeshkumar399/seemapcell
 private void ShowSearchGeometry(FeatureGeometry g)
 {
     ShowSearchGeometry(g, true);
 }