This project is read-only.

Shapefile and Raster Layer on the same map throws error.

May 18, 2011 at 11:01 AM

By Trying to add a polygon shapefile on a map that already has a rester layer this following occures when refreshing or zooming to extents.

Any ideas ?

 

{DotSpatial.Data.PyramidUndefinedHeaderException: The header has not been defined for the image scale you are attempting to access." & vbCrLf & "  

at DotSpatial.Data.PyramidImage.ReadWindow(Int32 startRow, Int32 startColumn, Int32 numRows, Int32 numColumns, Int32 scale) in E\DotSpatial.Data\DotSpatial.Data\PyramidImage.cs:line 448" & vbCrLf & "  

at DotSpatial.Data.PyramidImage.GetBitmap(Extent envelope, Rectangle window) in \DotSpatial.Data\DotSpatial.Data\PyramidImage.cs:line 140" & vbCrLf & "

  at DotSpatial.Controls.MapRasterLayer.DrawWindows(MapArgs args, IList`1 regions, IList`1 clipRectangles) in DotSpatial.Controls\DotSpatial.Controls\MapRasterLayer.cs:line 360" & vbCrLf & "

  at DotSpatial.Controls.MapRasterLayer.DrawRegions(MapArgs args, List`1 regions) in DotSpatial.Controls\DotSpatial.Controls\MapRasterLayer.cs:line 193" & vbCrLf & "

  at DotSpatial.Controls.MapFrame.Initialize(List`1 regions) in DotSpatial.Controls\DotSpatial.Controls\MapFrame.cs:line 324" & vbCrLf & "

  at DotSpatial.Controls.MapFrame.Initialize() in DotSpatial.Controls\DotSpatial.Controls\MapFrame.cs:line 387" & vbCrLf & "

  at DotSpatial.Controls.MapFrame.ResetBuffer() in DotSpatial.Controls\DotSpatial.Controls\MapFrame.cs:line 292" & vbCrLf & "

  at DotSpatial.Controls.MapFrame.set_ViewExtents(Extent value) in DotSpatial.Controls\DotSpatial.Controls\MapFrame.cs:line 680" & vbCrLf & "

  at DotSpatial.Controls.Map.set_ViewExtents(Extent value) in DotSpatial.Controls\DotSpatial.Controls\Map.cs:line 988" & vbCrLf & "

  at DotSpatial.Controls.Map.ZoomToMaxExtent() in DotSpatial.Controls\DotSpatial.Controls\Map.cs:line 756" & vbCrLf &