Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored

2008-04-10 Thread Sicky

Hi Barend!

Thanks, this solved my problem! :-)
I knew it was fairly easy, but you find so much about that topic.

And great that there will be an error message implemented. It's annoying
when you have something which clearly doesn't work but you have absolutely
no idea why it isn't working

@Yewondwossen: Is there any planning on supporting SVGs as ExternalGraphics?
If so, please make it better than in GeoServer:
http://sicky.i-networx.de/temp/geoserv/geoserv_svg_probs.png 


Barend Köbben wrote:
> 
> Hi,
> 
> I never tried the external SVG graphics, but the SLD problem sounds very
> familiar. Almost always I find this kind of problem having not much to do
> with the SLDs themselves, but with TMP file settings. This is certainly
> more
> likely if you say sending the SLD it in SLD-BODY works.
> 
> Using SLDs is dependent on the correct setting of the two settings
>  IMAGEPATH  -- where the mapserver software puts the SLD and other
> temporary
> files 
>  IMAGEURL -- where the web browser and other http services pick them up.
> 
> Setting these incorrectly, and more importantly their security setting
> incorrrectly, will normally give no problems, but when using SLDs (and
> also
> in other cases, eg. when chaining Mapserver to external WMS and WFS
> services), they will make MS malfunction, but SILENTLY (ie. No error
> messages).
> 
> Eg. in our set ups of a WMS with external SLD they are set as follows:
> 
> For  a *nix setup ( MacOSX) with Mapserver CGI 'behind'  Apache:
> WEB
> IMAGEPATH "/Users/kobben/Sites/ms_tmp/"
> IMAGEURL "http://localhost/~kobben/ms_tmp/";
> ##
> METADATA
>[all your web metadata...]
> END #metadata
> END #web
> 
> For a Win box with Mapserver CGI 'behind'  IIS:
>   IMAGEPATH "C:/tmp/ms_tmp/"
>   IMAGEURL "http://geoserver.itc.nl/ms_tmp/";
> 
> The IMAGEPATh is a directory that is reacheable by Mapserver at this real
> location (in this case expressed as Unix BSD path on my MacOSX or as  UNC
> path on Win) and that has read & write access set  for the Mapserver
> process. Eg. on the Winbox it should have write access for the anonymous
> system service account under which Mapserver runs (usually something like
> SERVERNAME\IWAM_SERVERNAME).
> 
> You can test this by seeing if files with names like) are being created
> when
> you request the WMS with external SLD. If they are the IMAGEPATH celarly
> works. Then test if you can point a browser to the IMAGEURL and pick up
> the
> tmp file. If that worsk the IMAGEURL is also OK. Now it should work...
> 
> Hope this helps.
> 
> 
> 
> 
> International Institute for Geo-Information Science and Earth Observation
> (ITC)
> Chamber of Commerce: 410 27 560
> 
> E-mail disclaimer
> The information in this e-mail, including any attachments, is intended for
> the addressee only. If you are not the intended recipient, you are hereby
> notified that any disclosure, copying, distribution or action in relation
> to the content of this information is strictly prohibited. If you have
> received this e-mail by mistake, please delete the message and any
> attachment and inform the sender by return e-mail. ITC accepts no
> liability for any error or omission in the message content or for damage
> of any kind that may arise as a result of e-mail transmission.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/SLD-ignored---External-Graphic-ignored-tp16586209p16608571.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored

2008-04-09 Thread Yewondwossen Assefa

Sicky wrote:

Thanks for you quick reply and testing it :-)

1st: Ok, now I know that the SLD is working, but why not here?



 Barend comments could maybe explain you problem? If all is as 
expected, as I said I am willing to give it a try provided a test sample.



2nd: Really? SVG isn't supported by MapServer? Then the use of it would be
quite senseless for me. Or will MapServer render lines/outlines of polygones
with PNGs or GIFs nicely? Because GeoServer doesn't (lots of gaps in the
lines etc.)!

 SVG symbols are not supported (SVG as an output format is).  I have 
not seen GeoServer rendering for this particular case so I can not 
compare. I guess you need to try it locally and see for yourself if it 
is acceptable.




Cheers and thanks again,
Christian.




--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
http://www.dmsolutions.ca/

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


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored

2008-04-09 Thread Yewondwossen Assefa

Barend Kobben wrote:


