Global Mapper v24.1

GENERATE_REPORT output misaligned

RSVector
RSVector Global Mapper UserTrusted User
The .CSV output for the GENERATE_REPORT script command is scewed with Point Count column empty and Point Count listed under Line Count column.

Comments

  • bmg_bob
    bmg_bob Global Mapper Programmer
    1. What version of Global Mapper are you using?
    2. What type of features are loaded? Just points, or points and lines?
    3. Please post the text of the GENERATE_REPORT command that is resulting in the incorrect output.
  • RSVector
    RSVector Global Mapper User Trusted User
    1. GM version 16.2.3
    2. I have both point and line features loaded
    3. EDIT_VECTOR FILENAME="Vermont Trails" COMPARE_STR="=*" ATTR_VAL="=B-Vermont"
    EDIT_VECTOR FILENAME="New Hampshire Trails" COMPARE_STR="=*" ATTR_VAL="=C-New Hampshire"
    EDIT_VECTOR FILENAME="Maine Trails" COMPARE_STR="=*" ATTR_VAL="=D-Maine"
    EDIT_VECTOR FILENAME="Map Points" COMPARE_STR="=*" ATTR_VAL="=E-Map Points"

    GENERATE_REPORT OUTPUT_FILENAME="C:\Trail Masters\ATV Maps\Build\Mileage.csv" REPORT_ATTR=""

    CSV Output:
    Point Count Line Count Total Line Length (ft) Area Count
    B-Vermont 0 322 1676038
    C-New Hampshire 0 1196 4752280
    D-Maine 0 2712 29209901
    E-Map Points 641 0 0

  • bmg_bob
    bmg_bob Global Mapper Programmer
    What are you trying to do with the EDIT_VECTOR commands?

    The GENERATE_REPORT command does not match the output you posted. Leaving the REPORT_ATTR parameter empty will generate a single summary line for all loaded data, but the CSV output has a line for each attribute value.

    I have some data that you sent a few months ago (Master Map.gmp), and when I run the GENERATE_REPORT command using REPORT_ATTR=", I get output that looks similar to yours, and seems to be correct in terms of the feature types. It appears that all of the features except for those with the attribute value of "E-Map Points" are lines.
  • RSVector
    RSVector Global Mapper User Trusted User
    I don't save the results but I'm trying to create a new attribute called "Mileage" and assign it name (state). Then use that attribute for categorizing the report output. All layers contain only line features except "E" which is a point layer. Perhaps I am making it more complicated than it needs to be. The script has been this way for a while (maybe back to V14) but the output started getting skewed just recently (V16), the Point Column is blank and the point counts are listed under the Line Count column, etc..
  • RSVector
    RSVector Global Mapper User Trusted User
    Looks like the Aug 5th post of the script got messed up.

    EDIT_VECTOR FILENAME="Vermont Trails" COMPARE_STR="=*" ATTR_VAL="=B-Vermont"
    EDIT_VECTOR FILENAME="New Hampshire Trails" COMPARE_STR="=*" ATTR_VAL="=C-New Hampshire"
    EDIT_VECTOR FILENAME="Maine Trails" COMPARE_STR="=*" ATTR_VAL="=D-Maine"
    EDIT_VECTOR FILENAME="Map Points" COMPARE_STR="=*" ATTR_VAL="=E-Map Points"
  • RSVector
    RSVector Global Mapper User Trusted User
    Try again...
  • bmg_bob
    bmg_bob Global Mapper Programmer
    I think the output from the GENERATE_REPORT command is correct. The "B-Vermont" line shows zero points and 322 lines. You said that the Vermont features are all lines, so this makes sense. The "E-Map Points" line shows 641 points and zero lines, which also makes sense. What are you seeing that is incorrect?

    For future reference, if you want post lines from a script on the forum, try using the "Code" formatter. Select the text, then click the paragraph symbol at the top of the area for editing your post, and choose Code from the menu. Here is a sample line from your script:
    EDIT_VECTOR FILENAME="Vermont Trails" COMPARE_STR="<Feature Type>=*" ATTR_VAL="<Mileage>=B-Vermont"
    
  • RSVector
    RSVector Global Mapper User Trusted User
    I'm not sure why we are seeing different outputs, I am seeing B-Vermont line with an empty Point Count, 0 Line Count & 322 Total Line Length (ft) columns. 
  • bmg_bob
    bmg_bob Global Mapper Programmer
    If you post your data, script, and output file in a zip archive, I will run the script and see what is happening.  If the data is too large to post, or you don't want to post it to a public forum, send it to geohelp@bluemarblegeo.com and include "Attn: Bob" in the subject line.
  • RSVector
    RSVector Global Mapper User Trusted User
    edited December 2015
    Trying to fix this again. I see I made my script more complicated than it needed to be. I have changed it to one simple line: GENERATE_REPORT OUTPUT_FILENAME="C:\Mileage.csv"  REPORT_ATTR="<Feature Layer Name>"

    I run this on a simple layer consisting only of 3 point features. Col A contains the <Feature Layer Name> correctly. Col B is titled "Point Count" but is empty (this is the bug), Col C is titled "Line Count" and is populated with the number of point features in my layer (3). Should be real easy to reproduce.
  • bmg_bob
    bmg_bob Global Mapper Programmer
    I was able to reproduce the problem using that test case, and have opened item #17066 in our task list.  I will investigate further and post a message here when the status of the bug changes.

    Have you upgraded to Global Mapper 17?
  • bmg_bob
    bmg_bob Global Mapper Programmer
    I have fixed this problem and placed new builds with the latest changes at http://data.bluemarblegeo.com/downloads/global-mapper/dailybuilds/. Simply download the appropriate installer and run it to install the latest build.