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?

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

        OGRFeatureOptions featureOptions;
        featureOptions.url()="E:/osgEarth/osgearth2.3/data/china.shp";

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