Setting these incorrectly, and more importantly their security setting
incorrrectly, will normally give no problems, but when using SLDs (and also
in other cases, eg. when chaining Mapserver to external WMS and WFS
services), they will make MS malfunction, but SILENTLY (ie. No error
messages).



Barend

 I added a bug and a fix in mapserver svn for it to generate an error. 
See bug http://trac.osgeo.org/mapserver/ticket/2573


Best Regards

--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
http://www.dmsolutions.ca/

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


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored

2008-04-09 Thread Barend Kobben
Hi,

I never tried the external SVG graphics, but the SLD problem sounds very
familiar. Almost always I find this kind of problem having not much to do
with the SLDs themselves, but with TMP file settings. This is certainly more
likely if you say sending the SLD it in SLD-BODY works.

Using SLDs is dependent on the correct setting of the two settings
 IMAGEPATH  -- where the mapserver software puts the SLD and other temporary
files 
 IMAGEURL -- where the web browser and other http services pick them up.

Setting these incorrectly, and more importantly their security setting
incorrrectly, will normally give no problems, but when using SLDs (and also
in other cases, eg. when chaining Mapserver to external WMS and WFS
services), they will make MS malfunction, but SILENTLY (ie. No error
messages).

Eg. in our set ups of a WMS with external SLD they are set as follows:

For  a *nix setup ( MacOSX) with Mapserver CGI 'behind'  Apache:
WEB
IMAGEPATH "/Users/kobben/Sites/ms_tmp/"
IMAGEURL "http://localhost/~kobben/ms_tmp/";
##
METADATA
   [all your web metadata...]
END #metadata
END #web

For a Win box with Mapserver CGI 'behind'  IIS:
  IMAGEPATH "C:/tmp/ms_tmp/"
  IMAGEURL "http://geoserver.itc.nl/ms_tmp/";

The IMAGEPATh is a directory that is reacheable by Mapserver at this real
location (in this case expressed as Unix BSD path on my MacOSX or as  UNC
path on Win) and that has read & write access set  for the Mapserver
process. Eg. on the Winbox it should have write access for the anonymous
system service account under which Mapserver runs (usually something like
SERVERNAME\IWAM_SERVERNAME).

You can test this by seeing if files with names like) are being created when
you request the WMS with external SLD. If they are the IMAGEPATH celarly
works. Then test if you can point a browser to the IMAGEURL and pick up the
tmp file. If that worsk the IMAGEURL is also OK. Now it should work...

Hope this helps.




International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the 
addressee only. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or action in relation to the content 
of this information is strictly prohibited. If you have received this e-mail by 
mistake, please delete the message and any attachment and inform the sender by 
return e-mail. ITC accepts no liability for any error or omission in the 
message content or for damage of any kind that may arise as a result of e-mail 
transmission.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored

2008-04-09 Thread Sicky

Thanks for you quick reply and testing it :-)

1st: Ok, now I know that the SLD is working, but why not here?

2nd: Really? SVG isn't supported by MapServer? Then the use of it would be
quite senseless for me. Or will MapServer render lines/outlines of polygones
with PNGs or GIFs nicely? Because GeoServer doesn't (lots of gaps in the
lines etc.)!

Cheers and thanks again,
Christian.


