Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a shapefile containing three types of polylines, how can I color each type with different colors ?

share|improve this question

closed as not a real question by iant, whuber Aug 15 '12 at 13:19

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

What software do you prefer to use? – SaultDon Apr 11 '12 at 22:35
Shapefiles only store data—but not style. – Mike T Apr 12 '12 at 0:11
Do you also have access to arcmap? – Kirk Kuykendall Apr 12 '12 at 13:39
Mahdi, welcome to our site! I suspect your question has collected some downvotes and no really specific replies because people may feel that more information is needed within the question itself. Consider editing it to say a little more about the shapefile (especially how the "types" of polylines are distinguished) and about the context of the application you are creating. – whuber Apr 12 '12 at 13:56

Whichever software you use, you should be able to display the line colours differently based on an attribute of the line itself. e.g. Road = black, river = blue etc.

In Mapinfo this is done using thematic mapping, in Arc you edit the symbology.

share|improve this answer
how can I change the line attributes using ARcGISEngine + C#,there is no line attributes in shapefiles, thanks in advance – Mahdi Apr 12 '12 at 12:16
In a shapefile, the attributes are stored in the .dbf file. If there isn't an attribute for the three types of lines you want to color, you can always create a new field and give each record one of three values (1,2,3; red,blue,yellow; high,medium,low; etc), then display the lines differently based on that attribute. – neuhausr Apr 12 '12 at 14:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.