dotspatial

DotSpatial map not inside DotSpatial.Controls

本秂侑毒 提交于 2021-01-28 12:20:58
问题 I'm trying to install DotSpatial using c# WinForm, to take a look to the Map control. I've installed DotSpatial.Controls using nuget from VS. Instalation succesfull. Added inside my toolBar the DotSpatial.Control.dll wich is inside ../bin/debug folder, but, just 3 controls are added: AppManager, SpatialDockManager, SpatialHeaderControl. Why Map control is not there? Thanks in advance. 回答1: The problem you are most likely having is that the Controls library has many dependencies that are

Intersection between two geographic lines

回眸只為那壹抹淺笑 提交于 2019-12-12 05:45:51
问题 I'm using the DotSpatial C# library and I'm trying to use the following code to try to find the intersection point between two lines (I know they do intersect) var geoproj = DotSpatial.Projections.KnownCoordinateSystems.Geographic.World.WGS1984; var d1 = new FeatureSet { Projection = geoproj }; //var c1 = new Coordinate(31.877484, 34.736723); //var c2 = new Coordinate(31.879607, 34.732362); var c1 = new Coordinate(0, -1); var c2 = new Coordinate(0, 1); var line1 = new LineString(new[] { c1,

Converting coordinates from EPSG 3857 to 4326 DotSpatial

末鹿安然 提交于 2019-12-10 10:05:08
问题 I have in my DB a list of coordinates in EPSG 3857 format. I need to convert them in EPSG 4326 I'm trying to use DotSpatial but my code always retun a double array of Infinity. public double[] ConvertCoodinates() { double[] xy = new double[2]; xy[0] = 5085240.8300000000; xy[1] = 1530088.9600000000; //An array for the z coordinate double[] z = new double[1]; z[0] = 0; ProjectionInfo pStart = KnownCoordinateSystems.Geographic.World.WGS1984; pStart.AuthorityCode = 3857; ProjectionInfo pEnd =