[mapserver-users] Trouble shooting SLD?
Yewondwossen Assefa
yassefa at dmsolutions.ca
Tue Oct 19 05:35:53 PDT 2010
Hi there,
I do not think there is any thing wrong wit the LSD you posted. I used
it locally with MapServer svn and It did apply (after I changed the
layer name to my local data set.
I see that your map file has the log set and you should be able to see
something in the log file starting with msApplySLD() .... Do you see that?
Another point is that the sld file is temprarly saved into the tnagepath
defined in your mapfile (IMAGEPATH 'R:/webtemp/' ): Would there be any
problem for the web user to write files in that directory? You can use
also the SLD_BODY to avoid that. Here is your encoded sld [1] that I
have used and works (you need to change the name inside it back to
reflect your map file):
Please also indicate the version of MapServer (sorry if I have missed
this info in the thread). I am using the current trunk version.
regards
[1] :
%3CStyledLayerDescriptor+version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3EWorldGen%3C%2FName%3E%3CUserStyle%3E%3CTitle%3ECommunities%3C%2FTitle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CCssParameter+name%3D%22fill%22%3E%23d2741c%3C%2FCssParameter%3E%3CCssParameter+name%3D%22fill-opacity%22%3E1%3C%2FCssParameter%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23000000%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E0.26%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E
On 18/10/2010 5:22 PM, K wrote:
> As I am still unable to get my SLD to work, I wonder if the shape file
> (is it a shape file?) and map file for that example is available to
> download somewhere? This way I can toss it on my server and it would
> let me see if my problem is software related, rather then something
> wrong with my files.
>
> Thanks,
>
> Ken
>
> On 18/10/2010 5:31 PM, Jeff McKenna wrote:
>> On 10-10-18 11:16 AM, Rahkonen Jukka wrote:
>>> I noticed that none of the full request links in the document
>>> http://mapserver.org/ogc/sld.html are working now
>>
>> Good catch Jukka. The examples should be working again, please re-try.
>>
>> -jeff
>>
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101019/2c1dc848/attachment.htm>
More information about the MapServer-users
mailing list