Hello,
I have a shp file which is exported by dxf file. I add the shp file to GDIMap and run the WebDemo,These is no map show in the WebMap control. I click the ZoomIn buttom,then throw the System.OverflowException.
The error in GDIMapFrame.cs
public Point ProjToPixel( Coordinate location){...}
params: location.x=NaN,location.y=NaN
I modify the code in GDIMap.cs like this:
public IMapLayer AddLayer(string fileName)
{
IDataSet dataSet = DataManager.DefaultDataManager.OpenFile(fileName);
//if (dataSet.Projection != Projection)
//{
//dataSet.Reproject(Projection);
//}
if (!dataSet.Projection.Equals(Projection)) {
dataSet.Reproject(Projection);
}
return Layers.Add(dataSet);
}
Now shp file is show in webmap control. Is this a bug?
Comments: https://github.com/DotSpatial/DotSpatial/issues/496
I have a shp file which is exported by dxf file. I add the shp file to GDIMap and run the WebDemo,These is no map show in the WebMap control. I click the ZoomIn buttom,then throw the System.OverflowException.
The error in GDIMapFrame.cs
public Point ProjToPixel( Coordinate location){...}
params: location.x=NaN,location.y=NaN
I modify the code in GDIMap.cs like this:
public IMapLayer AddLayer(string fileName)
{
IDataSet dataSet = DataManager.DefaultDataManager.OpenFile(fileName);
//if (dataSet.Projection != Projection)
//{
//dataSet.Reproject(Projection);
//}
if (!dataSet.Projection.Equals(Projection)) {
dataSet.Reproject(Projection);
}
return Layers.Add(dataSet);
}
Now shp file is show in webmap control. Is this a bug?
Comments: https://github.com/DotSpatial/DotSpatial/issues/496