<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>GM Script Language — Global Mapper Forum</title>
        <link>https://www.globalmapperforum.com/</link>
        <pubDate>Thu, 16 Apr 2026 17:32:48 +0000</pubDate>
        <language>en</language>
            <description>GM Script Language — Global Mapper Forum</description>
    <atom:link href="https://www.globalmapperforum.com/categories/gm-script-language/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>How to script the summation of all values of a specific attribute across all features within a layer</title>
        <link>https://www.globalmapperforum.com/discussion/17363/how-to-script-the-summation-of-all-values-of-a-specific-attribute-across-all-features-within-a-layer</link>
        <pubDate>Mon, 03 Nov 2025 15:05:24 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>kbellis</dc:creator>
        <guid isPermaLink="false">17363@/discussions</guid>
        <description><![CDATA[<p>For example, on one layer is a group of 3 counties, each with the attribute <code spellcheck="false" tabindex="0">Est_1_Jul_2021</code> and their respective population values. I'd like to create a new attribute, <code spellcheck="false" tabindex="0">GroupPop</code> with the sum of all features in the layer. </p><p>It's been several years since I wrote any GM scripts and I'm pretty rusty. Thank you very much for any help!</p><p>Kind regards,</p><p>Kelly</p>]]>
        </description>
    </item>
    <item>
        <title>Automatic rotation of custom point symbol</title>
        <link>https://www.globalmapperforum.com/discussion/17009/automatic-rotation-of-custom-point-symbol</link>
        <pubDate>Mon, 23 Oct 2023 17:34:04 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>GuyChalert</dc:creator>
        <guid isPermaLink="false">17009@/discussions</guid>
        <description><![CDATA[<p>Hi</p><p>I defined a custom point symbol for fold axis and it does not rotate automatically with DIP. DIP_AZI attributes.</p><p>Can you help?</p><p>Cheers</p>]]>
        </description>
    </item>
    <item>
        <title>Why is the MOVE_TO_NEW_LAYER Parameter not keeping the original layer's projection?</title>
        <link>https://www.globalmapperforum.com/discussion/17339/why-is-the-move-to-new-layer-parameter-not-keeping-the-original-layers-projection</link>
        <pubDate>Wed, 20 Aug 2025 17:55:22 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>calebcooke</dc:creator>
        <guid isPermaLink="false">17339@/discussions</guid>
        <description><![CDATA[<p>In my script, I am importing the same shapefile of a statewide contour map and using EDIT_VECTOR to crop it to a MBR layer created earlier in the script. I am also using the MOVE_TO_NEW_LAYER parameter and NEW_LAYER_NAME to separate the cropped contours from the original so that I can unload the original with all of the deleted features. (All of this is done in a DIR_LOOP). However, every time I run the script, the new contour layer seems to be created with a different projection than the original so that all of the contour features show up in a very small collection far from the original location. I have tried to use NEW_LAYER_PROJ, but none of the PROJ values inputted seemed to work. </p><p>Here is my script (the relevant section)</p><div>
    <div>
        <a href="https://www.globalmapperforum.com/uploads/45MXRI747SUR/screenshot-2025-08-20-125343.png" rel="nofollow noreferrer noopener ugc" target="_blank">
            <img src="https://www.globalmapperforum.com/uploads/45MXRI747SUR/screenshot-2025-08-20-125343.png" alt="Screenshot 2025-08-20 125343.png" height="196" width="1150" data-display-size="large" data-float="none" /></a>
    </div>
</div>
<p>Any help would be appreciated. I'm mainly wondering how the NEW_LAYER_PROJ parameter is meant to be used.</p>]]>
        </description>
    </item>
    <item>
        <title>Global Mapper Scripting for files on sharepoint</title>
        <link>https://www.globalmapperforum.com/discussion/17342/global-mapper-scripting-for-files-on-sharepoint</link>
        <pubDate>Wed, 27 Aug 2025 06:48:40 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>Rachelccc</dc:creator>
        <guid isPermaLink="false">17342@/discussions</guid>
        <description><![CDATA[<p>Hi everyone,</p><p>I have a simple global mapper script that import elevation layers from a folder on sharepoint and export elevation of a point layer.</p><p>This works fine on my computer but other people can't run the script because the import file path is linked to the sharepoint sync'ed on my computer.</p><p>Import line in the code for example:</p><p>IMPORT FILENAME="C:\Users\COMPUTER PC ID\SHAREPOINT SITE NAME\FOLDER ON SHAREPOINT\2025 Best Available Bathy.gmp" \</p><p>The issue is other people wouldn't have the same COMPUTER PC ID.</p><p>I've tried the URL method but it didn't work (maybe due to firewall issues). </p><p>Does anyone have a smart way to make the COMPUTER PC ID to automatically be the user's pc ID not fixed to what's in the address? </p><p><br /></p><p>Thanks a lot guys!</p>]]>
        </description>
    </item>
    <item>
        <title>Scripting tool that can create the same result as the Download Within Currently Selected Polygon(s)?</title>
        <link>https://www.globalmapperforum.com/discussion/17333/scripting-tool-that-can-create-the-same-result-as-the-download-within-currently-selected-polygon-s</link>
        <pubDate>Tue, 05 Aug 2025 15:26:39 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>calebcooke</dc:creator>
        <guid isPermaLink="false">17333@/discussions</guid>
        <description><![CDATA[<p>I am using the IMPORT_WMS function to import data from the US NAIP Imagery server and I was hoping to import it only within the bounds of buffers that I have created around scattered polygons in my layer. The only parameter within the IMPORT_WMS function that I found was the LAYER_BOUNDS parameter but that just imports the raster in the same bounding box as the layer. Are there other tools that could replicate the Download Within Currently Selected Polygon(s) feature of cropping the raster imported with IMPORT_WMS to the unique bounds of the individual polygons?</p><p>I have tried SET_LAYER_OPTIONS with POLYGON_CROP_FILE but it only seems to crop the raster to a single polygon. I was also not sure if CLIP_COLLAR_POLY could be used.</p>]]>
        </description>
    </item>
    <item>
        <title>After using Spatial Operations Difference, how do I add missing vertices to the areas?</title>
        <link>https://www.globalmapperforum.com/discussion/17323/after-using-spatial-operations-difference-how-do-i-add-missing-vertices-to-the-areas</link>
        <pubDate>Wed, 02 Jul 2025 14:00:41 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>Rubric124</dc:creator>
        <guid isPermaLink="false">17323@/discussions</guid>
        <description><![CDATA[<p>I use the Spatial Operations Difference in scripting a lot, but my main focus is adding vertices to the area features where they got cut at. One area would have the vertex, but the other even though it meets at the edge does not. I would like to get this automated, but I do not know if the current add vertices at intersections truly works. Many thanks!</p>]]>
        </description>
    </item>
    <item>
        <title>Export_Vector Shapefile Attribute Setup</title>
        <link>https://www.globalmapperforum.com/discussion/15671/export-vector-shapefile-attribute-setup</link>
        <pubDate>Mon, 22 Apr 2019 01:00:28 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>Hydro_Brent</dc:creator>
        <guid isPermaLink="false">15671@/discussions</guid>
        <description><![CDATA[I am using a script to export a shapefile (via export_vector) and I need to change the attribute type and length for some attributes. The functionality I need is what is available in the "Attribute Setup" tab (see attached) in the Global Mapper GUI.  I can't seem to find in the documentation how I would make the changes to an attribute type or length via a script during export. The code I'm using for the export is below<br /><br />EXPORT_VECTOR FILENAME="E:\Test.shp" \<br />TYPE="SHAPEFILE" \<br />GEN_PRJ_FILE="YES" \<br />SHAPE_TYPE="POINTS" \<br />INC_LAYER_ATTR="NO"<br /><br />What do I need to do in a script to alter attribute type or length during export (or prior)?<br /><br />Regards,<br />Brent<br /><br /><img alt="" src="https://www.globalmapperforum.com/uploads/editor/1b/31aehppep5vp.png" title="Image: https://www.globalmapperforum.com/uploads/editor/1b/31aehppep5vp.png" />]]>
        </description>
    </item>
    <item>
        <title>Loop subfolders to join all ASCII files then export as a single file</title>
        <link>https://www.globalmapperforum.com/discussion/17301/loop-subfolders-to-join-all-ascii-files-then-export-as-a-single-file</link>
        <pubDate>Fri, 16 May 2025 11:45:15 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>burt46</dc:creator>
        <guid isPermaLink="false">17301@/discussions</guid>
        <description><![CDATA[<p>Hi,</p><p>I am having issues trying to merge all ASCII files in subfolders to then export to the root (master folder) the combined file from each subfolder. I cant use RECURSIVE and the FILENAME_MASK=".." does not seem to work. This code starts to loop over the xyz files then gives the error that no elevation data is present at the export. It then goes back round and tries to loop again and crashes globalmapper if i exit.</p><p>DIR_LOOP_START DIRECTORY="%MASTER_FOLDER%*"</p><p>  // Loop through Subfolders</p><p>  DIR_LOOP_START DIRECTORY="%MASTER_FOLDER%*" FILENAME_MASK=".."</p><p>    IMPORT_ASCII FILENAME="%FNAME_W_DIR%" TYPE="POINT_ONLY" FILENAME_MASK="*.XYZ" \</p><p>      PROJ_NAME="TM_WGS84" COORD_DELIM="AUTO" COORD_FORMAT="DECIMAL" COORD_ORDER="X_FIRST" \</p><p>      INC_COORD_LINE_ATTRS="YES" COL_HEADERS="NO" INC_ELEV_COORDS="YES" \</p><p>      CREATE_AREAS_FROM_LINES="NO" SKIP_COLUMNS="0" SKIP_ROWS="0" \</p><p>      LINE_TYPE="Unclassified Line Feature" ELEV_UNITS="METERS"</p><p>  DIR_LOOP_END</p><p><br /></p><p>  EXPORT_ELEVATION FILENAME="%MASTER_FOLDER%%FNAME_NO_EXT%_cropped.asc" TYPE=ARCASCIIGRID POLYGON_CROP_NAME="Crop-TSF-Border"</p><p>  UNLOAD_ALL</p><p>DIR_LOOP_END</p><p><br /></p><p>Any help would be greatly appreciated.</p><p>I am running V23.1</p>]]>
        </description>
    </item>
    <item>
        <title>Geotiff via Export_Elevation showing 0 values outside Polygon Crop</title>
        <link>https://www.globalmapperforum.com/discussion/17304/geotiff-via-export-elevation-showing-0-values-outside-polygon-crop</link>
        <pubDate>Mon, 19 May 2025 20:22:23 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>burt46</dc:creator>
        <guid isPermaLink="false">17304@/discussions</guid>
        <description><![CDATA[<p>Hi,</p><p>I am using the following line of code and on some geotiffs all data outside my polygon crop is empty area (as i want). On others, the geotiff is aligning data as a 0 elevation value outside my polygon crop. Is there a way to force delete areas outside the polygon crop?</p><p>EXPORT_ELEVATION FILENAME="%MASTER_FOLDER%%PARENT_DIR%_cropped.tif" TYPE=GEOTIFF POLYGON_CROP_NAME="Crop-TSF-Border" ELEV_UNITS="METER" FORCE_SQUARE_PIXELS="YES" SAMPLE_TYPE="U32" FILL_GAPS="NO" BG_TRANSPARENT="YES"</p>]]>
        </description>
    </item>
    <item>
        <title>What type of abbreviation is used to export in XY Harris Multilayer files?</title>
        <link>https://www.globalmapperforum.com/discussion/17289/what-type-of-abbreviation-is-used-to-export-in-xy-harris-multilayer-files</link>
        <pubDate>Wed, 09 Apr 2025 12:31:04 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>_Camille_</dc:creator>
        <guid isPermaLink="false">17289@/discussions</guid>
        <description><![CDATA[<p>Hello,</p><p>In the Global Mapper script language reference documentation, I can't find the TYPE abbreviation for exporting in XY Harris Multilayer Text File, as it is possible to do directly in Global Mapper.</p><div>
    <div>
        <a href="https://www.globalmapperforum.com/uploads/6PQ9OTAU84X5/xy-harris-png.png" rel="nofollow noreferrer noopener ugc" target="_blank">
            <img src="https://www.globalmapperforum.com/uploads/6PQ9OTAU84X5/xy-harris-png.png" alt="XY_Harris.PNG" height="207" width="374" data-display-size="medium" data-float="none" /></a>
    </div>
</div>
<p>Could someone tell me if it's possible to export to XY Harris Multilayer Text File using the Global Mapper scripting language ? If not, is it possible to ask Global Mapper to add this option ? And if so, how ?</p><p>Thank you.</p>]]>
        </description>
    </item>
    <item>
        <title>GMS example for Chop/ Modify Selected Areas with Islands to Remove Islands</title>
        <link>https://www.globalmapperforum.com/discussion/17282/gms-example-for-chop-modify-selected-areas-with-islands-to-remove-islands</link>
        <pubDate>Thu, 03 Apr 2025 15:56:33 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>Timneh</dc:creator>
        <guid isPermaLink="false">17282@/discussions</guid>
        <description><![CDATA[<p>sorry if this appears elsewhere, I wasn't able to locate it,</p><p>Is it possible to get a GMS example for the above</p><h2>Chop/ Modify Selected Areas with Islands to Remove Islands</h2><p> function?</p><p>I'd like to script it so I can process vector geometry on a repeating basis?</p><p>Thanks!</p><p>I'm typically using v23.1 but I can use newer if it's required.</p>]]>
        </description>
    </item>
    <item>
        <title>VRML export resolution</title>
        <link>https://www.globalmapperforum.com/discussion/17288/vrml-export-resolution</link>
        <pubDate>Tue, 08 Apr 2025 16:15:21 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>ideasco</dc:creator>
        <guid isPermaLink="false">17288@/discussions</guid>
        <description><![CDATA[<p>I cannot get the correct resolution when I export VRML using a GM script file.</p><p>I am using 30 arc sec elevation data. It is re-projected to Equirectangular Projection. So the resolution is 927.662 meters. When I attempt to export via the GUI/menu (see picture) I do get a resolution results of 927.661987 meters which is good.</p><p>When I import and run the following GM script it results in a resolution of 926.888977 in both X and Y.</p><p>Script:</p><p>GLOBAL_MAPPER_SCRIPT VERSION="1.00"</p><p>EXPORT_ELEVATION FILENAME="C:\GM exports\SRTM 60.00.00 to 50.00.00 -10.00.00 to 0.00.00 30.wrl"\</p><p>TYPE=VRML SPATIAL_RES_METERS=927.662 VERT_EXAG=1 LAT_LON_BOUNDS=-10,50,0,60</p><div>
    <div>
        <a href="https://www.globalmapperforum.com/uploads/NY80OPT87282/vrml-export.png" rel="nofollow noreferrer noopener ugc" target="_blank">
            <img src="https://www.globalmapperforum.com/uploads/NY80OPT87282/vrml-export.png" alt="VRML export.png" height="642" width="340" data-display-size="medium" data-float="none" /></a>
    </div>
</div>
<p><br /></p>]]>
        </description>
    </item>
    <item>
        <title>Import several netcdf files without having to select the layer / parameter to be displayed</title>
        <link>https://www.globalmapperforum.com/discussion/17274/import-several-netcdf-files-without-having-to-select-the-layer-parameter-to-be-displayed</link>
        <pubDate>Fri, 28 Mar 2025 13:44:05 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>_Camille_</dc:creator>
        <guid isPermaLink="false">17274@/discussions</guid>
        <description><![CDATA[<p>Hello,</p><p>I have several netcdf files containing data on current direction and speed. When one of these files is dragged into Global Mapper to be opened, a window appears asking you to select the parameters to be displayed (here Speed or Direction or both to be ticked).</p><p>I'd like to be able to make a loop that imports several files of the same type but directly displays the two parameters (Speed and Direction) without displaying this choice dialogue box.</p><p>I have a lot of files to import. The advantage is to have a loop that opens all the files directly in Global Mapper without having to tick the parameter to be loaded for each file. In a way, you lose the point of the loop and the import automation...</p><p>I can't find a function in the documentation that would allow me to do this. Could you help me achieve what I want ?</p><p><br /></p><p>My script :</p><p>GLOBAL_MAPPER_SCRIPT VERSION=1.00</p><p>DIR_LOOP_START DIRECTORY="path" FILENAME_MASKS="*.NC" RECURSE_DIR=NO</p><p>IMPORT FILENAME="%FNAME_W_DIR%"</p><p>DIR_LOOP_END</p><p><br /></p><p>My issue :</p><div>
    <div>
        <a href="https://www.globalmapperforum.com/uploads/EM2OWU2PO15E/capture-netcdf-png.png" rel="nofollow noreferrer noopener ugc" target="_blank">
            <img src="https://www.globalmapperforum.com/uploads/EM2OWU2PO15E/capture-netcdf-png.png" alt="Capture_netcdf.PNG" height="415" width="343" data-display-size="medium" data-float="none" /></a>
    </div>
</div>
<p><br /></p>]]>
        </description>
    </item>
    <item>
        <title>Script to Vectorize Raster</title>
        <link>https://www.globalmapperforum.com/discussion/17122/script-to-vectorize-raster</link>
        <pubDate>Tue, 07 May 2024 15:09:07 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>p_coelho97</dc:creator>
        <guid isPermaLink="false">17122@/discussions</guid>
        <description><![CDATA[<p>Hey!</p><p>Is there any command or function to the tool "Vectorize Raster"? I can't seem to find anything in documentation for this specific tool.</p><p>Thanks</p>]]>
        </description>
    </item>
    <item>
        <title>Native Scripting Language - Select and Delete features from a Layer</title>
        <link>https://www.globalmapperforum.com/discussion/17222/native-scripting-language-select-and-delete-features-from-a-layer</link>
        <pubDate>Thu, 21 Nov 2024 14:31:27 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>gghiggini</dc:creator>
        <guid isPermaLink="false">17222@/discussions</guid>
        <description><![CDATA[<p>Hi,</p><p>I would like, using the native scripting language, to select features (using a SPATIAL_OPERATION) from a layer and delete them.</p><p>As far as I know the SPATIAL_OPERATION can create a new layer.</p><p>How can I remove the selected features from the original layer?</p><p>Thanks</p><p>Giorgio</p>]]>
        </description>
    </item>
    <item>
        <title>Help with directory loop</title>
        <link>https://www.globalmapperforum.com/discussion/17203/help-with-directory-loop</link>
        <pubDate>Thu, 17 Oct 2024 09:21:53 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>mangre</dc:creator>
        <guid isPermaLink="false">17203@/discussions</guid>
        <description><![CDATA[<p>Hi ,</p><p>I have re visited gm 25 and are now running my scripts.</p><p>I have loaded all the required data layers into GM25 saved that to a GMW file and now running a directory loop to create mapped geo coordinate areas from the main map, I will include the scripts and commands, </p><p>The loop scripts worked fine in GM 12 , and are working the same with GM 25.1</p><p><br /></p><p>They are running through the loop and creating zones from the script and saving to a folder, that is great.</p><p><br /></p><p>There is one issue that I have, when the program runs through a directory loop in Global Mapper 25.1, and that is it is not displaying one overlay that I place over the map all other layers are displaying as they are supposed to. The layer that will not display is the one I load with &gt; Open file at fixed screen location&lt; option</p><p>The file is a temperature bar I place to the side of the map as an overlay, this is a .png format image. This displays fine on the map and when I save a raster image in Geo Tiff just running the .GMW  All the layerS are there in the saved geo tiff image.including the temperature bar</p><p>But the problem is when I run the directory loop command with the .gms scripts which cut the map into 15 zones, the temperature strip does not appear on any of the maps created from the the .gms scripts in the directory loop command.</p><p><br /></p><p>This worked fine in v12 but not in v25</p><p><br /></p><p>I have included the script I use.</p><p><br /></p><p><br /></p><p><br /></p><p>DIR_LOOP_START DIRECTORY="C:\Users\64274\Pictures\downloads\AA GLOBAL MAPPER SCRIPT\maps\"</p><p>EMBED_SCRIPT FILENAME="map1.GMS"</p><p>EMBED_SCRIPT FILENAME="map2.GMS"</p><p>EMBED_SCRIPT FILENAME="map3.GMS"</p><p>EMBED_SCRIPT FILENAME="map4.GMS"</p><p>EMBED_SCRIPT FILENAME="map5.GMS"</p><p>EMBED_SCRIPT FILENAME="map6.GMS"</p><p>EMBED_SCRIPT FILENAME="map7.GMS"</p><p>EMBED_SCRIPT FILENAME="map8.GMS"</p><p>EMBED_SCRIPT FILENAME="map9.GMS"</p><p>EMBED_SCRIPT FILENAME="map10.GMS"</p><p>EMBED_SCRIPT FILENAME="map11.GMS"</p><p>EMBED_SCRIPT FILENAME="map12.GMS"</p><p>EMBED_SCRIPT FILENAME="map13.GMS"</p><p>EMBED_SCRIPT FILENAME="map14.GMS"</p><p>EMBED_SCRIPT FILENAME="map15.GMS"</p><p><br /></p><p>UNLOAD_ALL</p><p><br /></p><p>DIR_LOOP_END  </p><p><br /></p><p><br /></p><p><br /></p><p>GLOBAL_MAPPER_SCRIPT VERSION=1.00</p><p>EXPORT_RASTER\</p><p>PALETTE=OPTIMIZED\</p><p>FILENAME="map1.TIF"\</p><p>TYPE=GEOTIFF\</p><p>COMPRESSION=LZW\</p><p>INC_VECTOR_DATA=YES\</p><p>GEN_WORLD_FILE=YES\</p><p>SAVE_SCALE_AND_LEGEND=YES\</p><p>EXPORT_SCALE=0\</p><p>DPI=0\</p><p>GLOBAL_BOUNDS=173.80,-35.48,176.00,-34.34\</p><p><br /></p><p><br /></p><p>The command above is the .gms script.</p><p>Should I be including anything else?</p>]]>
        </description>
    </item>
    <item>
        <title>Export FBX format with Global Mapper script</title>
        <link>https://www.globalmapperforum.com/discussion/17199/export-fbx-format-with-global-mapper-script</link>
        <pubDate>Wed, 09 Oct 2024 09:16:42 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>peterdian</dc:creator>
        <guid isPermaLink="false">17199@/discussions</guid>
        <description><![CDATA[<p>Hello, I'm not able to find this in the manual: I would like to kindly ask for help with exporting the selected feature (elevation) as an FBX with sample spacing 2x2 meters and boundaries cropped to selected feature and name of the exported file is name of the selected feature. Currently I have to do this manually and it it would help me a lot to be able to run this as a script.</p><p>Thank you very much for help, appreciate it!</p>]]>
        </description>
    </item>
    <item>
        <title>Development version or date to include script support for Create Rings or Ellipses</title>
        <link>https://www.globalmapperforum.com/discussion/17180/development-version-or-date-to-include-script-support-for-create-rings-or-ellipses</link>
        <pubDate>Mon, 26 Aug 2024 22:35:03 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>Geds12</dc:creator>
        <guid isPermaLink="false">17180@/discussions</guid>
        <description><![CDATA[<p>Hello GM Development</p><p>I saw a previous post that there is a future version planned that will include script support for Create Rings or Ellipses. Is it planned for the near future? Any development timeline. Currently I am plotting out risks for multiple points is there an alternative that can be used instead to produce ellipses?</p>]]>
        </description>
    </item>
    <item>
        <title>I need a script that gives feature names to selected shapes.</title>
        <link>https://www.globalmapperforum.com/discussion/17166/i-need-a-script-that-gives-feature-names-to-selected-shapes</link>
        <pubDate>Thu, 18 Jul 2024 04:58:48 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>zocoland</dc:creator>
        <guid isPermaLink="false">17166@/discussions</guid>
        <description><![CDATA[<pre spellcheck="false" tabindex="0">I need the following script, is this possible?

1. Select multiple shapes
2. If the horizontal size of the shape's bounding box is smaller than 100 &lt; size &gt; 105, the feature name is given as "zi-100."

200&lt;size &lt;205 ramen 
Give it the name “zi-200”.

Is a script like this possible?
</pre><p><br /></p>]]>
        </description>
    </item>
    <item>
        <title>GM scripting: reproject/Export raster sets two no_data/background values</title>
        <link>https://www.globalmapperforum.com/discussion/17156/gm-scripting-reproject-export-raster-sets-two-no-data-background-values</link>
        <pubDate>Wed, 19 Jun 2024 12:52:43 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>RKeeping</dc:creator>
        <guid isPermaLink="false">17156@/discussions</guid>
        <description><![CDATA[<p>In my script, I set:</p><p>SET_BG_COLOR COLOR=(255,255,255)</p><p>I reproject my input LCC GeoTiff (that has a background value of 255) to Google's Web mercator.</p><p>I use export raster to save the results to a new file.</p><p>Then I open the exported image in a 3rd party software and can see two different background values. The original, plus a new outer ring of zeros (0). How do I export the data so that there is only one background value? Also, I can't use the "BG_TRANSPARENT=<strong>YES</strong>" as that will create an alpha channel--besides the output still has two different values for background (0 and 255) which other basic 3rd party image viewers do not use.</p><p>Is there a way around this?</p>]]>
        </description>
    </item>
    <item>
        <title>How to load a polygon to layer and display in editor</title>
        <link>https://www.globalmapperforum.com/discussion/17151/how-to-load-a-polygon-to-layer-and-display-in-editor</link>
        <pubDate>Thu, 13 Jun 2024 18:31:12 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>jaredpemberton</dc:creator>
        <guid isPermaLink="false">17151@/discussions</guid>
        <description><![CDATA[<p>Hi all,</p><p>I am stuck at an issue and have been trying numerous things but, I feel as if I am going down the wrong paths so any assistance would be helpful. </p><p>In this part of my script, I am attempting to define a bounds poly (to place in a layer in order to reference for cropping later) but I can't seem to figure out how to load said poly into a layer and display it in editor. </p><p>Here is my existing method, any pointers would be super appreciated.</p><p>// Global Mapper Script to draw a polygon</p><p>// Define coordinates</p><p>DEFINE_VAR NAME="ULX" VALUE="679994.500"</p><p>DEFINE_VAR NAME="ULY" VALUE="3990005.500"</p><p>DEFINE_VAR NAME="LRX" VALUE="700005.500"</p><p>DEFINE_VAR NAME="LRY" VALUE="3979994.500"</p><p><br /></p><p>// Define layer name</p><p>DEFINE_VAR NAME="LAYER_NAME" VALUE="CropPoly"</p><p><br /></p><p>//draw rectangle from coords</p><p>DEFINE_TEXT_FILE FILENAME="SceneBoundsPolygon"</p><p>CLOSED=YES</p><p>%ULX%, %ULY%</p><p>%LRX%, %ULY%</p><p>%LRX%, %LRY%</p><p>%ULX%, %LRY%</p><p>%ULX%, %ULY%</p><p>END_DEFINE_TEXT_FILE</p>]]>
        </description>
    </item>
    <item>
        <title>Prompt within script to select a folder</title>
        <link>https://www.globalmapperforum.com/discussion/17041/prompt-within-script-to-select-a-folder</link>
        <pubDate>Sat, 16 Dec 2023 22:30:39 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>thebigcheif</dc:creator>
        <guid isPermaLink="false">17041@/discussions</guid>
        <description><![CDATA[<p>Hi,</p><p>I would like to create a script that prompts the user to select a folder location via a GUI window (open folder location), and then based on that folder location a series of files contained with subfolders get added recursively based on standardized naming conventions.</p><p>Any advice?</p><p>Thanks,</p><p>Craig</p>]]>
        </description>
    </item>
    <item>
        <title>Script to generate DTM/DSM</title>
        <link>https://www.globalmapperforum.com/discussion/17111/script-to-generate-dtm-dsm</link>
        <pubDate>Wed, 17 Apr 2024 10:15:55 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>p_coelho97</dc:creator>
        <guid isPermaLink="false">17111@/discussions</guid>
        <description><![CDATA[<p>How can I create a script to generate a DTM for the current view without requiring specific coordinates as an input?</p><p>I already have a script to generate a DTM for the entire area or within a specified polygon, but I want to make it so it automatically extracts the coordinates of the current view and generates the product accordingly. Here is the script I currently use to generate for the whole area:</p><p>GLOBAL_MAPPER_SCRIPT VERSION=1.00 </p><p>SET_OPT LIDAR_FILTER="NONE,2" </p><p>GENERATE_ELEV_GRID ELEV_UNITS="METERS" GRID_ALG="BIN_MAX" GRID_BIN_SIZE="5" LAYER_DESC="DSM" NO_DATA_DIST_MULT="0" GRID_SAVE_TIN="NO" GRID_FILL_TO_BOUNDS="NO" GRID_FLATTEN_AREAS="YES" GRID_HEIGHTS_RELATIVE="NO" GRID_USE_CONSTRAINTS="YES" GRID_IGNORE_ZERO="NO" GRID_TYPE="ELEV" SOFT_EDGE_DIST="2"</p><p><br /></p><p>Additionally, is there a way to assign a keyboard shortcut, such as F2, to instantly execute this script for quicker access? The closest I found is to run the script manually and then use the "Run Previous Script" shortcut.</p>]]>
        </description>
    </item>
    <item>
        <title>Split Layer by Attribute - Not Exporting New Splits</title>
        <link>https://www.globalmapperforum.com/discussion/17104/split-layer-by-attribute-not-exporting-new-splits</link>
        <pubDate>Tue, 09 Apr 2024 17:04:34 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>tfitz2001</dc:creator>
        <guid isPermaLink="false">17104@/discussions</guid>
        <description><![CDATA[<p>Hi all -</p><p>Maybe I am missing something, but I can not figure out how to export new layers that are split by an attribute </p><p><br /></p><p>DIR_LOOP_START DIRECTORY="I:\Temp\CSVs" FILENAME_MASKS=*.csv </p><p>IMPORT_ASCII FILENAME=%FNAME_W_DIR% TYPE="POINT_ONLY" COORD_DELIM="AUTO" COORD_FORMAT="DECIMAL" COORD_ORDER="X_FIRST" INC_COORD_LINE_ATTRS="YES" COL_HEADERS="YES" INC_ELEV_COORDS="YES" SKIP_COLUMNS="0" SKIP_ROWS="0" ELEV_UNITS="METERS" </p><p>Set_Layer_Options FILENAME="%FNAME_W_DIR%.csv" ELEV_FIELD="ELEVATION" ELEV_UNITS="METERS" </p><p>Split_Layer Filename="%FNAME_W_DIR%.csv" SPLIT_BY_ATTR="Year"</p><p>Export_Vector Filename="I:\Temp\CSVs\%Layer_Desc%.csv" Type=CSV</p><p>Unload_All</p><p>Dir_Loop_End</p><p><br /></p><p>The export of the new split vector layers is just the original file. There is no split exports.</p><p>I am pretty sure my syntax is incorrect, and something must sit in between Split_Layer and Export_Vector, but I can't figure it out. I really could use some help.</p><p>Thanks</p>]]>
        </description>
    </item>
    <item>
        <title>Ungroup Multi-part polygons?</title>
        <link>https://www.globalmapperforum.com/discussion/17031/ungroup-multi-part-polygons</link>
        <pubDate>Tue, 21 Nov 2023 17:57:30 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>thebigcheif</dc:creator>
        <guid isPermaLink="false">17031@/discussions</guid>
        <description><![CDATA[<p>Hi,</p><p>Is it possible to script the "Ungroup Multi-Part Polygons Into Separate Areas function (found under Advanced Feature Creation Options).</p><p>Thank you!</p>]]>
        </description>
    </item>
    <item>
        <title>Crop to Selected areas as a script command</title>
        <link>https://www.globalmapperforum.com/discussion/17010/crop-to-selected-areas-as-a-script-command</link>
        <pubDate>Mon, 23 Oct 2023 20:46:39 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>rayjoslyn</dc:creator>
        <guid isPermaLink="false">17010@/discussions</guid>
        <description><![CDATA[<p>Is the crop to selected areas command available as a scripting command?</p>]]>
        </description>
    </item>
    <item>
        <title>After a second run it works</title>
        <link>https://www.globalmapperforum.com/discussion/17016/after-a-second-run-it-works</link>
        <pubDate>Tue, 31 Oct 2023 10:34:34 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>gghiggini</dc:creator>
        <guid isPermaLink="false">17016@/discussions</guid>
        <description><![CDATA[<p>I have scripts repeating several hundreds time the same group of functions like this:</p><p><strong>IMPORT FILENAME="file1.SHP" TYPE=SHAPEFILE</strong></p><p><strong><em>.....editing operations.....</em></strong></p><p><strong>EXPORT_VECTOR FILENAME="file3.SHP" TYPE=SHAPEFILE SHAPE_TYPE=AREAS GEN_PRJ_FILE=YES POLYGON_CROP_FILE="file2.SHP" POLYGON_CROP_USE_ALL=YES</strong></p><p><strong>UNLOAD_ALL</strong></p><p>The script load a file, do some editing then export it while performing a crop with another file.</p><p>Then UNLOAD_ALL and restart from the beginning with anther set of files.</p><p>Sometimes the final crop does not work.</p><p>But if I extract that portion of the script into a separate file and run it, then it works (so I am not able to replicate the problem and send a request of support to geohelp).</p><p>It looks like GM after some time running a script have some problems...memory leak ?</p><p>Do you have any suggestion to avoid this?</p><p>I also tried reducing the Script size, but it seems a random problem.</p><p>Thanks for your help.</p><p>Giorgio</p>]]>
        </description>
    </item>
    <item>
        <title>export shapefile attribute to csv by GM script</title>
        <link>https://www.globalmapperforum.com/discussion/17014/export-shapefile-attribute-to-csv-by-gm-script</link>
        <pubDate>Thu, 26 Oct 2023 07:50:55 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>suzuki</dc:creator>
        <guid isPermaLink="false">17014@/discussions</guid>
        <description><![CDATA[<p>hi, dear all</p><p>how can i use GM script to export (save) shp file attribute (table) to csv</p><p>just like the " save to csv " function in attribute Editor </p><p>----------------------------------</p><p>GLOBAL_MAPPER_SCRIPT VERSION=1.00</p><p>UNLOAD_ALL</p><p>   IMPORT FILENAME="aaa.shp" TYPE=AUTO  PROJ_FILENAME="aaa.prj" </p><p> <strong>  EXPORT ????? (i don't know what script should be written here)</strong></p><p>UNLOAD_ALL</p><p>DIR_LOOP_END</p><p>----------------------------------</p><p>thanks </p><p>suzuki</p><div>
    <div>
        <a href="https://www.globalmapperforum.com/uploads/FFCBK1W1FOIL/save2csv.jpg" rel="nofollow noreferrer noopener ugc" target="_blank">
            <img src="https://www.globalmapperforum.com/uploads/FFCBK1W1FOIL/save2csv.jpg" alt="save2csv.jpg" height="486" width="1001" data-display-size="large" data-float="none" /></a>
    </div>
</div>
<p><br /></p>]]>
        </description>
    </item>
    <item>
        <title>Map Layout scripting</title>
        <link>https://www.globalmapperforum.com/discussion/17013/map-layout-scripting</link>
        <pubDate>Thu, 26 Oct 2023 02:36:25 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>Zoran</dc:creator>
        <guid isPermaLink="false">17013@/discussions</guid>
        <description><![CDATA[<p>Hi, </p><p>is there any way to script map layout templates? For example, for any given loaded data set (gmw), i'd like to create a gms (script ) that will ask for a capture date (as variable eg. DEFINE_VAR NAME="CapDate) that will be populated in LAYOUT_ELEMENT as a text, and be part of exported map (PDF).  ... it seams that %CapDate%  does not work ...</p><p>Cheers</p>]]>
        </description>
    </item>
    <item>
        <title>Possible to script a density grid?</title>
        <link>https://www.globalmapperforum.com/discussion/14510/possible-to-script-a-density-grid</link>
        <pubDate>Thu, 22 Mar 2018 19:03:35 +0000</pubDate>
        <category>GM Script Language</category>
        <dc:creator>eddie416</dc:creator>
        <guid isPermaLink="false">14510@/discussions</guid>
        <description><![CDATA[I'm looking at the scripting reference and I see a reference for all other types of grids from lidar, but I don't see the point density option. Is it possible to do this via script?<br /><br />l GRID_TYPE - specifies what values should be gridded for a bin-based grid. The following values are supported:&#13;
<br />l ELEVATION - default, grids the elevation values for each point&#13;
<br />l INTENSITY - grids the intensity value for each point&#13;
<br />l HEIGHT_ABOVE_GROUND - grids the height above ground for each point<br />l NDVI - grids the calculate NDVI (normalized difference vegetation index) for 4-band (RGB+NIR)&#13;
Lidar points&#13;
<br />l NDWI - grids t<br />]]>
        </description>
    </item>
   </channel>
</rss>
