Style Contour Lines

Style Contour Lines

Anonymous
Not applicable
3,411 Views
15 Replies
Message 1 of 16

Style Contour Lines

Anonymous
Not applicable

I create contour lines from a raster image with a major and minor contour. When I go to style the the minor contour lines do not pick up their assigned (not default) individual characteristics (I make them a different colour and line thickness). All of the lines are dictated or styled by the properties for the major contour line.

Why is Map 2020 doing this?

0 Likes
3,412 Views
15 Replies
Replies (15)
Message 2 of 16

parkr4st
Advisor
Advisor

what file type holds the contour lines?  .shp. sdf. other?

Can you provide at least a screen shot of how you set the styles?

Can you attach the data and post it?

 

 

0 Likes
Message 3 of 16

Anonymous
Not applicable

 

 

I used the MAPCREATESURFACE command to create the surface (.xyz attached). I then right clicked on 'Create_Contour_Layer'. From there you can see the screenshots of how I styled the major and minor contour line. The final screenshot in modelspace is after both contours were styling (after a REGEN of course). A REFRESH LAYER in the Task Pane had no effect.

 

1/2 attachments

0 Likes
Message 4 of 16

O_Eckmann
Mentor
Mentor

Hi,

 

In your SDF, all contour lines has property IsMajor to TRUE so it's OK that stylisation has all same color.

 

Olivier

Olivier Eckmann

EESignature

0 Likes
Message 5 of 16

parkr4st
Advisor
Advisor

drag the attached .layer file into an empty map and look at the styles.  Math formulas can be used to theme data.

BTW, there is no coordinate system set.  Is this data real on the face of the earth?  A GCS probably should be set and the data placed where it is on earth.

dave

0 Likes
Message 6 of 16

Anonymous
Not applicable
I did not set the minor contour lines to be 'TRUE'. As well if I try to change that it does not accept 'FALSE'.
I'm not sure what you mean by OK.
0 Likes
Message 7 of 16

parkr4st
Advisor
Advisor

I can set each record from the drop down list.  mapcheckinall is necessary to keep changes.   I used the mathematical solution as it saved changing all the records.

 

By OK i think it was meant given the data set you posted, the style applied is what is expected and thus OK.

 

dave 

 

DataTableTFNull.jpg

Message 8 of 16

Anonymous
Not applicable

Maybe I need to re-frame this. Why doesn't map change the appearance of the contour lines when I set the style in the style editor. What I am getting from your screenshot is that I have to go into the data table and change every minor contour entry. Am I understanding you correctly?

0 Likes
Message 9 of 16

Anonymous
Not applicable

When I brought in your SDF file all contours were on one layer and in the same colour. I brought in your 'Contour(1)' layer file and nothing showed. I tried to look for a table or query and both were greyed out.

In my origial .zip file I had screenshots showing the major and minor contours in the style editor just after using the create contours function. Why does Map not change the attributes for the contour lines at that point? I have used the style editor to change attribute for entities that show in that dialogue. Why won't it change the contours is all I need to know to mnake this function work.

 

(P.S.- I didn't assign a coordinate system to my previous files since it is not relevant to the issue. The location of the coordinates are for a real world situation though).

 

0 Likes
Message 10 of 16

parkr4st
Advisor
Advisor

All of the records in IsMajor in the original data table are set to TRUE.  You cannot use that field in the table to style with because the "TRUE" is not related to the fact that a contour is Major.

 

You can either set the Minor contour records to false 

or

you can use the field ELEVATION to style the data

 

If all Major contours are evenly divisible by 10,  i.e. 760, 770, 780, etc then one expression to style those is needed.  All the minor contours will be default and you can set the line style for them.

 

The expression    Remainder (Elevation , 10 ) = 0    will test every record for the zero remainder.  if the remainder is zero it can be styled as you like for a major contour

 

for 20 unit major intervals  Remainder (Elevation, 20 ) = 0, etc  750 will return 37.5 and not be major,  760 would return 38 and be major, etc

 

The expression    Remainder ( Elevation , 10 ) < 0 OR Remainder ( Elevation , 10 ) > 0 will identify minor contours and can be styled

 

 

StyleMajMinContours.jpg

Message 11 of 16

Anonymous
Not applicable

Thanks for your response.

I'm looking for root cause rather than have to create a query.

Again, the contours were generated using the 'Create Contours' command by right clicking on a raster image. Why does the software not allow me to simply change the style for those entities and show up as styled? I attached the screenshots in my original post.

What am I missing here (why do I need to run a query to make up for the previous result?)?

0 Likes
Message 12 of 16

Pointdump
Consultant
Consultant

Barry,
OK, I followed your steps. Here's what I got:

 

Contours_1.png

 


Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2027
0 Likes
Message 13 of 16

Pointdump
Consultant
Consultant

I forgot to change color of Minors:

 

Contours_2.png

 


Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2027
0 Likes
Message 14 of 16

Anonymous
Not applicable

What is your contour interval?

 

I need to find out why it did not work that way on my workstation/Map.

0 Likes
Message 15 of 16

Pointdump
Consultant
Consultant

Contours_3.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2027
0 Likes
Message 16 of 16

Anonymous
Not applicable

I will have to run this again. I went outside the box a little and maybe that is where the error is occurring. I used .5 and 1 m by typing those values in the field for 'create contours'. I will run it again using my original interval and then 1 and 10 to see the results.

0 Likes