From d68c4aa72ac76eaeb8f2d6f984262555e926da6b Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 26 六月 2023 10:31:28 +0800
Subject: [PATCH] 添加TB文件

---
 .gitignore                    |    2 
 ExportMap/TerraBuilder/tb.js  |   19 ++++
 ExportMap/TerraBuilder/tb.tbp |  170 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 191 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index 36676db..9e148ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,5 @@
 /ExportMap/Sources/shps
 /ExportMap/App_Data
 /ExportMap/temp
+/ExportMap/TerraBuilder/mpt
+/ExportMap/TerraBuilder/temp
diff --git a/ExportMap/TerraBuilder/tb.js b/ExportMap/TerraBuilder/tb.js
new file mode 100644
index 0000000..dc3cc4d
--- /dev/null
+++ b/ExportMap/TerraBuilder/tb.js
@@ -0,0 +1,19 @@
+try{
+    var project = TerraBuilder.OpenProject("E:\\terrait\\TianJin\\ExportMap\\ExportMap\\TerraBuilder\\tb.tbp");
+
+    var eleLayer = project.Layers.InsertLayer("D:\\LF\\data\\6fa147ab-b43e-4ad1-8e4b-534d8cbb60a7\\DEM\\DEM.tif", "Elevation");
+    if (null != eleLayer) eleLayer.ElevationPyramidFormat = 0;
+
+    var imgLayer = project.Layers.InsertLayer("D:\\LF\\data\\6fa147ab-b43e-4ad1-8e4b-534d8cbb60a7\\DOM\\CABQ_0641.tif", "imagery");
+    if (null != imgLayer) imgLayer.ImageryPyramidFormat = 0;
+
+    project.CreateResolutionPyramids();
+
+    //project.Settings.MPTFileName = "E:\\terrait\\TianJin\\ExportMap\\ExportMap\\TerraBuilder\mpt\\0A.mpt";
+    // project.Save();
+    project.CreateMPT();
+
+    TerraBuilder.ExitWhenFinished();
+} catch (ex) {
+    alert(ex.message);
+}
diff --git a/ExportMap/TerraBuilder/tb.tbp b/ExportMap/TerraBuilder/tb.tbp
new file mode 100644
index 0000000..4ac586d
--- /dev/null
+++ b/ExportMap/TerraBuilder/tb.tbp
@@ -0,0 +1,170 @@
+[General]
+Rem0=!------------------------------------------------------------------!
+Rem1=!           TerraBuilder Project - Skyline 2005(c)                 !
+Rem2=!------------------------------------------------------------------!
+[MPTInfo]
+MPTGuid=e7e11911-e9ae-49f2-a6ea-b5fc1cba0627
+TBPVersion=7.2.0.1472
+MPTFileName=E:\terrait\TianJin\ExportMap\ExportMap\TerraBuilder\mpt\tb.mpt
+MPTCreateNew=1
+MPTVersion=1.00000
+MPTUserDWORDData=0
+MPTGeoClipRectData=-180.000000000000, 90.000000000000, 180.000000000000, -90.000000000000
+MPTUserClipRectData=-180.000000000000, 90.000000000000, 180.000000000000, -90.000000000000
+MPTUserClipRectOn=0
+MPTOutFormat=3
+MptOutColorF=1
+MptOutColorQ=85
+MptOutHeightF=101
+MptOutHeightQ=85
+MPTHighSourceSampling=1
+MPTOptimizeSize=1
+MPTCacheVersion=
+MPTUseGlobe=1
+MptUnitToMeter=111111.111111
+MptHighResLevel=4
+MptLowResLevel=0
+MPTCLRColor=0, 0, 0
+MPTCLRHeight=0
+MPTCLRType=0
+MPTHeightInfo=1.000000, 0.000000
+MPTNumberOfLayers=2
+MPTUnits=111111.111111, 1.000000
+MPTGeoUnits=LatLong
+MPTUnitsFormat=0
+MPTHeightGap=0.000000
+MPTGlobeRadius=6378137
+Rem0=............................TBP.....................................
+MPTCoordinateSystem=2
+MPTLocation=E:\terrait\TianJin\ExportMap\ExportMap\TerraBuilder\temp
+MPTValidClipRect=1
+MPTPolyCount=0
+MPTButtonState1=0,0,0,0,1,0,0,0,0,0,0
+MPTButtonState2=0,0,0,0,1,0,0,0,0,0,0
+MPTRuler=1.09863281250000000000e-02
+MaxElevation=10000.000000
+MinElevation=-1000.000000
+UseMinMaxElevation=1
+ForceMinMaxElevation=0
+MPTDontShowGlobeMess=0
+UncNames=0
+Rem1=-------------------------  End Of MPT Info  ----------------------------
+ProjectDescription=
+ProjectTags=
+ProjectName=tb.tbp
+[CoordSysInfo]
+GroupKey=LAT-LONG
+SystemKey=LAT-LONG
+DatumKey=WGS84
+UnitKey=METERS
+WKT=GEOGCS["WGS84 Coordinate System",DATUM["WGS 1984",SPHEROID["WGS 1984",6378137,298.257223563],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"],AUTHORITY["SBMG","LAT-LONG,LAT-LONG,WGS84,METERS"]]
+EPSGKey=4326
+DescriptionKey=WGS84 Coordinate System
+Rem1=-------------------------  End Of Info  ----------------------------
+[TBInfo]
+ViewSize1=1494,842
+ViewSize2=1494,842
+[Layer0]
+LayerStatus=0
+LayerType=1
+LayerGeoRect=-180, 90, 180, -90
+LayerGeoClipRect=-180, 90, 180, -90
+LayerOwnClip=0
+LayerMPPX=0.13333333333333333148
+LayerMPPY=0.13333333333333333148
+LayerMipCacheFormat=7
+LayerMipCacheQuality=85
+LayerHighResLevel=4
+LayerLowResLevel=-1
+LayerUnitToMeter=1.000000
+LayerMPPOnBaseOrder=0
+LayerEnterToMPT=1
+Rem0=...........................CHTData...................................
+LayerCompresionType=1075
+LayerSrcType=mpuplg.rct,
+LayerSrcInfo=C:\Program Files\Skyline\TerraBuilder\BaseGlobe.Ei.mpu
+LayerMipPath=C:\Program Files\Skyline\TerraBuilder\BaseGlobe.Ei.mpu
+LayerMipIncludeSrc=1
+LayerMptCacheName=C:\Program Files\Skyline\TerraBuilder\BaseGlobe.Ei.mpu.mpt
+LayerValScale=1.000000
+LayerValOffset=0.000000
+Rem1=............................TBP.....................................
+LayerHaveMulti=1
+LayerMonochrome=-2
+LayerMaxLevel=11
+LayerSrcMinVal=-327.000000
+LayerSrcMaxVal=6295.000000
+LayerPixInfo=2700.000000, 1350.000000
+LayerSizeInfo=3.600000000000e+02, 1.800000000000e+02
+LayerName=C:\Program Files\Skyline\TerraBuilder\BaseGlobe.Ei.mpu
+LayerTitle=BaseGlobe.Ei.mpu
+LayerMode=0,0,0
+LayerDrawInfo1=-262.617187500000, 148.007812500000, 3.515625000000e-01
+LayerDrawLevel1=-2
+LayerDrawInfo2=-337.500000000000, 176.132812500000, 3.515625000000e-01
+LayerDrawLevel2=-2
+LayerNumPoly=0, 0
+LayerNumColorPoly=0, 0
+LayerNumKeyColorPoly=0, 0
+LayerNumberTiePoints=0
+LayerHadMpu=1
+LayerProjection=0
+ValidSourceCache=1
+ValidForFinalMPT=0
+LayerWKT=
+Rem2=-------------------------  End Of Layer ---------------------------
+[Layer1]
+LayerStatus=0
+LayerType=0
+LayerAsColor=0
+LayerSourceColor=6244297
+LayerGeoRect=-180, 90, 180, -90
+LayerGeoClipRect=-180, 90, 180, -90
+LayerOwnClip=0
+LayerMPPX=0.13333333333333333148
+LayerMPPY=0.13333333333333333148
+LayerMipCacheFormat=7
+LayerMipCacheQuality=85
+LayerHighResLevel=4
+LayerLowResLevel=-1
+LayerUnitToMeter=1.000000
+LayerMPPOnBaseOrder=1
+LayerEnterToMPT=1
+Rem0=...........................CHTData...................................
+LayerCompresionType=1075
+LayerSrcType=mpuplg.rct,
+LayerSrcInfo=C:\Program Files\Skyline\TerraBuilder\BaseGlobe.Ii.mpu
+LayerMipPath=C:\Program Files\Skyline\TerraBuilder\BaseGlobe.Ii.mpu
+LayerMipIncludeSrc=1
+LayerMptCacheName=C:\Program Files\Skyline\TerraBuilder\BaseGlobe.Ii.mpu.mpt
+LayerValScale=1.000000
+LayerValOffset=0.000000
+LayerColorCorrectionR=0.000000, 1.000000, 255.000000, 0.000000, 255.000000
+LayerColorCorrectionG=0.000000, 1.000000, 255.000000, 0.000000, 255.000000
+LayerColorCorrectionB=0.000000, 1.000000, 255.000000, 0.000000, 255.000000
+LayerSaturation=0
+Rem1=............................TBP.....................................
+LayerHaveMulti=1
+LayerMonochrome=0
+LayerMaxLevel=11
+LayerPixInfo=2700.000000, 1350.000000
+LayerSizeInfo=3.600000000000e+02, 1.800000000000e+02
+LayerName=C:\Program Files\Skyline\TerraBuilder\BaseGlobe.Ii.mpu
+LayerTitle=BaseGlobe.Ii.mpu
+LayerMode=0,0,0
+LayerDrawInfo1=-262.617187500000, 148.007812500000, 3.515625000000e-01
+LayerDrawLevel1=-2
+LayerDrawInfo2=-337.500000000000, 176.132812500000, 3.515625000000e-01
+LayerDrawLevel2=-2
+LayerNumPoly=0, 0
+LayerNumColorPoly=0, 0
+LayerNumKeyColorPoly=0, 0
+LayerNumberTiePoints=0
+LayerHadMpu=1
+LayerProjection=0
+ValidSourceCache=1
+ValidForFinalMPT=0
+LayerWKT=
+Rem2=-------------------------  End Of Layer ---------------------------
+[LayerTree]
+L0=<LAYERTREE><GRP name="Base Globe" cat_id="-1" expanded="1"><LYR Num="0"/><LYR Num="1"/></GRP></LAYERTREE>

--
Gitblit v1.9.3