Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: CDE NewMapComponent KML key

  1. #1
    Join Date
    Feb 2017
    Posts
    20

    Default CDE NewMapComponent KML key

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

    <Placemark>
    <name>Belo Horizonte</name>
    <Style>
    <LineStyle>
    <color>ff0000ff</color>
    </LineStyle>
    <PolyStyle>
    <fill>0</fill>
    </PolyStyle>
    </Style>
    <ExtendedData>
    <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 6.1.0.1.196

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

  2. #2
    Join Date
    Jan 2014
    Posts
    189

    Default

    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:
    Code:
    this.setAddInOptions("ShapeResolver", "kml", {
      idSelector: "SimpleData[name=GEOCODIG_M]"
    });

  3. #3
    Join Date
    Feb 2017
    Posts
    20

    Default

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

    works like a charm

    THANKS!!!!!!!!!!

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.