关于TerraBuilder的扩展开发

熟悉Skyline的朋友,可能会发现,在最新的6.6的产品体系中,TerraBuilder中用于生成三维地形场景的模块,改成了TerrainBuilder。

通常情况下,这款软件模块,我们主要用它来进行正射影像和高程数据的合成。

有些时候,我们的数据工程师们,可能觉得手动的添加一些数据到TerrainBuilder有些重复、单调,如何提高一下效率呢?

我们试着用记事本打开*.tbp文件,居然打开了,而且不是乱码,是不是有一点小惊喜呢?

好吧!拽上你的开发工程师兄弟,自己定制一个增强版的TerrainBuilder吧!

[General]
Rem0=!------------------------------------------------------------------!
Rem1=!           TerraBuilder Project - Skyline 2005(c)                 !
Rem2=!------------------------------------------------------------------!
[MPTInfo]
MPTGuid=3d7dc69e-788d-4a83-8b27-63f41041b866
TBPVersion=6.6.1.363
MPTFileName=C:UsersAdministratorDocuments11.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=100
MptOutHeightF=101
MptOutHeightQ=100
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=C:UsersAdministratorDocuments1
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-002
MaxElevation=10000.000000
MinElevation=-1000.000000
UseMinMaxElevation=0
ForceMinMaxElevation=0
MPTDontShowGlobeMess=0
UncNames=0
Rem1=-------------------------  End Of MPT Info  ----------------------------
ProjectDescription=
ProjectTags=
ProjectName=1.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=935,533
ViewSize2=935,533
[Layer0]
LayerStatus=0
LayerType=1
LayerGeoRect=-180, 90, 180, -90
LayerGeoClipRect=-180, 90, 180, -90
LayerOwnClip=0
LayerMPPX=0.13333333333333333
LayerMPPY=0.13333333333333333
LayerMipCacheFormat=7
LayerMipCacheQuality=85
LayerHighResLevel=4
LayerLowResLevel=-1
LayerUnitToMeter=1.000000
LayerMPPOnBaseOrder=-1
LayerEnterToMPT=1
Rem0=...........................CHTData...................................
LayerCompresionType=1075
LayerSrcType=mpuplg.rct,
LayerSrcInfo=D:Program Files (x86)SkylineTerraBuilderBaseGlobe.Ei.mpu
LayerMipPath=D:Program Files (x86)SkylineTerraBuilderBaseGlobe.Ei.mpu
LayerMipIncludeSrc=1
LayerMptCacheName=D:Program Files (x86)SkylineTerraBuilderBaseGlobe.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+002, 1.800000000000e+002
LayerName=D:Program Files (x86)SkylineTerraBuilderBaseGlobe.Ei.mpu
LayerTitle=BaseGlobe.Ei.mpu
LayerMode=0,1,0
LayerDrawInfo1=-328.710937500000, 187.382812500000, 7.031250000000e-001
LayerDrawLevel1=-1
LayerDrawInfo2=-239.414062500000, 118.828125000000, 3.515625000000e-001
LayerDrawLevel2=-2
LayerNumPoly=0, 0
LayerNumColorPoly=0, 0
LayerNumKeyColorPoly=0, 0
LayerNumberTiePoints=0
LayerHadMpu=0
LayerProjection=0
ValidSourceCache=1
ValidForFinalMPT=0
LayerWKT=
Rem2=-------------------------  End Of Layer ---------------------------
[Layer1]
LayerStatus=0
LayerType=0
LayerAsColor=0
LayerSourceColor=13568048
LayerGeoRect=-180, 90, 180, -90
LayerGeoClipRect=-180, 90, 180, -90
LayerOwnClip=0
LayerMPPX=0.13333333333333333
LayerMPPY=0.13333333333333333
LayerMipCacheFormat=7
LayerMipCacheQuality=85
LayerHighResLevel=4
LayerLowResLevel=-1
LayerUnitToMeter=1.000000
LayerMPPOnBaseOrder=-1
LayerEnterToMPT=1
Rem0=...........................CHTData...................................
LayerCompresionType=1075
LayerSrcType=mpuplg.rct,
LayerSrcInfo=D:Program Files (x86)SkylineTerraBuilderBaseGlobe.Ii.mpu
LayerMipPath=D:Program Files (x86)SkylineTerraBuilderBaseGlobe.Ii.mpu
LayerMipIncludeSrc=1
LayerMptCacheName=D:Program Files (x86)SkylineTerraBuilderBaseGlobe.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+002, 1.800000000000e+002
LayerName=D:Program Files (x86)SkylineTerraBuilderBaseGlobe.Ii.mpu
LayerTitle=BaseGlobe.Ii.mpu
LayerMode=0,1,0
LayerDrawInfo1=-328.710937500000, 187.382812500000, 7.031250000000e-001
LayerDrawLevel1=-1
LayerDrawInfo2=-239.414062500000, 118.828125000000, 3.515625000000e-001
LayerDrawLevel2=-2
LayerNumPoly=0, 0
LayerNumColorPoly=0, 0
LayerNumKeyColorPoly=0, 0
LayerNumberTiePoints=0
LayerHadMpu=0
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>

  

原文地址:https://www.cnblogs.com/yitianhe/p/5794763.html