This project is read-only.

Working with DSPX file error

Sep 4, 2012 at 3:45 PM
Edited Sep 18, 2012 at 8:51 AM

Please for help when loading dspx file with label setup for one map layer with DEMOMAP program.
I have one layer with label setup for the CEV layer from C:\Mapgis\SHP\CEV.shp in the map and saved all to the dspx file.
My original place for this shape file is C:\Mapgis\SHP\    AND NOT     C:\Mapgis\SHP\SHP\  (twice \SHP\SHP\ as you can see bellow)

When open this dspx file and try to load a new shape file program throw this exception:


Could not find a part of the path ´C:\mapgis\SHP\SHP\CEV_DOT.dbf´

************** Exception Text **************System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Mapgis\SHP\SHP\CEV_DOT.dbf'.   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)   at DotSpatial.Data.AttributeTable.SupplyPageOfData(Int32 lowerPageBoundary, Int32 rowsPerPage) in C:\dotspatial-67177_SPATIAL\DotSpatial.Data\AttributeTable.cs:line 58   at DotSpatial.Data.LineShapefile.GetFeature(Int32 index) in C:\dotspatial-67177_SPATIAL\DotSpatial.Data\LineShapefile.cs:line 153   at DotSpatial.Controls.MapLabelLayer.DrawFeatures(MapArgs e, IEnumerable`1 features) in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\MapLabelLayer.cs:line 300   at DotSpatial.Controls.MapLabelLayer.DrawFeatures(MapArgs args, List`1 features, List`1 clipRectangles, Boolean useChunks) in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\MapLabelLayer.cs:line 235   at DotSpatial.Controls.MapLabelLayer.DrawRegions(MapArgs args, List`1 regions) in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\MapLabelLayer.cs:line 135   at DotSpatial.Controls.MapFrame.InitializeLabels(List`1 regions, MapArgs args, IRenderable layer) in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\MapFrame.cs:line 489   at DotSpatial.Controls.MapFrame.Initialize(List`1 regions) in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\MapFrame.cs:line 300   at DotSpatial.Controls.MapFrame.Initialize() in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\MapFrame.cs:line 325   at DotSpatial.Controls.MapFrame.LayerCollection_MembersChanged(Object sender, EventArgs e) in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\MapFrame.cs:line 1198   at System.EventHandler.Invoke(Object sender, EventArgs e)   at DotSpatial.Data.ChangeEventList`1.OnListChanged() in C:\dotspatial-67177_SPATIAL\DotSpatial.Data\ChangeEventList.cs:line 332   at DotSpatial.Symbology.LayerEventList`1.OnListChanged() in C:\dotspatial-67177_SPATIAL\DotSpatial.Symbology\LayerEventList.cs:line 328   at DotSpatial.Data.ChangeEventList`1.OnInclude(T item) in C:\dotspatial-67177_SPATIAL\DotSpatial.Data\ChangeEventList.cs:line 362   at DotSpatial.Symbology.LayerEventList`1.OnInclude(T item) in C:\dotspatial-67177_SPATIAL\DotSpatial.Symbology\LayerEventList.cs:line 201   at DotSpatial.Symbology.LayerCollection.OnInclude(ILayer item) in C:\dotspatial-67177_SPATIAL\DotSpatial.Symbology\LayerCollection.cs:line 85   at DotSpatial.Serialization.BaseCollection`1.Include(T item) in C:\dotspatial-67177_SPATIAL\DotSpatial.Serialization\BaseCollection.cs:line 276   at DotSpatial.Serialization.BaseCollection`1.Add(T item) in C:\dotspatial-67177_SPATIAL\DotSpatial.Serialization\BaseCollection.cs:line 72   at DotSpatial.Controls.MapLayerCollection.Add(IFeatureSet featureSet) in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\MapLayerCollection.cs:line 192   at DotSpatial.Controls.Map.AddLayers() in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\Map.cs:line 514   at DotSpatial.Plugins.MenuBar.MenuBarPlugin.AddLayer_Click(Object sender, EventArgs e) in C:\dotspatial-67177_SPATIAL\DotSpatial.Plugins.MenuBar\MenuBarPlugin.cs:line 73   at DotSpatial.Controls.Header.SimpleActionItem.OnClick(EventArgs ea) in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\Header\SimpleActionItem.cs:line 213   at DotSpatial.Controls.Header.MenuBarHeaderControl.<>c__DisplayClass7.<Add>b__6(Object sender, EventArgs e) in C:\dotspatial-67177_SPATIAL\DotSpatial.Controls\Header\MenuBarHeaderControl.cs:line 141   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)   at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)   at System.Windows.Forms.Control.WndProc(Message& m)   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)   at System.Windows.Forms.ToolStrip.WndProc(Message& m)   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

Thanks for any help on this, Vojko