1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
MAP
NAME "pgRouting Test Mapfile"
EXTENT -0.25 -0.25 4.24 4.25
SIZE 500 500
IMAGECOLOR 238 238 153
TRANSPARENT OFF
# UNITS PIXELS
FONTSET "fonts.txt"
CONFIG MS_ERRORFILE "stderr"
OUTPUTFORMAT
NAME agg_qn
DRIVER "AGG/PNG"
EXTENSION "png"
MIMETYPE "image/png"
IMAGEMODE RGB
FORMATOPTION "INTERLACE=false"
FORMATOPTION "QUANTIZE_NEW=ON"
FORMATOPTION "QUANTIZE_DITHER=OFF"
FORMATOPTION "QUANTIZE_COLORS=256"
END
SYMBOL
NAME "circle"
TYPE ELLIPSE
POINTS 1 1 END
END
SYMBOL
NAME "circle-filled"
TYPE ELLIPSE
FILLED TRUE
POINTS 1 1 END
END
SYMBOL
NAME "one_way_from"
TYPE TRUETYPE
FONT "arial-bold"
CHARACTER ">"
#GAP -40
END
SYMBOL
NAME "one_way_to"
TYPE TRUETYPE
FONT "arial-bold"
CHARACTER "<"
#GAP -40
END
LAYER
NAME "Streets"
# DEBUG 5
STATUS DEFAULT
TYPE LINE
CONNECTIONTYPE postgis
CONNECTION "user=postgres dbname=trsp_test host=localhost port=5432"
DATA "the_geom from (select eid, the_geom from edges1) as foo using srid=-1 using unique eid"
LABELITEM 'eid'
CLASS
STYLE
COLOR 87 87 87
WIDTH 2
END
LABEL
TYPE BITMAP
SIZE medium
COLOR 0 0 0
POSITION UR
OFFSET 2 2
END
END
END
LAYER
NAME "One_Way_Arrows"
STATUS DEFAULT
TYPE LINE
CONNECTIONTYPE postgis
CONNECTION "user=postgres dbname=trsp_test host=localhost port=5432"
DATA "the_geom from (select eid, dir, the_geom from edges1 where dir != 'B') as foo using srid=-1 using unique eid"
CLASSITEM 'dir'
CLASS
NAME 'From'
EXPRESSION "FT"
STYLE
SYMBOL "one_way_from"
COLOR 80 80 80
SIZE 8
GAP -40
END
END
CLASS
NAME 'To'
EXPRESSION "TF"
STYLE
SYMBOL "one_way_to"
COLOR 80 80 80
SIZE 8
GAP -40
END
END
END
LAYER
NAME "Nodes"
STATUS DEFAULT
TYPE POINT
CONNECTIONTYPE postgis
CONNECTION "user=postgres dbname=trsp_test host=localhost port=5432"
DATA "the_geom from (select source as node, makepoint(x1,y1) as the_geom from edges1 union select target as node, makepoint(x2,y2) as the_geom from edges1) as foo using srid=-1 using unique node"
LABELITEM 'node'
CLASS
STYLE
SYMBOL "circle-filled"
COLOR 180 80 80
SIZE 8
END
LABEL
TYPE BITMAP
SIZE medium
COLOR 180 0 0
POSITION UR
OFFSET 6 6
END
END
END
END
|