本文整理汇总了C#中IFeatureSet类的典型用法代码示例。如果您正苦于以下问题:C# IFeatureSet类的具体用法?C# IFeatureSet怎么用?C# IFeatureSet使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IFeatureSet类属于命名空间,在下文中一共展示了IFeatureSet类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: Trend
public Trend(IFeatureSet shapeLayer, int idField, int order, double meanValue) :
base(shapeLayer, idField)
{
this.method = "Trend";
this.meanValue=meanValue;
this.order = order;
if (order>=1 || order <=3){
serie = SerieCoef(order);
GenerateMatrix(order, this.npoints, this.Kpoints);
}
}
开发者ID:shoaib-ijaz,项目名称:geosoft,代码行数:11,代码来源:Trend.cs
示例17: GenerateUniqueColors
/// <summary>
/// Calculates the unique colors as a scheme
/// </summary>
/// <param name="fs">The featureset with the data Table definition</param>
/// <param name="uniqueField">The unique field</param>
public Hashtable GenerateUniqueColors(IFeatureSet fs, string uniqueField)
{
Hashtable result = new Hashtable(); // a hashtable of colors
DataTable dt = fs.DataTable;
ArrayList vals = new ArrayList();
int i = 0;
foreach (DataRow row in dt.Rows)
{
if (uniqueField != "FID")
{
if (vals.Contains(row[uniqueField]) == false)
{
vals.Add(row[uniqueField]);
}
}
else
{
vals.Add(i);
i++;
}
}
Random rnd = new Random();
foreach (object item in vals)
{
Color c = rnd.NextColor();
while(result.ContainsKey(c))
{
c = rnd.NextColor();
}
PolygonCategory cat = new PolygonCategory(c, c, 1);
string flt = "[" + uniqueField + "] = ";
if (uniqueField == "FID")
{
flt += item;
}
else
{
if (dt.Columns[uniqueField].DataType == typeof(string))
{
flt += "'" + item + "'";
}
else
{
flt += item.ToString();
}
}
cat.FilterExpression = flt;
Categories.Add(cat);
result.Add(c, item);
}
return result;
}
开发者ID:zhongshuiyuan,项目名称:mapwindowsix,代码行数:59,代码来源:PolygonScheme.cs
示例18: UniversalKriging
/// <summary>
/// Initializes a new instance of the Kriging class
/// </summary>
/// <param name="shapeLayer">Shapefile type point</param>
/// <param name="idField">Position of field that contains the Z value</param>
public UniversalKriging(IFeatureSet shapeLayer, int idField) :
base(shapeLayer, idField)
{
this.method = "Universal Kriging";
var modelLineal = new ModelLineal
{
C0 = 0,
C1 = 1,
Range = 1
};
// this.CreatePoints(shapeLayer, idField);
this.CalculateDistances();
}
开发者ID:shoaib-ijaz,项目名称:geosoft,代码行数:18,代码来源:UniversalKriging.cs
示例19: RequestContext
public RequestContext(IRequest request, IResponse response,
ISessionStore sessionStore, IAuthenticator authenticator,
IIoCContainer container, IFeatureSet features,
Interceptors interceptors = null)
{
Request = request;
Response = response;
_sessionStore = sessionStore;
_authenticator = authenticator;
_container = new ContainerWrapper(container);
Features = features;
_interceptors = interceptors ?? new Interceptors();
}
开发者ID:jammycakes,项目名称:dolstagis.web,代码行数:13,代码来源:RequestContext.cs
示例20: DelaunayLines
/// <summary>
/// The Voronoi Graph calculation creates a delaunay tesselation where
/// each point is effectively converted into triangles.
/// </summary>
/// <param name="points">The points to use for creating the tesselation.</param>
/// <returns>The generated line featureset.</returns>
public static IFeatureSet DelaunayLines(IFeatureSet points)
{
double[] vertices = points.Vertex;
VoronoiGraph gp = Fortune.ComputeVoronoiGraph(vertices);
FeatureSet result = new FeatureSet();
foreach (VoronoiEdge edge in gp.Edges)
{
Coordinate c1 = edge.RightData.ToCoordinate();
Coordinate c2 = edge.LeftData.ToCoordinate();
LineString ls = new LineString(new List<Coordinate> { c1, c2 });
Feature f = new Feature(ls);
result.AddFeature(f);
}
return result;
}
开发者ID:ExRam,项目名称:DotSpatial-PCL,代码行数:21,代码来源:Voronoi.cs
注:本文中的IFeatureSet类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论