Clipboard size limitation
wmiswm
Global Mapper UserTrusted User
Search -> select -> right click -> copy the selected results to clipboard as text
There is size limitation on the number of items. Is there any convenient way to overcome this limitation?
There is size limitation on the number of items. Is there any convenient way to overcome this limitation?
Comments
-
While you can't easily get around the clipboard text size limitation, you could instead copy the features themselves to the clipboard from the search results dialog, then paste those in a new instance of Global Mapper and then export that to a CSV file. Another thing I could do is add an option to save the text to a file if it is too large. Would that work?
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
sorry, do not know how to paste to a new gm instance. I sppose a new tab to save to csv will b e better. Thx.
-
sorry, do not know how to paste to a new gm instance. I sppose a new tab to save to csv will b e better. Thx.
-
Start another instance of GM (start the program twice). Select whatever you want to copy in the first instance. ctrl-c copies (or ctrl-x) cuts the selection from the first instance. ctrl-v pastes the copied (or cut) data into the second instance.
-
I see. This will not do the job. What I need is the feature table (the list of objects with their attribute value as a csv table).
By copy and paste to another GM instance, the objects, including polygon, line, and point will be transferred as is to the other GM instance. But then, the output to csv option will not be able to output the selected polygons and lines attribute value table.
I suppose either replacing the "copy to clipboard" with "saving to csv", or adding another additional tabe of "saving to csv" are the only options. -
Once you have your objects in another instance, just use File->Export Vector Data to export a CSV file. The latest releases have an option to including area and line features so you can get everything in a CSV file with each feature on its own line.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Sorry, still not successful. All I need is a table with each object listed in a column with its attribute value in a row, the first row being the attribute name, the same format as the search result. The csv output is not in the format I need.
-
That is what the CSV export should get you. How is it different than what you are getting in the search results, other than the ordering?
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
The csv output does not have the <Feature Name>, <Feature Type>, and <Description> fields included compare with the search result clipboard output.
-
Those items should be present, just with different field names. However what I decided to do in order to make this simpler is prompt you for a text file to save the clipboard results to when you have a lot selected. I have placed a new build at http://www.globalmapper.com/global_mapper13.zip with the change for you to try. Simply download that file and extract the contents into your existing v13.xx installation folder to give it a try. If you are using the 64-bit v13 version there is a new build at http://www.globalmapper.com/global_mapper13_64bit.zip .
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Hi Mike, thank you very much. There is still an issue with the output csv file. For those features with an empty <Feature Name> field, the output file will NOT have an "empty" field, resulting in a frame shift in those features when open by Excel.
-
oh yes, there is another issue:
Search for duplicate -> correct by assigning a unique identification number to a certain attribute say "Feature_ID"
Search -> re-order by "Feature_ID", the order is 1, 10, 100, 1000, 10000, 10001, 10002, 10003, 10004 ............... etc
Is it possible to re-order by 1, 2, 3, 4, 5, 6.................etc ? -
I found the issue with the clipboard text if the start fields are blank and fixed it. I have placed a new build at http://www.globalmapper.com/global_mapper13.zip with the change for you to try. Simply download that file and extract the contents into your existing v13.xx installation folder to give it a try. If you are using the 64-bit v13 version there is a new build at http://www.globalmapper.com/global_mapper13_64bit.zip .
To sort the fields numerically change your search type to 'Number' above the search results, then your Feature ID should sort how you want.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Hi Mike, I am not sure whether it is the problem of GM or the problem of Excel. When I open the output csv in Excel, every of the item has alternating empty row. However, if I open the output csv by notepad, it is a normal file without any blank line. Any idea?
-
ok, I figured out what is problem. For each of the item line, GM output the hex characters "0D 0D 0A" at the end of the line. Excel interpret this as two new lines and notepad interpret this as one single line. The correct hex sequence should be "0D 0A".
-
Ah yep the string already had \r\n in it and the file was in text mode, so it was adding an extra \r. I switched to binary mode so it should work as expected. I have placed a new build at http://www.globalmapper.com/global_mapper13.zip with the change for you to try. Simply download that file and extract the contents into your existing v13.xx installation folder to give it a try. If you are using the 64-bit v13 version there is a new build at http://www.globalmapper.com/global_mapper13_64bit.zip .
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Thank you very much. It works as expect now.
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