// 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); }
public MyCustomFilter(FeatureGeometry geometry, Distance innerDistance, Distance outerDistance) : base(geometry) { _distanceInner = innerDistance; _distanceOuter = outerDistance; }
private void ShowSearchGeometry(FeatureGeometry g) { ShowSearchGeometry(g, true); }