Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Mapbox and Tilesets

    Posted Wed November 18, 2020 12:28 AM
    I'm having a bit of difficulty around Cognos Maps and Tilesets, As a test I'm trying to utilise some (any) of the detault tilesets within Mapbox.

    Take Mapbox Streets v8 as an example.

    I'm creating a dashboard in Cognos 11.1.5 & 11.1.7 entering in the Map ID, Layer Name, Property Name of the Mapbox map.

    I was expecting to see some sort of change to my map, but I'm not see any change.

    Are there any maps available out there that I can use to 'play around with' to get my knowledge up  ?

    Ultimately I want to down load bushfire zones and be able to see what assets we have in the designated zones.

    Thanks in advance.
    Mapbox Streets V8






    ------------------------------
    Chris Adams
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Mapbox and Tilesets

    Posted Wed November 25, 2020 11:32 AM
      |   view attached

    Custom polygons are tied to your data in Cognos Analytics. The map visualization will load the tileset from Mapbox and try to match strings from the data attribute you specify in the e.g. "Region" slot, to the "Property Name" field in the tilesets you generated and have loaded onto mapbox. Mapbox streets is not a suitable tileset for testing (it's gigantic), unless your data also contains the exact name of the feature you are trying to map. I've attached a public geojson that is more suitable for this. Here's the steps:
    1. Go to your (free) mapbox account and enter Mapbox Studio.
    2. Select the Tilesets tab.
    3. Click "New Tileset"
    4. Take a look at and upload the attached geojson in the upload box.
    5. Let mapbox convert the geojson features into a tileset.
    6. Take note of the tileset name (it'll be a randomly generated one) and the layer name containing the plates (randomly generated again)
    7. Use "Code" or "pk" fields as property name. Possible values for these are listed in the geojson ("AF", "AN", "SO", ...)
    8. Create a csv dataset which in one column contains the values of these property names ("AF", "AN", "SO", ...), and in another column a (random) value.
    9. Upload the csv into CA (this is your source data). Use it to create a new dashboard or report.
    10. Select the Map visualization. In the region custom polygon (you want to use region, as your geojson contained shapes) enter the values for layer, tileset and property name above.
    11. In the map's region slot, drag the column containing the categorical values, in the color slot drag your numerical column.
    That should give you a map showing a color value for each tectonic plate. You can do the exact same procedure for bushfire zones, provided you have the geojson data available.



    ------------------------------
    Frank van Ham
    ------------------------------

    Attachment(s)

    json
    2002_plates.json   320 KB 1 version