Spectrum Spatial (SSA/LIM)

Expand all | Collapse all

Template Designer - Decimal Place Precision

Jump to Best Answer
  • 1.  Template Designer - Decimal Place Precision

    Posted 05-13-2019 22:03
      |   view attached
    When an object is selected in SSA the default precision that is returned is excessive, example attached. There are no options for limiting this in the Template Designer for version 18.2. Happy to modify the relevant .html, .ts, .json for the config with guidance if someone can help. The same level of precision is returned for raster click enquiries when we have loaded in a DEM, would be nice to change that too.

    Would like to see this managed in the Template Designer in future release so there is less flicking back and forth between configs managed through the Designer system and others manually managed, this is going to be important as the number of custom templates is very quickly building.


    ------------------------------
    William Dean
    Cairns Regional Council
    ------------------------------


  • 2.  RE: Template Designer - Decimal Place Precision

    Posted 05-19-2019 18:08
    I had same problem and I edited the source data to solve this. Used convert function in SQL to create two decimal value

    ------------------------------
    Noman Sajjad
    Campaspe Shire Council
    Echuca
    ------------------------------



  • 3.  RE: Template Designer - Decimal Place Precision

    Moderator
    Posted 05-23-2019 06:30
    Hi William,

    Unfortunately, it is not possible to limit the decimal places inside Spectrum Spatial Analyst since it will display the value that is being fed to it via Spectrum Spatial.

    But this idea of having such functionality is really worth considering and can become a fruitful enhancement request.

    I would request you to create a new idea in our idea portal and I will make sure to vote it to get it up in the visibility list by the Engineering team.

    ------------------------------
    Nalin Mathur
    Pitney Bowes Software India PVT. Ltd
    Noida
    ------------------------------



  • 4.  RE: Template Designer - Decimal Place Precision

    Posted 05-27-2019 23:33
    Hi Nali,

    I have added this to the Ideas Portal - https://ideas.pitneybowes.com/ideas/SSA-I-333

    Cheers,

    Will

    ------------------------------
    William Dean
    Cairns Regional Council
    ------------------------------



  • 5.  RE: Template Designer - Decimal Place Precision

    Moderator
    Posted 07-03-2019 05:35
    Hi William,

    Looks like Andy d'Andily responded to your idea on the idea portal seeking some additional information. Will you spare some time to review it and answer appropriately?

    ------------------------------
    Nalin Mathur
    Pitney Bowes Software India PVT. Ltd
    Noida
    ------------------------------



  • 6.  RE: Template Designer - Decimal Place Precision

    Moderator
    Posted 06-03-2019 01:25
    Hi William,

    Thank you for posting this idea into the portal. I have already voted for it!
    I would encourage you to post this link and describe your idea to other community users too. This will help it to reach more eyes.

    ------------------------------
    Nalin Mathur
    Pitney Bowes Software India PVT. Ltd
    Noida
    ------------------------------



  • 7.  RE: Template Designer - Decimal Place Precision
    Best Answer

    Pitney Bowes
    Posted 07-08-2019 10:34
    Edited by Monica Di Martino 07-31-2019 07:40
    Hi William, @William Dean

    it is possible to set the numbers of decimals! You need to change the custom template code.

    Great idea to settings the decimals in the Template Designer! Thanks!

    Here below an example from one of our SSA team Engineers.

    Go to your html page of your custom template in the <spectrum spatial analyst folder>\SpectrumSpatialAnalyst\customerconfigurations\analyst\theme\infotemplates


    replace your row of the sq area from this:

    <pb-info-column [columnConfig]="SqAreaConfig" [feature]="data.feature" class="multilabelrow col-xs-12 default-topbtm-padding">

      </pb-info-column>

    to this - if you want to number 2 of decimals (or change the number): 

    <div class="multilabelrow col-xs-12 default-topbtm-padding">

      <label class="wordBreak no-padding container-flex col-xs-5">

        <i class="nc-icon-mini margin-r" [ngClass]="SqAreaConfig.icon" *ngIf="SqAreaConfig.showIcon"></i>

        <strong>{{SqAreaConfig.label || SqAreaConfig.name}} &#58; </strong>

      </label>

      <span class="wordBreakInline container-flex default-left-padding">

        {{ data.feature[SqAreaConfig.name].value | number:'.2'}} {{ SqAreaConfig.suffix}}

      </span>

    </div>


    thanks
    Monica​

    ------------------------------
    Monica Di Martino
    EMEA LI/GIS Presales Engineer
    Pitney Bowes
    ------------------------------



  • 8.  RE: Template Designer - Decimal Place Precision

    Posted 07-08-2019 22:09
    @Monica Di Martino

    Thanks for sharing.

    Are there a list of data.feature functions that you could share??  Or even a web link reference.

    Eg. "value | number:'.2'}}"  -  (number)

    Thank you​​

    ------------------------------
    Tim Warfe
    GIS Officer
    MOORABOOL SHIRE COUNCIL
    ------------------------------



  • 9.  RE: Template Designer - Decimal Place Precision

    Pitney Bowes
    Posted 07-09-2019 03:52
    Hi @Tim Warfe

    you might look at this page Angular Decimal Pipe
    ​​
    I use this Angular website above. The list you're asking for it could be this one Angular API

    thanks
    Monica

    ------------------------------
    Monica Di Martino
    EMEA LI/GIS Presales Engineer
    Pitney Bowes
    ------------------------------