051] Global Mapper - Refining Path Profile 2: with ChatGPT
051] Global Mapper - Refining Path Profile 2: with ChatGPT
Continuing from the last session, I had more conversations with ChatGPT. It really feels like talking to a human.
"Before we begin, if you missed the previous session, check it out here:"
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.
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.
CSV Export Settings
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
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.
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".
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!
"In the next session, we'll dive deeper into more advanced features. Stay tuned!"
Comments
Post a Comment