public void RenderFeatureTest() { IFeatureProvider provider = DataSourceHelper.CreateGeometryDatasource(_factories.GeoFactory); TestVectorRenderer vectorRenderer = new TestVectorRenderer(); BasicGeometryRenderer2D <RenderObject> geometryRenderer = new BasicGeometryRenderer2D <RenderObject>(vectorRenderer); FeatureDataTable features = new FeatureDataTable(_factories.GeoFactory); IExtents extents = provider.GetExtents(); FeatureQueryExpression query = new FeatureQueryExpression(extents.ToGeometry(), SpatialOperation.Intersects, provider); features.Merge(provider.ExecuteFeatureQuery(query) as IEnumerable <IFeatureDataRecord>, provider.GeometryFactory); foreach (FeatureDataRow feature in features) { IGeometry g = feature.Geometry; List <RenderObject> renderedObjects = new List <RenderObject>(geometryRenderer.RenderFeature(feature)); for (Int32 i = 0; i < renderedObjects.Count; i++) { RenderObject ro = renderedObjects[i]; } } }
public override void SetTableSchema(FeatureDataTable table) { table.Merge(GetSchemaTable()); }
public void SetTableSchema(FeatureDataTable <TOid> table, SchemaMergeAction schemaAction) { DataTable dt = GetSchemaTable(); table.Merge(dt); }
protected void MergeFeatures(IEnumerable <IFeatureDataRecord> features) { _features.Merge(features, CoordinateTransformation, GeometryFactory); }