Control over order of features in exported CSV file
falqn
Global Mapper UserTrusted User
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
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
-
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
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website