Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Latitude-longitude label style

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
demus72
7347 Views, 10 Replies

Latitude-longitude label style

I have found several ways to label a point with Lat/Lon but the label styles aren't consistent with North South East West. I have been requested to label Latitude and Longitude with the North South East West after the degrees. In the label style, there are several direction options to choose from. The one I have always used is prefix short name. This places a N S E or W in front of the degrees. I need to move the N S E or W to the end so I selected suffix short name but it puts North South East or West instead of N S E or W. There is also an option for suffix long name which of course does the same thing. It would appear suffix short name and suffix long name are the exact same. I thought I could leave the direction off of the label and just place a N S E or W behind the label as text but there isn't a direction option for none. Anyone have any suggestions or work arounds?

 

Thank you.

10 REPLIES 10
Message 2 of 11
AllenJessup
in reply to: demus72

Are you working in an area where all directions are necessary. In the USA everything is North and West. So I would just insert an N or W as plain text. Although, after looking at it, I don't see how to get rid of the direction without some trickery. Have you tried "suffix short name spaced"?

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 3 of 11
ccoles
in reply to: demus72

I just tried it in my Civil 3D 2011. I found the same bug. 'Suffix Short Name' and 'Suffix Short Name Spaced' both show the long name. I wonder how this bug slipped through all this time? Of course, our standard label is set to show 'Prefix Short Name', and that works perfectly.

 

Try setting the lat. and long. to 'signed', then adding N or E to the end of the label.

Windows 7 64-bit
Dell Precision T5610, Dual-Xeon 2.6Ghz, 16 Gig RAM
Civil 3D 2013
Message 4 of 11
demus72
in reply to: demus72

Thank you both for replying. I tried every direction option available in both a note label and a point label but it doesn't display the desired result. I also tried the signed option and put a N and W behind the label but nothing changed, thanks for the suggestion. It would be nice if there were a none option for direction if one didn't want the direction labeled. I suppose it wouldn't be a true Lat/Lon coordinate without direction. Isn't it strange that the suffix short name and suffix long name are exactly the same? How does one go about reporting a bug?

 

Thanks again.

Message 5 of 11
gjrcmb
in reply to: demus72

Hey folks,

Yes, it does appear that the Suffix Short Name option is not doing what it is suppose to do.  I would actually expect the Property Field Modifier to be named DSSn instead of DSS, based on looking at the other direction modifiers.  I tried pasting <[Latitude(Udeg|FDMSdSp|P6|RN|DSSn|CU|AP|EN|DZY|OF)]> from Notepad into the Text Component Editor but it did not recognize that as a valid Property.

After trying a few other things, I basically came to the same conclusion that AllenJessup came to.  Is there some way to use the Signed Direction modifier, and somehow get rid of the minus sign?

So I setup a couple Expressions under Point | Label Styles to actually change the direction label.  I then used these expressions in creating a new Point Label Style.  See attached images.  Basically all I am doing is modifying the latitude or longitude label to reverse its direction if it is negative which seems to only be affecting the label, and then manually append the direction to in the Text Component Editor.  I don't really like the solution as it can lead to confusion, since the actual longitude and latitude of the point are different then the underlying label (see image of Point Property Geometry and Expressions).  However, as Allen stated if you working in an area where the latitude and longtitude will always be the same sign then you could use this approach provided you feel confortable with it.  Otherwise, you would have to deal with making sure the N, S, E, and W labels are correct for a given project.  Check it out for yourself and see if that is an acceptable work around solution.

In the mean time I would drop a line to Autodesk in the event they are not aware of the issue.  Not sure about the best channel, maybe
http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=12338355.

Let me know if you discover any other solutions or info.

Tags (1)
Message 6 of 11
gjrcmb
in reply to: gjrcmb

Oops.  Remove period at previously listed link.

 

http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=12338355

Message 7 of 11
AllenJessup
in reply to: gjrcmb

Maybe http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1109794

 

I'm glad you tried to edit it in notepad. I was thinking of trying that this morning. I would also suggest that if the OP is on subscription that they start a support request. That will probably bring this to autodesk's attention the quickest.

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 8 of 11
andrewpuller3811
in reply to: gjrcmb

For your labels, you can break it down into the different parts, and have the degrees and minutes shown as normal and used the signed output for the seconds - which causes the West to be dropped and then just put W on the end.

 

You can choose to show only one component of the label using the output line of the text component editor, you might have to scroll down to get to it.

 

See the attached image inwhich i have the degrees component on the first line. On the second line I have the minutes part. And on the third line I have the seconds part with a static W after it. Instead of having the direction for the seconds as suffix short name I have set it to signed which causes the WEST to be dropped.

 

 



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 10 Enterprise 64bit
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2021
Message 9 of 11
gjrcmb
in reply to: andrewpuller3811

Andrew I do believe you got it.  Nicely done. Much better solution then what I came up with.  Only change I made is to have the symbol format for the degrees and minutes parts included (see image).

Message 10 of 11
demus72
in reply to: demus72

Thank you all for taking the time to look into this matter. I tried the signed option again a placed a new label and this does work for my purposes. The reason the existing labels didn't update with the style change is I had performed an edit label text to the label after placing it. After modifying the label style to signed and putting the N behind the Latitude and W behind the Longitude, I get the desired label.

 

Allen, I am on subscription so I will open a new support request. Thanks for the suggestion.

 

Have a good day.

Message 11 of 11
jsguptill
in reply to: demus72

I discovered this but  is correct. It works and once you get the steps down, it's super quick and real easy.

A little more detail.

If you look under either the latitude or the the longitude properties all the way at the bottom is "output". NOTE: On my machine they are whited out, but if you click on the space it will fill in just fine (must be a display issue). Just use the little slide bar in the middle of the edit window and slide all the way to the bottom.

In the "OUTPUT" drop down box:

1) set the direction property of the DMS -DD part to suffix (since it's the first part, if you use "prefix" it will add the prefix). Make sure the other properties fit your needs and click the little right arrow.

2)Set the direction property of the DMS - MM part to suffix (I didn't check this but assuming it's the middle part, none will show). Make sure the other properties fit your needs and click the little right arrow.

3)Set the direction property to either signed or prefix (since it's at the end any suffix will show) I used "signed" but believe any "prefix" will not show. Make sure the other properties fit your needs and click the little right arrow. You will end up with a long stream of three components.

 

Then just manually type in the direction you desire "E" or "W" for Longitude and "N" for Latitude at the very end of the string. If you add a space between the end of the string it will end up a "space" before the direction. If you push "enter" bewteen the strings, you will end up stacking the text.

 

I hope this helps!

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report