Global Mapper v25.0

Control over order of features in exported CSV file

falqn
falqn Global Mapper UserTrusted User
edited January 2015 in GM Script Language
Hi,
I need CSV file with custom (sorted) order of features because I want to run JOIN_TABLE with ALLOW_DUPLICATES=KEEP_ALL_APPEND or KEEP_ALL_COPY and I want to keep all matching records attribute values to be custom (sorted) order.

I discovered that the order of features in exported CSV file depends on <Index in Layer>. I can change the <Index in Layer> using Search Vector Data dialog: sort features in way I want and then move them to a new layer.

Is it possible to do such thing in scripting language?
This could be done by adding a new parameter to EXPORT_VECTOR command, ex:
EXPORT_SORTING=<attribute used to sort features>.

Another way to resolve my problem will be expanding the JOIN_TABLE/ALLOW_DUPLICATES with something like KEEP_ALL_APPEND_SORT or KEEP_ALL_COPY_SORT.

Regards
Wojtek

Comments

  • bmg_bob
    bmg_bob Global Mapper Programmer
    edited January 2015
    Hi Wojtek,

    I have added feature request #15133 to our task list so we can evaluate inclusion of this functionality in a future version of Global Mapper. We will post back to this thread when the status of that feature request changes.

    Cheers,

    Bob