• 周日. 10 月 6th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

3DGIS技术在智慧消防的典型案例-市政消火栓水压监测系统

admin

11 月 28, 2021

        按照“平台优先、应用至上”建设思路,采取“1+1”模式,即一个“系统总体”(共性平台)和一个“分类专项”(应用示范——市政消防栓智能管理系统),通过技术和应用创新,成为重庆“智慧消防”建设的实战平台、科研平台、演练平台和培训平台。

  以虚拟现实技术为基础,以数据为核心,以流程为线索,以事件为驱动,综合应用GIS、物联网、人工智能、数据可视化、自动化控制等技术,建立基于3DGIS的市政消火栓管控系统,通过多源多模信息融合、数据分析、模式发现和信息展示,服务于市政消火栓状态监控与管理、事故预警与预测、事件的分析与决策、任务发布与下达等业务应用,并具有信息全景化、数据可视化、流程信息化、预案沙盘化、展示临场化和管理精细化的特点。

  (1)独立三维场景

  大坪街道、解放碑街道三维电子沙盘各设计为一个独立的三维场景。

  (2)辖区外标识

  辖区外重要的公路等交通干线、附近地区重要的企、事业单位和厂矿,二维地图加名称、文字标识出来。

  (3)两类三维模型

  第一类为采用倾斜摄影技术建模,如本项目区域内的大型建筑、地形地貌、市政道路、园林植被等;第二类为手工建模,如消火栓等设备设施及地下供水管网等。

  (4)倾斜摄影模型大坪街道与卫星图衔接效果

       (6)消火栓与现场监测数据集成

  通过物联网,将消火栓的水压监测设备的监测数据实时上传,并进行集成管理应用。

  (7)人员定位数据集成

  (8)平台功能


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title data-i18n="resources.title_closestFacilitiesService"></title>
<style type="text/css">
        body {
            margin: 0;
            overflow: hidden;
            background: #fff;
             100%;
            height: 100%
        }

        #map {
            position: absolute;
             100%;
            height: 100%;
        }

        #toolbar {
            position: absolute;
            top: 50px;
            right: 10px;
             320px;
            text-align: center;
            z-index: 100;
            border-radius: 4px;
        }
    </style>
