/// <inheritdoc /> public DataColumn GetColumn(string name) { return(_featureSet.GetColumn(name)); }
private IFeatureSet ConvertToPoints(IFeatureSet originalData) { string field = Field; IFeatureSet fea = new FeatureSet(FeatureType.Point); fea.Projection = originalData.Projection; DataColumn col = originalData.GetColumn(field); DataColumn coln = new DataColumn(col.ColumnName, col.DataType); fea.DataTable.Columns.Add(coln); foreach (Feature feature in originalData.Features) { foreach (Coordinate c in feature.BasicGeometry.Coordinates) { IFeature nfeature = fea.AddFeature(new DotSpatial.Topology.Point(c.X, c.Y)); nfeature.DataRow[field] = feature.DataRow[field]; } } return fea; }