[mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1

Yewondwossen Assefa yassefa at dmsolutions.ca
Fri Apr 29 13:47:50 EDT 2011


On 28/04/2011 3:12 PM, Yewondwossen Assefa wrote:
> Sorry I hit send  with finishing the e-mail. I will through each items 
> tomorrow and report.
>
> On 28/04/2011 3:10 PM, Yewondwossen Assefa wrote:
>> On 28/04/2011 9:34 AM, Arnd Wippermann wrote:
>>> Hi,
>>>
>>> I'm interested in map styling with SLD and have tested it locally with
>>> MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com.
>>>
>>> I have created an online application to play with SLD and the different
>>> MapServer versions.
>>> http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ 
>>>
>>> er_SLD_World.asp
>>>
>>> There the below issues can be seen. For the online application I 
>>> have only
>>> 6.0.0 Beta 7 available, but it is the same with RC1.
>>>
>>> Most things work great and create a good looking output.
>>>
>>> But some things doesn't work as expected.
>>>
>>> 1.
>>> It seems, that the output directory for debug is set static to
>>> C:\Windows\Temp.
>>> msApplySLD(): Map file after SLD was applied
>>> C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map
>>> IMGPATH or IMGURL is not take in account.
>>>
>> Temporary files are now written into the tmp directory location. It 
>> depends on the platform but should respect the environment variables 
>> set on your platform regarding temporary paths. It is not hardcoded 
>> in Mapserver.  Ticket http://trac.osgeo.org/mapserver/ticket/3354 has 
>> notes on this.
>>
>>> 2. fill external symbol
>>> Polygon fill with external graphic is erratic. If I zoom in one 
>>> level i get
>>> one tile (South America).
>>> It creates a file
>>> "http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png" in
>>> C:\Windows\Temp.
I am not sure I could reproduce this. With local test file, I was able 
to get a fill polygon with external symbol working.
If you have a simple map/data I can use, you can create a trac bug and 
attach it to them and assign it to me (osgeoid: assefa)

>>>
>>> 3. Continent, Continent_Else
>>> Filter PropertyIsLike doesn't work. With 5.6.1 it is ok.
>>> Expression from generated mapfile : EXPRESSION ("[Continent]" =~ 
>>> /^Africa/)
>>>
>>> 4. or_like_abcdef
>>> Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last 
>>> entry of
>>> PropertyIsLike are taken.
>>> With Or and PropertyIsEqualTo all entries are taken in both versions.
>>> Expression from generated mapfile (6 beta): EXPRESSION ( 
>>> ("[country]" =~
>>> /^A/) Or  ( ("[country]" =~ /^B/) Or  ( ("[country]" =~ /^C/) Or  (
>>> ("[country]" =~ /^D/) Or  ( ("[country]" =~ /^E/) Or  ("[country]" 
>>> =~ /^F/))
>>> ) ) ) )
>>>
>>> msEvalExpression: Expression parser error. Failed to parse expression:
>>> ("[country]" =~ /^A/) Or ...
>>>
>>> With changing =* to ~* and / to " the mapfile works :
>>> EXPRESSION ( ("[country]" ~* "^A") Or  ( ("[country]" ~* "^B") Or ...
>>>
>>> It seems, that in the generated mapfile is a wrong expression.
>>>

I was able to reproduce this. I have added a bug 
(http://trac.osgeo.org/mapserver/ticket/3855) on it and a patch that 
should correct the issue. Is it  possible for you to test the patch and 
report through the bug? Thx


>>> 5. symbol fill rotated
>>> Polygon fill with rotated square looks interesting, but not as 
>>> expected. Try
>>> with 5.6.1.
>>>
Here again I tried vectir synbols (weel-know sld symbols like star) as 
well as the graphic symbols but could not see a problem. The roration 
parameter should translate into an angle parameter in the style. I have 
tried this using agg output. Here again if you have test data that 
demonstrate it please open a trac bug.


>>> 6. fill solid
>>> Polygon with solid fill without stroke shows thin lines of the borders.
>>>

Same as above.


>>> Some other issues are likely not supported by MapServer, but would 
>>> be nice
>>> to have them.
>>>



>>> A.
>>> Changing the hatch width with sld. see "group3, hatch" as it is 
>>> possible
>>> with mapfile class.
>>>
>>> B.
>>> UserStyles from applied SLD not supported in WMS Styles
>>>
>>> C.
>>> WMS request GetStyles creates only one userstyle with rules from the
>>> different styles described in the mapfile. Should it not create 
>>> different
>>> userstyles for each style described in the mapfile?
>>>
>>> Regards,
>>> Arnd
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>>
>
>

For new features/enhancements, It would also be better to add them in 
trac and mark them as enhancements. They can be addressed for future 
versions > 6.0.

best regards,


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------




More information about the mapserver-users mailing list