</head>
<body>
<div id="toolbar" class="panel panel-primary">
<div class='panel-heading'>
<h5 class='panel-title text-center' data-i18n="resources.text_closestFacilitiesService"></h5></div>
<div class='panel-body content'>
<div class='panel'>
<div class='input-group'>
<span class='input-group-addon' data-i18n="resources.text_weightField"></span>
<select class='form-control' id='edgeWeightNames'>
<option>length</option>
<option>time</option>
</select>
</div>
</div>
<div class='panel'>
<div class='input-group'>
<span class='input-group-addon' data-i18n="resources.text_turnField"></span>
<select class='form-control' id='turnNodeWeightNames'>
<option>TurnCost</option>
</select>
</div>
</div>
<input type="button" class="btn btn-default" data-i18n="[value]resources.text_input_value_eventPoint" onclick="selectEventPoint()"/>&nbsp;
<input type="button" class="btn btn-default" data-i18n="[value]resources.text_input_value_submit" onclick="findClosestFacilities()"/>&nbsp;
<input type="button" class="btn btn-default" data-i18n="[value]resources.text_input_value_clear" onclick="clearElements()"/>
</div>
</div>
<div id="map"></div>
<script type="text/javascript" include="bootstrap,widgets.alert" src="../js/include-web.js"></script>
<script type="text/javascript" exclude="iclient-classic" src="../../dist/classic/include-classic.js"></script>
<script>
    var host = window.isLocal ? window.server : "https://iserver.supermap.io";
    var  map, layer, vectorLayer, markerLayer1,
        markerLayer2, drawPoint, eventPoint, n = 0,
        facilityPoints = [
            new SuperMap.Geometry.Point(6000, -5500),
            new SuperMap.Geometry.Point(5500, -2500),
            new SuperMap.Geometry.Point(2500, -3500)],
        style = {
            strokeColor: "#304DBE",
            strokeWidth: 3,
            pointerEvents: "visiblePainted",
            fill: false
        },
        url1 = host + "/iserver/services/map-changchun/rest/maps/长春市区图",
        url2 = host + "/iserver/services/transportationanalyst-sample/rest/networkanalyst/RoadNet@Changchun";

    init();

    function init() {
        vectorLayer = new SuperMap.Layer.Vector("Vector Layer");
        drawPoint = new SuperMap.Control.DrawFeature(vectorLayer, SuperMap.Handler.Point);
        drawPoint.events.on({"featureadded": drawCompleted});
        map = new SuperMap.Map("map", {
            controls: [
                new SuperMap.Control.ScaleLine(),
                new SuperMap.Control.Zoom(),
                new SuperMap.Control.Navigation({
                    dragPanOptions: {
                        enableKinetic: true
                    }
                }),
                drawPoint], units: "m"
        });
        map.addControl(new SuperMap.Control.LayerSwitcher(), new SuperMap.Pixel(42, 80));
        layer = new SuperMap.Layer.TiledDynamicRESTLayer("Changchun", url1, {
            transparent: true,
            cacheEnabled: true
        }, {maxResolution: "auto"});
        layer.events.on({"layerInitialized": addLayer});
        markerLayer1 = new SuperMap.Layer.Markers("Markers");
        markerLayer2 = new SuperMap.Layer.Markers("Markers");

        var size = new SuperMap.Size(44, 40),
            offset = new SuperMap.Pixel(-(size.w / 2), -size.h),
            icon1 = new SuperMap.Icon("./images/marker-gold.png", size, offset),
            icon2 = new SuperMap.Icon("./images/marker-gold.png", size, offset),
            icon3 = new SuperMap.Icon("./images/marker-gold.png", size, offset);
        markerLayer1.addMarker(new SuperMap.Marker(new SuperMap.LonLat(6000, -5500), icon1));
        markerLayer1.addMarker(new SuperMap.Marker(new SuperMap.LonLat(5500, -2500), icon2));
        markerLayer1.addMarker(new SuperMap.Marker(new SuperMap.LonLat(2500, -3500), icon3));
    }

    function addLayer() {
        map.addLayers([layer, vectorLayer, markerLayer1, markerLayer2]);
        map.setCenter(new SuperMap.LonLat(4503.6240321526, -3861.911472192499), 1);
    }

    function selectEventPoint() {
        widgets.alert.clearAlert();
        clearElements();
        drawPoint.activate();
    }

    function drawCompleted(drawGeometryArgs) {
        var point = drawGeometryArgs.feature.geometry,
            size = new SuperMap.Size(44, 33),
            offset = new SuperMap.Pixel(-(size.w / 2), -size.h),
            icon = new SuperMap.Icon("./images/marker.png", size, offset);
        markerLayer2.addMarker(new SuperMap.Marker(new SuperMap.LonLat(point.x, point.y), icon));
        eventPoint = point;
        n++;
        if (n >= 1) {
            drawPoint.deactivate();
        }
    }

    function findClosestFacilities() {
        widgets.alert.clearAlert();
        drawPoint.deactivate();
        if (!eventPoint) {
            widgets.alert.showAlert(resources.msg_eventPoint,true);
            return;
        }
        var findClosestFacilitiesService, parameter, analystParameter, resultSetting;
        resultSetting = new SuperMap.REST.TransportationAnalystResultSetting({
            returnEdgeFeatures: true,
            returnEdgeGeometry: true,
            returnEdgeIDs: true,
            returnNodeFeatures: true,
            returnNodeGeometry: true,
            returnNodeIDs: true,
            returnPathGuides: true,
            returnRoutes: true
        });
        var edgeWeightNamesSelect = document.getElementById("edgeWeightNames");
        var weightFieldName = edgeWeightNamesSelect.options[edgeWeightNamesSelect.selectedIndex].text;

        var turnWeightFieldSelect = document.getElementById("turnNodeWeightNames");
        var turnNodeWeightNames = turnWeightFieldSelect.options[turnWeightFieldSelect.selectedIndex].text;
        analystParameter = new SuperMap.REST.TransportationAnalystParameter({
            resultSetting: resultSetting,
            turnWeightField: turnNodeWeightNames,
            weightFieldName: weightFieldName
        });
        parameter = new SuperMap.REST.FindClosestFacilitiesParameters({
            event: eventPoint,
            expectFacilityCount: 1,
            isAnalyzeById: false,
            facilities: facilityPoints,
            parameter: analystParameter
        });
        findClosestFacilitiesService = new SuperMap.REST.FindClosestFacilitiesService(url2, {
            eventListeners: {"processCompleted": processCompleted}
        });
        findClosestFacilitiesService.processAsync(parameter);
    }

    function processCompleted(findClosestFacilitiesEventArgs) {
        var result = findClosestFacilitiesEventArgs.result,
            features = [];
        if (result.facilityPathList) {
            for (var i = 0, facilityPathList = result.facilityPathList, len = facilityPathList.length; i < len; i++) {
                var feature = new SuperMap.Feature.Vector();
                feature.geometry = facilityPathList[i].route;
                feature.style = style;
                features.push(feature);
            }
        }
        vectorLayer.addFeatures(features);
    }

    function clearElements() {
        widgets.alert.clearAlert();
        eventPoint = null;
        n = 0;
        markerLayer2.clearMarkers();
        vectorLayer.removeAllFeatures();
    }
</script>
</body>
</html>

发表回复