051] How to Automatically Detect Site Boundaries in Global Mapper Path Profiles Using ChatGPT
Use exported coordinate data to automatically detect project site ranges in terrain profiles.
This tutorial demonstrates how to leverage raw X, Y coordinate data from Global Mapper CSV exports to help ChatGPT automatically identify and highlight project site boundaries on a cross-section graph, eliminating the need for manual range input.
Continuing from the last session, I had more conversations with ChatGPT. It really feels like talking to a human.
The Problem with Manual Site Range Input
In the previous post, I manually designated the "site" area. In other words:
As shown in the image above, I manually identified the range where the cross-section line intersects with the project site boundary and input that range when ChatGPT generated the graph.
Using CSV Coordinate Data for Automation
However, looking at the contents of the exported CSV file for the path profile:
It doesn't just contain distance and elevation; it includes the raw coordinate values (X, Y).
The Potential for Automation
When you export a path profile in CSV format, you have various options:
"Save Path to CSV File (XYZ, Distance, Slope)..."
Because coordinates and elevation values are included, we can infer a possibility here. If we provide both the path profile CSV data and the project site CSV data to ChatGPT at once, it should be able to identify the project range automatically without me having to tell it manually.
Exporting the Project Site Area as CSV
Recently, we learned how to add points, lines, and areas using CSV files. (Refer to 049] Global Mapper - Adding Points, Lines, and Areas using CSV files).
Now, let's export the project site as a CSV area file.
Select the project site layer, right-click, and choose Layer - EXPORT - Export Layer(s) to New File...
When the layer selection window appears:
Select only the layer containing the project site area and click OK. When prompted to choose the export format, select CSV and click OK.
Configuring CSV Export Options
When the CSV Export Options window appears, configure it as follows:
Set the Field Separator to "Semicolon" and check "Export Area and Line Features (Use WKT Coordinate Format)". This is crucial for ChatGPT to understand the geometry. Click OK to save the file.
(Note: From the next session, I will skip capturing previously explained processes and just describe them in text.)
Conversing with ChatGPT
Uploading CSV Files to ChatGPT
Now we have two files: the path profile CSV and the project site area CSV. It's time to talk to ChatGPT. Log in to ChatGPT and upload both files.
I uploaded the project site and path profile files and requested a graph using the "Path Profile Instructions" I developed during our previous conversations (I've added several new features since then).
The Result?
It successfully identified the boundaries and marked the highest and lowest points within the project area. I also added another feature.
Automatically Identifying Multiple Site Intersections
I tried creating a cross-section line that enters and exits the project area multiple times, as shown above.
And the result?
Brilliant! It correctly identified "site 1" and "site 2".
Final Thoughts
It’s not difficult at all. Try chatting with ChatGPT to create a profile that fits your unique needs and style.
That’s all for today!
- Learn previous workflow in 050] How to Create Advanced Terrain Profiles from Global Mapper Using ChatGPT
- Continue learning with 052] How to Use Formula Calculation in Global Mapper Attribute Setup
Comments
Post a Comment
Feel free to leave a comment if you have any questions about Global Mapper or CityEngine. I will get back to you with a sincere response as soon as possible. (Please note that all comments are moderated and manually approved to maintain a high-quality community. Promotional or spam content will not be published.)