Yewondwossen Assefa-2 wrote:
> 
> Christian,
> 
>   I did a quick test using you sld at 
> (http://sicky.i-networx.de/temp/mapserv/test.sld) with local data 
> (adapted to fit the sld : 
> http://localhost/cgi-bin/mapserv.exe?map=f:/msapps/world_testdata/map/sicky.map&SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=Baugrenze&BBOX=-81.366241839,42.39269586,-77.8780568047,44.13861927&SLD=http://sicky.i-networx.de/temp/mapserv/test.sld&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&FORMAT=png&WIDTH=400&HEIGHT=300&STYLES=
>   and I was able to render the layer Baugrenze using the styles defined 
> in the sld.  So I believe there is no issue with the sld. Common error 
> is usually the SLD is not accessible but you mentioned that you already 
> verified that
> 
>   2nd point is that external graphics can only be of type png or gif 
> (and not SVG). The reason being is that currently MapServer does not 
> support SVG symbols.
> 
> I am using Mapserver svn. If you want me to do local tests with your 
> map/data, you could zip and send it to me and I will give it a try.
> 
> Best Regards,
> 
> 
> Sicky wrote:
>> I'll start off with some background of what I'm trying to do:
>> I want to define SVGs as external graphic in an SLD to use these as
>> PointSymbolizers and LineSymbolizers. Firstly I tried GeoServer and it
>> worked quite fine, the only problem was, that it wasn't rendered very
>> good.
>> So I thought of trying MapServer, but then the problems came...
>> 
>> I'm running the latest ms4w on Windows 2000 with Apache 2.2.8.
>> 
>> Here's link to my mapfile:
>> http://sicky.i-networx.de/temp/mapserv/test.map
>> 
>> That's the SLD file I let create with the GetStyles request and just
>> changed
>> a color and width to see if it was recognized:
>> http://sicky.i-networx.de/temp/mapserv/test.sld
>> GetStyles document here:
>> http://sicky.i-networx.de/temp/mapserv/GetStyles.txt
>> 
>> The important part of the GetCapabilities request is:
>> > RemoteWFS="0"/>
>> (the whole one is located here:
>> http://sicky.i-networx.de/temp/mapserv/GetCapabilities.txt)
>> 
>> Since GetStyles is working fine and the wms server supports SLD I don't
>> see
>> a problem there (I searched the net for hours and hours to solve the
>> problem
>> and tried any suggestion..). But when I request a map with an SLD like
>> this:
>> http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&WIDTH=600&HEIGHT=700&LAYERS=Baugrenze,AllgWohngebiete&STYLES=&SLD=http://localhost:8080/test.sld&FORMAT=image/png
>> 
>> it just ignores the sld and shows this:
>> http://sicky.i-networx.de/temp/mapserv/sld.png 
>> 
>> http://localhost:8080/test.sld itself is viewable in the browser without
>> any
>> problems and the names of the layers are mathcing those in the
>> mapfile
>> (note: in my mapfile i commented out the style for one layer to see if a
>> style in a mapfile overrides a sld)
>> 
>> I played around with this a bit, e.g. naming it 'test.xml', removing
>> 'STYLES=' and so on... but nothing helped :(
>> 
>> The I thought of the other method to use SLDs, with SLD_BODY. My request
>> is
>> as follows:
>> http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2300%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3
> CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2

Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored

2008-04-09 Thread Yewondwossen Assefa

Christian,

 I did a quick test using you sld at 
(http://sicky.i-networx.de/temp/mapserv/test.sld) with local data 
(adapted to fit the sld : 
http://localhost/cgi-bin/mapserv.exe?map=f:/msapps/world_testdata/map/sicky.map&SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=Baugrenze&BBOX=-81.366241839,42.39269586,-77.8780568047,44.13861927&SLD=http://sicky.i-networx.de/temp/mapserv/test.sld&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&FORMAT=png&WIDTH=400&HEIGHT=300&STYLES=
 and I was able to render the layer Baugrenze using the styles defined 
in the sld.  So I believe there is no issue with the sld. Common error 
is usually the SLD is not accessible but you mentioned that you already 
verified that


 2nd point is that external graphics can only be of type png or gif 
(and not SVG). The reason being is that currently MapServer does not 
support SVG symbols.


   I am using Mapserver svn. If you want me to do local tests with your 
map/data, you could zip and send it to me and I will give it a try.


Best Regards,


Sicky wrote:

I'll start off with some background of what I'm trying to do:
I want to define SVGs as external graphic in an SLD to use these as
PointSymbolizers and LineSymbolizers. Firstly I tried GeoServer and it
worked quite fine, the only problem was, that it wasn't rendered very good.
So I thought of trying MapServer, but then the problems came...

I'm running the latest ms4w on Windows 2000 with Apache 2.2.8.

Here's link to my mapfile: http://sicky.i-networx.de/temp/mapserv/test.map

That's the SLD file I let create with the GetStyles request and just changed
a color and width to see if it was recognized:
http://sicky.i-networx.de/temp/mapserv/test.sld
GetStyles document here:
http://sicky.i-networx.de/temp/mapserv/GetStyles.txt

The important part of the GetCapabilities request is:

(the whole one is located here:
http://sicky.i-networx.de/temp/mapserv/GetCapabilities.txt)

Since GetStyles is working fine and the wms server supports SLD I don't see
a problem there (I searched the net for hours and hours to solve the problem
and tried any suggestion..). But when I request a map with an SLD like this:
http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&WIDTH=600&HEIGHT=700&LAYERS=Baugrenze,AllgWohngebiete&STYLES=&SLD=http://localhost:8080/test.sld&FORMAT=image/png

it just ignores the sld and shows this:
http://sicky.i-networx.de/temp/mapserv/sld.png 


http://localhost:8080/test.sld itself is viewable in the browser without any
problems and the names of the layers are mathcing those in the mapfile
(note: in my mapfile i commented out the style for one layer to see if a
style in a mapfile overrides a sld)

I played around with this a bit, e.g. naming it 'test.xml', removing
'STYLES=' and so on... but nothing helped :(

The I thought of the other method to use SLDs, with SLD_BODY. My request is
as follows:
http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2300%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3

CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&WIDTH=600&HEIGHT=700&FORMAT=image/png


the sld_body part in plain text looks like this:



Baugrenze

Baugrenze


#00
1.00
5







AllgWohngebiete



AllgWohngebiete


#ff00ff
1.00
5








the result made me happy:
http://sicky.i-networx.de/temp/mapserv/sld_body.png 


at least now i know that my mapserver definately works with SLDs. but this
wouldn't be a solution since I really need to define a SLD file because it's
gonna be very big. So i really want 'SLD=' to work instead of 'SLD_BODY'.

But 'SLD_BODY' doesn't work fine either :(
when I try to use an external graph

[MAPSERVER-USERS] SLD ignored / External Graphic ignored

2008-04-09 Thread Sicky

I'll start off with some background of what I'm trying to do:
I want to define SVGs as external graphic in an SLD to use these as
PointSymbolizers and LineSymbolizers. Firstly I tried GeoServer and it
worked quite fine, the only problem was, that it wasn't rendered very good.
So I thought of trying MapServer, but then the problems came...

I'm running the latest ms4w on Windows 2000 with Apache 2.2.8.

Here's link to my mapfile: http://sicky.i-networx.de/temp/mapserv/test.map

That's the SLD file I let create with the GetStyles request and just changed
a color and width to see if it was recognized:
http://sicky.i-networx.de/temp/mapserv/test.sld
GetStyles document here:
http://sicky.i-networx.de/temp/mapserv/GetStyles.txt

The important part of the GetCapabilities request is:

(the whole one is located here:
http://sicky.i-networx.de/temp/mapserv/GetCapabilities.txt)

Since GetStyles is working fine and the wms server supports SLD I don't see
a problem there (I searched the net for hours and hours to solve the problem
and tried any suggestion..). But when I request a map with an SLD like this:
http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&WIDTH=600&HEIGHT=700&LAYERS=Baugrenze,AllgWohngebiete&STYLES=&SLD=http://localhost:8080/test.sld&FORMAT=image/png

it just ignores the sld and shows this:
http://sicky.i-networx.de/temp/mapserv/sld.png 

http://localhost:8080/test.sld itself is viewable in the browser without any
problems and the names of the layers are mathcing those in the mapfile
(note: in my mapfile i commented out the style for one layer to see if a
style in a mapfile overrides a sld)

I played around with this a bit, e.g. naming it 'test.xml', removing
'STYLES=' and so on... but nothing helped :(

The I thought of the other method to use SLDs, with SLD_BODY. My request is
as follows:
http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2300%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&WIDTH=600&HEIGHT=700&FORMAT=image/png

the sld_body part in plain text looks like this:



Baugrenze

Baugrenze


#00
1.00
5







AllgWohngebiete



AllgWohngebiete


#ff00ff
1.00
5








the result made me happy:
http://sicky.i-networx.de/temp/mapserv/sld_body.png 

at least now i know that my mapserver definately works with SLDs. but this
wouldn't be a solution since I really need to define a SLD file because it's
gonna be very big. So i really want 'SLD=' to work instead of 'SLD_BODY'.

But 'SLD_BODY' doesn't work fine either :(
when I try to use an external graphic like in this request:
http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CGraphicStroke%3E%3CGraphic%3E%3CExternalGraphic%3E%3COnlineResource+xlink%3Ahref%3D%22http%3A%2F%2Flocalhost%3A8080%2FRsBaugrenze.svg%22%2F%3E%3CFormat%3Eimage%2Fsvg%2Bxml%3C%2FFormat%3E%3C%2FExternalGraphic%3E%3CSize%3E%3Cogc%3ALiteral%3E20%3C%2Fogc%3ALiteral%3E%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FGraphicStroke%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3