<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<STYLE></STYLE>

<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY id=MailContainerBody 
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 10pt; COLOR: #000000; PADDING-TOP: 15px; FONT-FAMILY: Arial" 
bgColor=#d4d0c8 leftMargin=0 topMargin=0 CanvasTabStop="true" acc_role="text" 
name="Compose message area">
<DIV>Thanks for your confirmation of the drawing order, and your advise.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'll take the 2nd work around, since the 1st one makes the lines 
disjoined.</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=mailto:rodrigomlg@gmail.com 
  href="mailto:rodrigomlg@gmail.com">Rodrigo Martín LÓPEZ GREGORIO</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=mailto:cheung.jackey@gmail.com 
  href="mailto:cheung.jackey@gmail.com">Jackey Cheung</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Cc:</B> <A 
  title=mailto:MAPSERVER-USERS@lists.umn.edu 
  href="mailto:MAPSERVER-USERS@lists.umn.edu">MAPSERVER-USERS@lists.umn.edu</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, June 16, 2007 11:00</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] about 
  line joins and their z-order</DIV>
  <DIV><BR></DIV>I assume that both (yellows and whites) roads are in the same 
  layer and different classes. If this is the case you have no control about the 
  drawing order with the class elements. Mapserver renders all layer elements in 
  the order it gets from source (shp, postgis). <BR><BR>I think there can be two 
  alternatives. The first is separate the roads in two layers using a FILTER at 
  LAYER level so all the white roads gets drawed first and then all the yellow 
  ones.<BR><BR>The other alternative (the one I have used sometime) is order the 
  elements in the source (shp, postgis) so all white elements are procesed first 
  by mapserver. If your layer DATA is on a PostgreSQL table then you can make a 
  second table with the same structure of your original table and insert all the 
  roads in the right order like: <BR><BR>INSERT INTO newtable SELECT * FROM 
  oldtable ORDER BY criteria<BR><BR>I'm sure there must be a better way to sort 
  the elements without creating a second table but this is the way I get it 
  work.<BR><BR>If your layer DATA is on a shp file I don't know how to do that 
  but the idea is the same so if you find the way to do the same on shp file it 
  must work also. <BR><BR>Rodrigo.<SPAN 
  style="FONT-STYLE: italic"></SPAN><BR><BR>
  <DIV><SPAN class=gmail_quote>On 6/15/07, <B class=gmail_sendername>Jackey 
  Cheung</B> &lt;<A title=mailto:cheung.jackey@gmail.com 
  href="mailto:cheung.jackey@gmail.com">cheung.jackey@gmail.com </A>&gt; 
  wrote:</SPAN> 
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
    <DIV 
    style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 10pt; COLOR: rgb(0,0,0); PADDING-TOP: 15px; FONT-FAMILY: Arial" 
    name="Compose message area" bgcolor="#d4d0c8">
    <DIV>
    <DIV>I've rendered a map image like this: <A 
    title=wlmailhtml:{8BE2A9A2-4BE0-4EA1-A8B2-C9B72B7A33CF}mid://00000336/!x-usc:http://www3.mapasia.com/jackout/rj.png>http://www3.mapasia.com/jackout/rj.png</A></DIV>
    <DIV>&nbsp;</DIV>
    <DIV>there are a few problems here:</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>1. they are joined correctly</DIV>
    <DIV>2. although they are joined, but the yellow one should "covers" the 
    white ones</DIV>
    <DIV>3. the white one should be&nbsp;drawn beneath the&nbsp;lower segment of 
    the yellow&nbsp;one</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>As trying to fix this kind of problems, I've noticed that 
    it's&nbsp;impossible to control the z-order of how roads are drawn. Say, in 
    may cities, one very long road may elevated somewhere, and dive beneath 
    other roads somewhere else. Is there any way to present this kind of thing 
    with 
MapServer?</DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>