| | |
| | | var gDebug = false; |
| | | var groupName = "空间统计"; |
| | | |
| | | var rs = { |
| | | count: 0, // 要素总个数 |
| | | |
| | | lineLen: 0, // 线对象长度 |
| | | |
| | | polyArea: 0, // 多边形面积 |
| | | |
| | | volume: 0, // 三维体体积 |
| | | |
| | | reset: function () { |
| | | this.count = 0; |
| | | this.lineLen = 0; |
| | | this.polyArea = 0; |
| | | this.valueOf = 0; |
| | | }, |
| | | |
| | | setVal: function () { |
| | | $("#totalNum").html(this.count.toString()); |
| | | $("#lineLen").html(this.lineLen.toString()); |
| | | $("#polyArea").html(this.polyArea.toString()); |
| | | $("#volume").html(this.volume.toString()); |
| | | } |
| | | }; |
| | | |
| | | $(function () { |
| | | init(); |
| | | }); |
| | |
| | | } |
| | | |
| | | function clear(e) { |
| | | $("#totalNum").html("0"); //要素总个数 |
| | | $("#lineLen").html("0"); // 线对象长度 |
| | | $("#polyArea").html("0"); // 多边形面积 |
| | | $("#volume").html("0"); // 三维体体积 |
| | | $("#minHeight").html("0"); //三维体最低高度 |
| | | $("#maxHeight").html("0"); // 三维体最高高度 |
| | | rs.reset(); |
| | | rs.setVal(); |
| | | delGroup(); |
| | | } |
| | | |
| | | function startQuery(e) { |
| | |
| | | <td class="s8b"> |
| | | <label for="Mode" class="i18n">多边形面积</label> |
| | | </td> |
| | | <td> <span id="polyArea">0</span> 平方千米 |
| | | <td> <span id="polyArea">0</span> 平方米 |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="s8b"> |
| | | <label for="Mode" class="i18n">三维体体积</label> |
| | | </td> |
| | | <td> <span id="volume">0</span> 立方千米 |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="s8b"> |
| | | <label for="Mode" class="i18n">三维体高度</label> |
| | | </td> |
| | | <td> 最低 <span id="minHeight">0</span> 米,最高 <span id="maxHeight">0</span> 米 |
| | | <td> <span id="volume">0</span> 立方米 |
| | | </td> |
| | | </tr> |
| | | </table> |