Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: CDE NewMapComponent KML key

  1. #1
    Join Date
    Feb 2017

    Default CDE NewMapComponent KML key

    i have one map working with a kml shape file, and the placemark its the name of the city:

    <name>Belo Horizonte</name>
    <SchemaData schemaUrl="#55mu2500gsr">
    <SimpleData name="GEOCODIG_M">3106200</SimpleData>
    <SimpleData name="UF">31</SimpleData>
    <SimpleData name="SIGLA">MG</SimpleData>
    <SimpleData name="NOME_MUNIC">Belo Horizonte</SimpleData>
    <SimpleData name="REGIão">Sudeste</SimpleData>

    when i use 'Belo Horizonte' as field value from my datasource, the shape works fine, but i want to use GEOCODIG_M (bolder information in the code quoted), then my datasource will have 3106200 as key value to show the Belo Horizonte's shape in the map. Is there a way to do this with the same kml?

    Pentaho CDE version: Release

    thanks in advance
    Last edited by hugonr; 05-31-2017 at 03:30 PM. Reason: pentaho version

  2. #2
    Join Date
    Jan 2014


    Yes, there is.
    Since the information is stored in an element whose attribute has a specific value, it's a bit harder to get to it.
    You'll have to configure the addIn in preExecution:
    this.setAddInOptions("ShapeResolver", "kml", {
      idSelector: "SimpleData[name=GEOCODIG_M]"

  3. #3
    Join Date
    Feb 2017


    Crusso!!! really thanks!!!!! this will help not only for that, but for other things too.

    works like a charm


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.