IBM Support

ITNM 4.2 changing the config.json for making use of an offline mapping provider for ncp_gis geographical discovery

Technical Blog Post


Abstract

ITNM 4.2 changing the config.json for making use of an offline mapping provider for ncp_gis geographical discovery

Body

 

This section covers a simple configuration of an offline 'wms' geographical server.   What is the advantage of an 'offline' map?  The geographical display can be made available from your own server and there is not a need to make the connection outside of your network to a public mapping provider.

 

Here is the knowledge center documentation on this

 

Configuring offline 'wms' server

 

I download 'geoserver' and unzip the file onto my server that sits on the same server as my GUI/DASH.  I am using root so that I can properly start this process and it's ports

 

In my jetty-https.xml I make my https port 8443

 

Add these two lines to start.ini

# Enable delayed dispatch optimisation
jetty.delayDispatchUntilContent=false
etc/jetty-ssl.xml
etc/jetty-https.xml

 

[root@eforce netcool]# cd geo10
[root@eforce geo10]# pwd
/home/netcool/geo10
[root@eforce geo10]# whoami
root
[root@eforce geo10]# ls
geoserver-2.10.2  geoserver-2.10.2-bin.zip
[root@eforce geo10]# cd geoserver-2.10.2/
[root@eforce geoserver-2.10.2]# ls
bin       GPL.txt      logs        RELEASE_NOTES.txt  start.ini    webapps
data_dir  lib          modules     resources          start.jar    yub
etc       LICENSE.txt  README.txt  RUNNING.txt        VERSION.txt
[root@eforce geoserver-2.10.2]# sh bin/startup.sh
GEOSERVER_HOME environment variable not found, using current
directory.  If not set then running this script from other
directories will not work in the future.
GEOSERVER DATA DIR is /home/netcool/geo10/geoserver-2.10.2/data_dir
WARNING: Module not found [ssl]
2017-08-08 15:38:05.821:INFO::main: Logging initialized @268ms

2017-08-08 15:38:16.132:INFO:oejs.Server:main: Started @10579ms

 

My geoserver is running I could log into this gui and actually make adjustments or changes to predownloaded maps.  For this demo I will be using maps with the download, so it's not even necessary to login into the geoserver gui.   See the geoserver website for more details on using their gui.

 

https://eforce.server.ibm.com:8443/geoserver/web/

 

=====================================================================================

The config.json is located in the 'jazz' path

 

/opt/IBM/netcool/jazz/profile/installedApps/JazzSMNode01Cell/isc.ear/ncp_gis.war/resources

 

Changes to the config.json are immediately picked for the GUI.  I prefer to logout and clear the browser cache when I make mapping provider changes.

I'll be working with my same topology which are two routers with connectivity in Florida.

 

Here are the config.json changes

 

        "mapProvider": {
                "baseMapLayerName": "IBM Network Management",
                "baseLayer": "wms",

 

also

 

                        "wms": {
                                "baseLayerName": "My Custom GeoServer WMS Layer",
                                "url": "https://eforce.server.ibm.com/geoserver/wms",
                                "params": {
                                        "REQUEST": "GetMap",
                                        "FORMAT": "image/png",
                                        "SRS": "EPSG:4326",
                                        "BBOX": "-104.2822265625,33.5302734375,-87.4072265625,40.78125",
                                        "VERSION": "1.1.1",
                                        "STYLES": "",
                                        "SERVICE": "WMS",
                                        "WIDTH": "768 ",
                                        "HEIGHT": "330",
                                        "TRANSPARENT": "true",
                                        "LAYERS": "topp:states"
                                }
                        },

 

 

Note my server url and https

The layer of "topp:states" isn't too interesting, but it this is a simple demonstration of an offline map, meaning my server does not need to go out to the 'web' to get a map.

 

image

 

 

 

 


image

 

Subscribe and follow us for all the latest information directly on your social feeds:

 

 

image

 

image

 

image

 

 

  

Check out all our other posts and updates:

Academy Blogs:https://goo.gl/eZjStB
Academy Videos:https://goo.gl/kJeFZE
Academy Google+:https://goo.gl/HnTs0w
Academy Twitter :https://goo.gl/DiJbvD
 


image
 

 

 

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"","label":""},"Component":"","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"","label":""}}]

UID

ibm11082457