[MAPSERVER-USERS] Direction on road using ARROW Image

Ila ila.engg at gmail.com
Mon Jun 9 07:58:32 EDT 2008


Finally I got the solution. I have created an arrow(->) on roads properly. I
wont be able to fine CHARACTER  CODE of(->) in required FONT SET. But now i
got it. For reference I m giving you the solution if anybody requires it:
I have modified the symbol definition:
SYMBOL
        NAME "arrow"
        TYPE TRUETYPE
    FONT arial
        FILLED true
        ANTIALIAS true
        CHARACTER '→'
        GAP -50
END

Ans in layer definition:
 LAYER
 
  NAME "major road"
  CONNECTIONTYPE db
  CONNECTION "usename/password"
  DATA "GEOM FROM road "
  CLASSITEM "ONEWAY"
  LABELITEM "STREETNAME"
  TYPE Line
  STATUS ON

  CLASS
    NAME "MAJOR-ROADS"
    MAXSCALE 260000
    MINSCALE 0
    EXPRESSION ([ONEWAY] = 1)
   
    style
     SYMBOL "arrow"
     SIZE 10  
     COLOR 82 82 82
    ANTIALIAS true
    end
  END
 END # Layer

Now this will work fine. Thank you for everyone's guidance & suggestions.


Ila wrote:
> 
> I am getting symbol on the road, but its not coming as it was in image.gif
> file. The symbol get displayed in rectangular form. I am not getting where
> theres a problem. Please help me out.
> My symbol definition is as follows:
> 
> SYMBOL
>   NAME "newarrow"
>   TYPE PIXMAP  
>   IMAGE "105.gif"
>   GAP -70
> END
> 
> And Layer is as:
> 
> LAYER
> 
>   NAME "road"
>   CONNECTIONTYPE db
>   CONNECTION "username/password"
>   DATA "GEOM FROM road"
>     CLASSITEM "ONEWAY"
>   LABELITEM "STREETNAME"
>   TYPE Line
>   STATUS ON
>   
>   CLASS
>     NAME "MAJOR-ROADS"
>     MAXSCALE 260000
>     MINSCALE 0
>     EXPRESSION ([ONEWAY] = 1)
>    
>     style
>      SYMBOL "newarrow"
>      SIZE 8  
>      COLOR 119 136 153
>     ANTIALIAS true
>     end
>   END
>  END # Layer
> 
> 
> Ritesh Ambastha wrote:
>> 
>> Please write your Layer definition and symbol definition. 
>> It would be helpful for us to gaze the problem. 
>> 
>> Arrow directions is easy to implement. I guess you might be missing a
>> minor part. 
>> 
>> Regards,
>> Ritesh Ambastha
>> 
>> 
>> Ila wrote:
>>> 
>>> Hello readers,
>>> 
>>>      As I am working on GIS application & new to it, so please forgive
>>> me for my noob questions. I want to show the direction on oneway road
>>> using any arrow image, not through using arrow character. I have
>>> successfully implemented the road direction using ARROW Character, but I
>>> want to implement the same using ARROW image in my application. So, is
>>> there any way to implement it? Please provide me some example for my
>>> better understanding. I would be very thankful for your
>>> suggestions/thoughts.
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Direction-on-road-using-ARROW-Image-tp17688884p17731359.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list