Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Amir Khan 1138 posts 2378 karma points
    Aug 22, 2012 @ 17:30
    Amir Khan
    0

    Change output format of datatype

    Hi,

    I was wondering if its possible to change the output format of the datatype so I can mix it with other data for csv export. What I'm getting now is 42.537529,-83.01683000000003,13 (I'm not sure what that "13" is) and what I'd like is "42.537529","-83.01683000000003". Is this just something to be tackled with xslt / razor?

    Thank you!

    Amir

     

  • Dan 1250 posts 3746 karma points admin c-trib
    Aug 22, 2012 @ 23:32
    Dan
    0

    Hi Amir,

    The '13' is the zoom level for that point on the map.

    The source code for this code is available so it should be feasible to change the output in the source and recompile, but a simpler solution would be to run the output through an XSLT or razor macro to split the values and concatenate them with quotations (or replace commas with quote-surrounded commas and prepend and append quotes to the string) to produce the format you require.  I'd personally do the macro route rather than changing the package as you're then likely to maintain forward compatibility.

    Good luck with it.

Please Sign in or register to post replies

Write your reply to:

Draft