zoukankan      html  css  js  c++  java
  • ArcGIS Pro地图册操作

    MapSeriesExportOptions MSExport_custom = new MapSeriesExportOptions()
          {
            ExportPages = ExportPages.Custom,
            CustomPages = "1-3, 5",
            ExportFileOptions = ExportFileOptions.ExportAsSinglePDF,
            ShowSelectedSymbology = false
          };
    
          //Check to see if the path is valid and export
          if (msPDF.ValidateOutputFilePath())
          {
            layout.Export(msPDF, MSExport_custom);  //Export the PDF to a single, multiple page PDF. 
          }
          #endregion Layout_ExportMS_PDF
    
    
          #region Layout_ExportMS_TIFF
          //Export multiple map series pages to TIFF
    
          //Create a TIFF export format
          TIFFFormat msTIFF = new TIFFFormat()
          {
            Resolution = 300,
            OutputFileName = filePath,
            ColorMode = ColorMode.TwentyFourBitTrueColor,
            HasGeoTiffTags = true,
            HasWorldFile = true
          };
    
          //Set up the export options for the map series
          MapSeriesExportOptions MSExport_All = new MapSeriesExportOptions()
          {
            ExportPages = ExportPages.All,
            ExportFileOptions = ExportFileOptions.ExportMultipleNames,
            ShowSelectedSymbology = false
          };
    
          //Check to see if the path is valid and export
          if (msPDF.ValidateOutputFilePath())
          {
            layout.Export(msPDF, MSExport_All);  //Export each page to a TIFF and apppend the page name suffix to each output file 
          }
          #endregion Layout_ExportMS_TIFF
    
    
          #region Layout_RefreshMapSeries
          //Refresh the map series associated with the layout.
    
          //Perform on the worker thread
          await QueuedTask.Run(() =>
          {
            layout.RefreshMapSeries();
          });
          #endregion Layout_RefreshMapSeries
    
    
          #region Layout_SaveAsFile
          //Save a layout to a pagx file.
    
          //Perform on the worker thread
          await QueuedTask.Run(() =>
          {
            layout.SaveAsFile(filePath);
          });
    

      

  • 相关阅读:
    基于emWin的WAV,MP3软解软件播放器,带类似千千静听频谱,含uCOS-III和FreeRTOS两个版本
    [Linux-CentOS7]yum清华源CentOS7
    [Python]random生成随机6位验证码
    [Python]公司接口返回值规范
    [MacOS]Chrome 强制刷新
    Mybatis的XML中数字不为空的判断
    康师傅JVM:执行引擎(十二)
    Qt 随机颜色的生成
    Qt QVector常见使用方法
    Qt 判断文件是否存在
  • 原文地址:https://www.cnblogs.com/gisoracle/p/12619052.html
Copyright © 2011-2022 走看看