VCM用户界面地图上有部分摄像机无法显示

发布时间:  2016-12-05 浏览次数:  173 下载次数:  0
问题描述
ArcGIS使用静态方式发布了摄像机图层。VCM完成与VCN和ArcGIS对接后,发现有部分摄像机在VCM上未显示。
解决方案

1. 通过ArcGIS正常发布了某市基础图层和摄像机图层,并在VCM对接中调用。如下:

基础图层:

摄像机图层:



2. VCMArcGIS对接完成后,分别在Admin用户界面和Common用户界面看到地图上显示的摄像机情况如下:

Admin用户界面:

Common用户界面:


可以看到10_175_198_227摄像机在用户界面的地图上没有被显示出来。但是通过左侧的摄像机列表选中后,在地图上也会有高亮显示(说明高亮显示是根据高斯数据库的信息来查找到的)

3. common用户界面,查看调测信息。

F12后,查看到如下信息:

此调测信息显示如下:

dojo.io.script.jsonp_dojoIoScript8._jsonpCallback({"displayFieldName":"CAMERA_NO","fieldAliases":{"MC":"摄像头名称","CAMERA_NO":"摄像头编号","CAMERA_TYPE":"摄像机类型","CAMERA_STATE":"摄像机状态","LONGITUDE":"经度","LATITUDE":"纬度","CAMERA_USER":"摄像机用途","CAMERA_DIRECTION":"摄像头朝向"},"geometryType":"esriGeometryPoint","spatialReference":{"wkid":4326,"latestWkid":4326},"fields":[{"name":"MC","type":"esriFieldTypeString","alias":"摄像头名称","length":256},{"name":"CAMERA_NO","type":"esriFieldTypeString","alias":"摄像头编号","length":256},{"name":"CAMERA_TYPE","type":"esriFieldTypeSmallInteger","alias":"摄像机类型"},{"name":"CAMERA_STATE","type":"esriFieldTypeString","alias":"摄像机状态","length":20},{"name":"LONGITUDE","type":"esriFieldTypeString","alias":"经度","length":20},{"name":"LATITUDE","type":"esriFieldTypeString","alias":"纬度","length":20},{"name":"CAMERA_USER","type":"esriFieldTypeSmallInteger","alias":"摄像机用途"},{"name":"CAMERA_DIRECTION","type":"esriFieldTypeString","alias":"摄像头朝向","length":20}],"features":[{"attributes":{"MC":"10_175_198_228","CAMERA_NO":"04472000000000000101#f5057d25453e41118773925a88ee08b2","CAMERA_TYPE":3,"CAMERA_STATE":"1","LONGITUDE":"117.273191","LATITUDE":"31.873072","CAMERA_USER":2,"CAMERA_DIRECTION":null},"geometry":{"x":117.2731706620001,"y":31.873051770000075}},{"attributes":{"MC":"10_175_198_229","CAMERA_NO":"06621170000000000101#f5057d25453e41118773925a88ee08b2","CAMERA_TYPE":2,"CAMERA_STATE":"1","LONGITUDE":"117.268108","LATITUDE":"31.873510","CAMERA_USER":2,"CAMERA_DIRECTION":null},"geometry":{"x":117.26815687700002,"y":31.873474774000044}},{"attributes":{"MC":"10_175_198_84","CAMERA_NO":"08549450000000000101#f5057d25453e41118773925a88ee08b2","CAMERA_TYPE":1,"CAMERA_STATE":"1","LONGITUDE":"117.277512","LATITUDE":"31.872558","CAMERA_USER":2,"CAMERA_DIRECTION":null},"geometry":{"x":117.27753585700009,"y":31.872566569000071}},{"attributes":{"MC":"10_175_198_97","CAMERA_NO":"07918830000000000101#f5057d25453e41118773925a88ee08b2","CAMERA_TYPE":2,"CAMERA_STATE":"1","LONGITUDE":"117.272810","LATITUDE":"31.871150","CAMERA_USER":2,"CAMERA_DIRECTION":null},"geometry":{"x":117.27281049300007,"y":31.871156399000029}}]});

通过查看此调测信息发现,该用户界面下的确只有四个摄像机。

4. Common用户的摄像机查看原理及问题排查过程如下:

    由于我们使用的ArcGIS静态发布的方式发布的地图数据,没有使用Oracle数据库。所以VCN同步过来的摄像机与ArcGIS上发布的摄像机是通过VCM的高斯数据库关联的。在高斯数据库中添加的信息必须与ArcGIS中在发布摄像机图层是所填写的数据保持一致。

    Admin用户界面的地图上可以看到所有发布的摄像机,而且与VCN同步的摄像机进行关联后一一对应,说明我们的Camera
NO.和经纬度没有问题。那我们在Common用户界面无法查看部分摄像机的原因,可能就跟其他参数有关系。

    经过一一对比,发现Common界面地图上无法显示的那台摄像机(10_175_198_227)的ORG_IDNULL,其他摄像机的ORG_ID1。通过查看高斯数据库发现,227的摄像机ORG_ID的确为1

高斯数据库中信息如下:

5. 修改了ArcGIS摄像机图层中改摄像机点位的ORG_ID的信息后,重新发布该服务。然后在VCM界面重新登录adminCommon用户界面发现。227摄像机已经可以查看到。问题解决。


ArcGIS发布的摄像机图层中,所有摄像机点位的辛苦与高斯数据库中的信息必须保持一致。

END