This project is read-only.

GeoFramework.Shapes.Layer problem in Gis.Net 3.0

Sep 8, 2010 at 3:17 PM

I'm using the GIS.NET 3.0 to provide GIS functionality to a desktop app. I have all of a sudden started experiencing an "Object reference not set to an instance of an object" on a call to GeoFramework.Shapes.Layer.Add(GeographicObject item). The below code simply is setting up the first object on the map. The item is a MoveableItem that I am feeding different position data to. Not sure if the image is not getting set or not. Not sure how to verify using CV.


//Position is needed by the MyVehicle constructor 

 //It is set to a point outside of current map extent

 //to prevent it from showing before marker size and

 //marker label style are specified.

 Position pos = new Position(new Latitude(0.0), new Longitude(0.0));

 MyVehicle v = new MyVehicle(pos);

 //size of a vehicle 10 meters

 //v.Radius = GeoFramework.Distance.FromMeters(10.0);

 if (v != null)



 //run animation asynchronously




Sep 14, 2010 at 10:58 AM

GIS .NET is not part of this project it is stil commercial and AFAIK there are no plans for it to be released to the open source community. You might strike it lucky and find someone who can answer your question here but it is outside of the scope of this (and related) open source projects.