|
@@ -74,6 +74,20 @@ public class TiledMapServiceImpl extends IBaseServiceImpl implements TiledMapSer
|
|
|
|
|
|
/**
|
|
|
* 基本数据写死
|
|
|
+ *
|
|
|
+ * bundle_id:1
|
|
|
+ * file_name: "$DEPTH/$X/$Y.png"
|
|
|
+ * file_path: "data/bundle/building_{building的id}/map_tiles/{floor的id}"
|
|
|
+ * floor_id: 所在楼层的id
|
|
|
+ * id: 唯一就行
|
|
|
+ * location: 数据集的原点,和datasets的location一样
|
|
|
+ * map_size_m: 自己生成的
|
|
|
+ * max_depth: 目录的最大值,算法部会给到json文件里
|
|
|
+ * orientation:根据datasets里的orientation,计算得到的
|
|
|
+ * quadtree: 根据文件目录,计算得到的
|
|
|
+ * tile_size_px: 256
|
|
|
+ * type: "TILED_PYRAMID"
|
|
|
+ *
|
|
|
* @param param
|
|
|
* @return
|
|
|
*/
|
|
@@ -86,10 +100,11 @@ public class TiledMapServiceImpl extends IBaseServiceImpl implements TiledMapSer
|
|
|
/**
|
|
|
* data/bundle/building_1/map_tiles/11
|
|
|
* building_1: bundle_id值
|
|
|
- * 11:floor_id值
|
|
|
+ * 11=floor_id值:site_model.type:floor的id
|
|
|
*/
|
|
|
dto.setFile_path("data/building_1/map");
|
|
|
dto.setFile_name("$DEPTH/$X/$Y.png");
|
|
|
+ // 11=floor_id值:site_model.type:floor的id
|
|
|
dto.setFloor_id(11);
|
|
|
/**
|
|
|
* /阿里云-四维时代-官网测试服务器-120.25.146.52
|