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

New Post: Data Export and add exported Layer creates an invalid dspx file

$
0
0
If I use the function from the Legend menu Data -> Export and after this decide to add the exported layer to the open map control a saved dspx file is incomplete.

For the new exported and added layer in the dspx file is no link to the .shp file.
<member name="DataSet" type="32" arg="0">
Where correct is
<member name="DataSet" type="30" arg="0">
              <member name="FilePath" type="3" arg="0" value="MyExportedFile.shp" />
            </member>
After edit the the dspx file manualy the the project opens correct.

The error seems in the "LoadFeatureSetAsLayer" function of the FeatureLayerActions.cs

The same happens if I use the export selected features in the table editor.

In a function of my ds application I use
Dim pointLayer As IMapPointLayer = CType(Map1.Layers.Add(dlg.FileName), IMapPointLayer)
to add a new layer and this works fine saving the dspx file correct and load again.

Thanks for any help

Thomas

Viewing all articles
Browse latest Browse all 3973

Trending Articles



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