[mapserver-dev] Re: ANGLE FOLLOW with MINFEATURESIZE AUTO

Jeff McKenna jmckenna at gatewaygeomatics.com
Sat Oct 3 17:59:44 EDT 2009


Jeff McKenna wrote:
> Steve Lime wrote:
>> Will see if that can be added to the 5.6 release... Steve
>>
>>>>> Raivo Alla <snaperski at gmail.com> 08/17/09 2:29 AM >>>
>> Hello,
>>
>> is there any hope that mapserver will in the future support curved
>> labels with MINFEATURESIZE AUTO settings?
>> Would be nice to display street labels displayed only when they have
>> enough space in the line segment...
> 
> For the FOSS4G WMS benchmarking exercise, I'm trying to match MapServer 
> with a GeoServer test that shows curved labels, but only for features 
> that are larger than the label.  In MapServer world, this would be ANGLE 
> FOLLOW with MINFEATURESIZE AUTO.  I came across the above email 
> discussion because I noticed this:
> 
> - all roads curved with MapServer 5.6.0beta2: 
> http://64.222.187.168/cgi-bin/mapserv560beta2?MAP=/opt/benchmarking/mapserver/vector-by-merged.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=roads-merged-labeled&STYLES=&SRS=EPSG:4269&WIDTH=950&HEIGHT=600&FORMAT=image/png&BBOX=-96.79344550384396,32.76888304968294,-96.78588564285151,32.77365769873079 
> 
> 
> - minfeaturesize auto curved labels with MapServer 5.6.0beta2 (no curved 
> labels are drawn): 
> http://64.222.187.168/cgi-bin/mapserv560beta2?MAP=/opt/benchmarking/mapserver/vector-by-merged.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=roads-merged-labeled-minfeaturesize&STYLES=&SRS=EPSG:4269&WIDTH=950&HEIGHT=600&FORMAT=image/png&BBOX=-96.79344550384396,32.76888304968294,-96.78588564285151,32.77365769873079 
> 
> 
> Was there a ticket for this addition (to be added for 5.6.0)?
> 
> Thoughts?

Here is the GeoServer 2.0(dev) working example:
http://64.222.187.168:8080/gs20x/ows?SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=shp:edges_merge&STYLES=roads_classified_shp_label&SRS=EPSG:4269&WIDTH=950&HEIGHT=600&FORMAT=image/png&BBOX=-96.79344550384396,32.76888304968294,-96.78588564285151,32.77365769873079

and MapServer 5.6.0beta2 should get the same response (with 
minfeaturesize auto and angle follow) but does not:
http://64.222.187.168/cgi-bin/mapserv560beta2?MAP=/opt/benchmarking/mapserver/vector-by-merged.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=roads-merged-labeled-minfeaturesize&STYLES=&SRS=EPSG:4269&WIDTH=950&HEIGHT=600&FORMAT=image/png&BBOX=-96.79344550384396,32.76888304968294,-96.78588564285151,32.77365769873079


-jeff



-- 
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/




More information about the mapserver-dev mailing list