This project has moved. For the latest updates, please go here.


Topics: General Topics
Apr 12, 2007 at 3:02 PM
I downloaded V2 source from GoogleCode and now I'm trying to understand how it works... Here is the simple test code I use

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using SharpMap;

namespace Test
public partial class Form1 : Form
SharpMap.Presentation.WinForms.MapPresenter m_MapPresenter;
public Form1()

m_MapPresenter = new SharpMap.Presentation.WinForms.MapPresenter(new Map(), mapViewControl1, new SharpMap.Presentation.IToolsView0);
SharpMap.Data.Providers.ShapeFile shp = new SharpMap.Data.Providers.ShapeFile(@"C:\App_Data\countries.shp");
SharpMap.Layers.VectorLayer layer = new SharpMap.Layers.VectorLayer("countries", shp);

But I get a 'System.StackOverflowException' in SharpMap.dll in function
public static BoundingBox MapToWorld(ViewRectangle2D rectangle, IMapPresenter<ViewPoint2D, ViewSize2D, ViewRectangle2D> mapPresenter)

Moreover I don't quite understand the last parameter of the presenter: I simply should pass a collection of enums?

Any help would be appreciated,