Error loading the RandomFeatureLayerFactory in the DemoWinForm

Topics: General Topics, SharpMap Project, SharpMap v2.0, WinForms Controls
Sep 2, 2008 at 3:36 PM
Hi...

I'm a newbie...

I'm trying to run the DemoWinForm of the v2, but I got an error in the declaration of the LayerResources in the Class RandomFeatureLayerFactory : ILayerFactory...

private class LayerResources
        {
            public String LayerName;
            public VectorStyle Style; ----------------------------------------------------->>>> here is the error
            public Dictionary<DataColumn, StreamReader> AttributeCache;
        }

somebody got the same error? what can I do?

Thanks...

C'J
Coordinator
Sep 2, 2008 at 8:49 PM
this app hasn't been finished yet. To view SharpMapV2 in action try John Diss' patch at
http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=SharpMap&DownloadId=36026
FObermaier
Sep 3, 2008 at 3:49 AM
Well, when I try to build this "patched version", I still get 1 error (but only 1 this time):

MapViewer.cs:107: lyr.Style =

new VectorStyle(); <<===== VectorStyle undefined

but I commentedt out and I was ablew to run the app....

 

Coordinator
Sep 3, 2008 at 1:19 PM
VectorStyle has been renamed to GeometryStyle hth jd
Sep 3, 2008 at 1:29 PM
Thanks guys... but now I got an error with the  _symbolTable declaration on this line :

 _symbolTable["Notices"] = new Symbol2D(getStreamFromImage(Resources.Chat),
                                                   new Size2D(Resources.Chat.Height,
                                                              Resources.Chat.Width));

and also in the next few lines...

How can I declare this variable? what type can I choose?