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

I'm a new user.load data error

Dec 26, 2012 at 10:54 AM

do: protected virtual void OnSridChanged(EventArgs eventArgs)
            Factory = GeometryServiceProvider.Instance.CreateGeometryFactory(SRID);//error:Cannot use GeometryServiceProvider without an assigned IGeometryServices class
            if (SridChanged != null)
                SridChanged(this, eventArgs);


this is my code

VectorLayer layadmin = new VectorLayer("OracleSample");
  layadmin.DataSource = new SharpMap.Data.Providers.Oracle("system", "sde", "","ADMIN_REGION", "MDSYS.SDO_GEOMETRY", "ADAID");//this error

Dec 27, 2012 at 11:49 AM

What does the error say?

Dec 28, 2012 at 10:35 PM

Right at the startup of your code be sure to assign

GeoAPI.GeometryServiceProvider.Instance = new NetTopologySuite.NtsGeometryServiceProvider();

Hth FObermaier