Christian,

I'm a bit uncertain if you have added that symbolset to your map
(myMapHandler.Map may be another map reference :?  ).
I would prefer using myMap.symbolset.appendSymbol instead of using setsymbolset.

If you are using constructors like "new classObj(myLayer)" and "new
styleObj(c)" you might want to use mapserver 4.8.4 to avoid nasty heap
corruptions and memory reference errors ;-) In that case using new
layerObj(mymap) seems better than insertLayer since the extra layer
copy is avoided.

Best Regards,

Tamas



2006/7/17, Christian Wilmes <[EMAIL PROTECTED]>:
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

Reply via email to