CSharp-Mapscript: setSymbolSet doesn't work?!

Christian Wilmes C.Wilmes at GMX.DE
Mon Jul 17 10:13:02 EDT 2006


Hi All,

I try to display a WFS-Layer with my application but I got only small points instead of the symbol in my Symbolset.

My Symbolset looks like that:
SYMBOLSET
	SYMBOL
		NAME "Fahne"
		TYPE VECTOR
		FILLED TRUE
		POINTS
			1 5 
			1 3
			3 2
			1 1
			1 3
		END
	END
END

Some Code from the application:
mapObj myMap = new mapObj("");
myMapHandler.Map.setSymbolSet(Environment.CurrentDirectory + @"\test.sym");
:
layerObj myLayer = new layerObj(null);
myLayer.name = "RosoftWFS";
myLayer.Type = MS_LAYER_TYPE.MS_LAYER_POINT;
myLayer.Connectiontype = MS_CONNECTION_TYPE.MS_WFS;
myLayer.Connection = "http://localhost/cgi-bin/mapserv.exe?";
myLayer.metadata.set("wfs_typename", "myWFS");
myLayer.metadata.set("wfs_version","1.0.0");
myLayer.metadata.set("wfs_request_method", "GET");
myLayer.metadata.set("wfs_service", "WFS");

myLayer.setProjection("EPSG:31467");
classObj c = new classObj(myLayer);
c.name = "test";
styleObj style = new styleObj(c);
style.symbolname = "Fahne";
style.size = 150;
style.color = new colorObj(255, 0, 255, 0);
:
myMap.insertLayer(myLayer, -1);


Does anybody have an idea where to find the mistake?


Best Regards
Christian
-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



More information about the mapserver-users mailing list