arcobject for java 将图层保存为图片

 IWorkspaceFactory pWorkspaceFactor = (IWorkspaceFactory)serverContext.createObject(RasterWorkspaceFactory.getClsid());
        IWorkspace pWorkspace = pWorkspaceFactor.openFromFile("F:\\temp\\", 0);
        IRasterLayerExport pRasterLayerExport = (IRasterLayerExport)serverContext.createObject(RasterLayerExport.getClsid());
        pRasterLayerExport.setRasterLayerByRef(pRasterlayer);
        pRasterLayerExport.setForce2RGB(true);
        pRasterLayerExport.export(pWorkspace, "outputPNG.png", "PNG");

你可能感兴趣的:(arcgis,ADF)