shp polygon to rasteration C++ MFC

classic Classic list List threaded Threaded
1 message Options
罗伯特 罗伯特
Reply | Threaded
Open this post in threaded view

shp polygon to rasteration C++ MFC

Could you give me a sample to slove this problem?

Style style;
        PolygonSymbol* ls=style.getOrCreateSymbol<PolygonSymbol>();

        OGRFeatureOptions featureOptions;

         AGGLiteOptions rasterOptions;
               rasterOptions.featureOptions() = featureOptions;
               rasterOptions.styles() = new StyleSheet();
               rasterOptions.styles()->addStyle( style );
               map->addImageLayer( new ImageLayer("my features", rasterOptions) );