Re: [mapserver-users] Is RFC 101 in Mapserver 6.4.1?

2014-12-04 Thread thomas bonfort
Luca,
RFC101 only treats image legends, it is not implemented for HTML ones.

--
thomas

On 2 December 2014 at 16:17, Luca Manganelli luc...@gmail.com wrote:
 As stated in this document:
 http://mapserver.org/development/rfc/ms-rfc-101.html
 the Content Dependent Legend Response should be integrated into MapServer.

 GetLegendGraphics is fully working now; but now I tried to use HTML
 legend templates. The RFC describes the CGI mode MAPLEGEND (that's not
 documented, but LEGEND is). I am trying to have a html legend based on
 the contents with this command:

 http://local/cgi-bin/mapserv?map=map.mapmode=maplegendMAPEXT=X1 Y1
 X2 Y2SRS=EPSG:25832

 am I doing some error in this request?

 Note that if I use  mode=LEGEND, it returns all the legend.

 Thank you in advance :-)
 Luca
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is RFC 101 in Mapserver 6.4.1?

2014-12-04 Thread Luca Manganelli
On Thu, Dec 4, 2014 at 10:18 AM, thomas bonfort
thomas.bonf...@gmail.com wrote:
 Luca,
 RFC101 only treats image legends, it is not implemented for HTML ones.

That RFC101 states:

* mode=maplegend and mode=maplegendicon are added to the traditional
mapserver cgi. The mapserverObj struct gets an added map_hittest
member that is used by the legend templating code to produce content
dependant html legends.

I can invoke Mapserver CGI with these parameters, and if I don't pass
the map extent, the legend is empty (that's right behaviour). I am
searching the name of that parameter so I could do that...
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is RFC 101 in Mapserver 6.4.1?

2014-12-04 Thread thomas bonfort
there are some tests in
https://github.com/mapserver/msautotest/blob/master/wxs/wms_legend.map

On 4 December 2014 at 10:27, Luca Manganelli luc...@gmail.com wrote:
 On Thu, Dec 4, 2014 at 10:18 AM, thomas bonfort
 thomas.bonf...@gmail.com wrote:
 Luca,
 RFC101 only treats image legends, it is not implemented for HTML ones.

 That RFC101 states:

 * mode=maplegend and mode=maplegendicon are added to the traditional
 mapserver cgi. The mapserverObj struct gets an added map_hittest
 member that is used by the legend templating code to produce content
 dependant html legends.

 I can invoke Mapserver CGI with these parameters, and if I don't pass
 the map extent, the legend is empty (that's right behaviour). I am
 searching the name of that parameter so I could do that...
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Is RFC 101 in Mapserver 6.4.1?

2014-12-04 Thread Luca Manganelli
On Thu, Dec 4, 2014 at 10:35 AM, thomas bonfort
thomas.bonf...@gmail.com wrote:
 there are some tests in
 https://github.com/mapserver/msautotest/blob/master/wxs/wms_legend.map

MARVELLOUS! I had to add layer=NAME, not only mapext= parameter!

Thank you very much  :-)

Now I'm happy!
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Is RFC 101 in Mapserver 6.4.1?

2014-12-02 Thread Luca Manganelli
As stated in this document:
http://mapserver.org/development/rfc/ms-rfc-101.html
the Content Dependent Legend Response should be integrated into MapServer.

GetLegendGraphics is fully working now; but now I tried to use HTML
legend templates. The RFC describes the CGI mode MAPLEGEND (that's not
documented, but LEGEND is). I am trying to have a html legend based on
the contents with this command:

http://local/cgi-bin/mapserv?map=map.mapmode=maplegendMAPEXT=X1 Y1
X2 Y2SRS=EPSG:25832

am I doing some error in this request?

Note that if I use  mode=LEGEND, it returns all the legend.

Thank you in advance :-)
Luca
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users