Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="objFolder">folder contains obj files</param>
 /// <param name="outputFolder">tiles output folder</param>
 /// <param name="gisPosition">where the tiles are</param>
 public TilesConverter(string objFolder, string outputFolder,
                       GisPosition gisPosition)
 {
     _objFolder   = objFolder;
     _gisPosition = gisPosition;
     _options     = new TilesOptions {
         OutputFolder = outputFolder
     };
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="objFolder">all objModels should be in this folder</param>
 /// <param name="objModels"></param>
 /// <param name="gisPosition"></param>
 /// <param name="options"></param>
 public TilesConverter(string objFolder, ICollection <ObjModel> objModels, GisPosition gisPosition, TilesOptions options)
 {
     _objFolder   = objFolder;
     _gisPosition = gisPosition;
     if (objModels is List <ObjModel> )
     {
         _objModels = (List <ObjModel>)objModels;
     }
     else
     {
         _objModels = new List <ObjModel>(objModels);
     }
     _options = options ?? new TilesOptions();
     if (String.IsNullOrEmpty(_options.OutputFolder))
     {
         _options.OutputFolder = Path.Combine(objFolder, "ConvertedTiles");
     }
     if (_options != null)
     {
         MergeTileJsonFiles = _options.MergeTileJsonFiles;
         WriteChildTileJson = _options.WriteChildTileJson;
     }
 }