From bb2c30735a97b32e5e6e1cac169e4c411fa96fde Mon Sep 17 00:00:00 2001 From: Xun Li Date: Sun, 8 Jan 2017 21:05:22 -0600 Subject: [PATCH] #390 cvs header option --- DialogTools/CsvFieldConfDlg.cpp | 3 ++- ShapeOperations/OGRLayerProxy.cpp | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/DialogTools/CsvFieldConfDlg.cpp b/DialogTools/CsvFieldConfDlg.cpp index 4d4896ca2..c07a1f9b1 100644 --- a/DialogTools/CsvFieldConfDlg.cpp +++ b/DialogTools/CsvFieldConfDlg.cpp @@ -564,7 +564,8 @@ void CsvFieldConfDlg::OnHeaderCmbClick( wxCommandEvent& event ) HEADERS = (int)(event.GetSelection()); PrereadCSV(HEADERS); - + + UpdateFieldGrid(); UpdatePreviewGrid(); UpdateXYcombox(); diff --git a/ShapeOperations/OGRLayerProxy.cpp b/ShapeOperations/OGRLayerProxy.cpp index 94cb75a87..aaf6f7450 100644 --- a/ShapeOperations/OGRLayerProxy.cpp +++ b/ShapeOperations/OGRLayerProxy.cpp @@ -413,10 +413,11 @@ OGRLayerProxy::AddFeatures(vector& geometries, int time_step = 0; if (col_pos < 0) { - wxString msg = wxString::Format(_(" Save column %s failed. Please check your data, or contact GeoDa team."), fname); - error_message << msg; - export_progress = -1; - return; + //wxString msg = wxString::Format(_(" Save column %s failed. Please check your data, or contact GeoDa team."), fname); + //error_message << msg; + //export_progress = -1; + //return; + continue; } vector undefs;