Hello Steve,

Thank you for your advice, I had not used the KEYIMAGE option.
It works fine.
No problem to make same-sized chips.

It closed. thank you again,

Isao

(2011/02/19 0:55), Lime, Steve D (DNR) wrote:
I can confirm the issue. Not sure what's going on but something's broken in the 
legend generation. I'll try and sum
things up and file a ticket against 5.6. We won't patch back to 5.0 for 
something like this.

As a workaround you might consider setting a KEYIMAGE in your class definition. 
Make it the same size as your legend
"chips" (usually something like 25x15) and that image will be used instead of 
creating one dynamically. I tried that
here and it seems to work. You should be able to clip a section of a 
MapServer-created map out for this purpose.

Steve

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Isao NASUNO
Sent: Thursday, February 17, 2011 6:29 PM
To: [email protected]
Subject: Re: [mapserver-users] problem of legend icon for pixmap-filling type 
polygon layer

Hello Steve,

I am using gd-2.0.33, with MapServer 5.0.2.

Thank you,

Isao

(2011/02/18 6:54), Lime, Steve D (DNR) wrote:
Which driver are you using (AGG or GD)? I'll run some tests here and report 
back... Steve

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Isao NASUNO
Sent: Wednesday, February 16, 2011 11:20 PM
To: [email protected]
Subject: [mapserver-users] problem of legend icon for pixmap-filling type 
polygon layer

Hello all,

I had send same question 2 weeks ago but I have no response,
so I try again with more detail of the problem.

** situation **

I'm trying to make pixmap-filled polygon maps and I did it without problem,
however a problem in getting legend.
I want legend icons by mapserver cgi with request "mode=legend" like following.

(base pattern)    (what I want)

                    oxoxoxoxoxox
                    xoxoxoxoxoxo
oxox              oxoxoxoxoxox
xoxo    ------>     xoxoxoxoxoxo

However I get following. It is like a legend icon of line layer.

       oxox    oxox
      oxoxox  oxoxo
     oxoxoxoxoxoxo
    oxoxo oxoxoxo
   oxoxo   oxoxo
   xoxo    xoxo

** version **

I'm using MapServer 5.0.2 on CentOS 5.2.
I also try MapServer 5.6.x (forgot for detail), but the situation is same.


** what I did **

The symbol is defined like ...
---------------------
    SYMBOL
      NAME "symbol1"
      TYPE pixmap
      image /somewhere/symbol1.gif
      transparent 1
    END
---------------------

The layer is as following...
---------------------
    layer
     name "jimon"
     connectiontype postgis
     connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432"
     data "the_geom from polygon"
     status on
     type polygon
     classitem "id"
     projection
      "init=epsg:4326"
     end

     class
      name "pattern1 "
      expression "1"
      style
        symbol "symbol1"
      end
     end
           :
    end
---------------------

Could anyone please help me !?

Isao
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to