コード例 #1
0
        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];
                }
            }
        }
コード例 #2
0
 public override void SetTableSchema(FeatureDataTable table)
 {
     table.Merge(GetSchemaTable());
 }
コード例 #3
0
        public void SetTableSchema(FeatureDataTable <TOid> table, SchemaMergeAction schemaAction)
        {
            DataTable dt = GetSchemaTable();

            table.Merge(dt);
        }
コード例 #4
0
 protected void MergeFeatures(IEnumerable <IFeatureDataRecord> features)
 {
     _features.Merge(features, CoordinateTransformation, GeometryFactory);
 }