Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

Closed Issue: Is this a bug in DotSpatial.WebControls? [22810]

$
0
0
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

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>