Stationing along a line
When I create a path/profile along a line the display shows the stationing of the line. It would be great if I could create tick marks along the line at designated distances (like what CAD software can do). Ideally this would include major and minor tick marks with stationing displayed at major tick marks.
Comments
-
There's a way to do this, fortunately!
Right-click on the workspace and a pop-up menu will appear
Go to the menu options: Advanced Feature Creation Options -> Create Perpendicular Lines Spaced Along Selected Line/Area Feature(s) ...
Use the second option to Sample Features at a Fixed Distance Interval, which you can define.
These lines will be placed into your User Created Features layer.
Hope that that helps! This will only create one type, not a major or minor tick marks. But I suppose that you can do this once, and change those lines to be a different style, then do this same trick again at a smaller interval to get the minor lines. -
Thanks. That is what I was looking for.
-
Can someone explain how to add a label to each perpendicular that represents the station on the line i.e
STA:0
STA1:100
STA:200
etc.
-
-
ie the station label should be a prefix "STA:" and the incremental distance along the line
-
There is a way to do something like you need but it is a bit lateral. I'm using v 22.1. Once you have defined your route and loaded the terrain surface select your route and Analysis/Measurement and Path Profile. Then Path Setup/Specify sample count/ Spacing Distance. Select the distance you want eg 1m or 100m or whatever, generate the profile and save to CSV with XYZ dist slope etc.
Then read into Excel, cut and insert the Distance (Total) next to the Y (Northing) column, and save the X, Y, Distance (Total) data to a text fle e.g
461240.8 5967612.1 4855
461240.4 5967613.0 4856
461240.0 5967613.9 4857
461239.6 5967614.8 4858
Read into GM as a data file points with attributes and you should end up with something like this. This is a 1m Kilometre Point file. The line label I have customised. Line style has a width of 3. You will need to play arond with the line style setting to get it exactly as you want. I have used a cross but you could use a point.
Good luck.
-
Hi @RGBrown
Thanks for the workaround. Its such a shame that GM does station/chainage markers but falls over when it comes to labelling them with "Sta" or "Ch" prefix and m, km, feet etc. suffix. Or at least I've never figured out how to do it?
I'm sure this is something that the good folks at Blue Marble should be able to fix...😁
Any other interested folk out there?
Ta,
/al
-
No probs Carrick, As another test I added text to the attribute and changed the symbol. You could make up your own symbol in the Styles.
Cheers
RGB
-
RGB! That is super. Thanks much. I've spent so much of my career using CAD that the Global Mapper workflow is sometimes a little obscure. I have found I can usually get done what I need to get done in GM but I have to "think" about the work flow a little differently. Ie.. to Carrick's point, it would be amazing to have a "apply stations to line feature (alignment)" and also be able to pick and label multiple spot elevations along a profile.
Thanks again!
-
If you right-click the layer with your labels, go to Layer, Calculate/Copy Attribute Values, you could use the string calculations to prepend/append whatever extra letters you needed. Just make sure it is set to do "string" calculations.
Ex: concat("STA: ",<FEATURE NAM>,"m")
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 636 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 826 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 913 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website