Version: 0.6.0
spvalidator.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGISSpatialReferenceValidator class. Return SpatialReference limits
4  * Author: Baryshnikov Dmitry (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009,2011 Bishop
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 #pragma once
22 
23 #include "wxgis/datasource/datasource.h"
24 /*
25 class WXDLLIMPEXP_GIS_DS wxGISSpatialReferenceValidator
26 {
27 public:
28  wxGISSpatialReferenceValidator(void);
29  virtual ~wxGISSpatialReferenceValidator(void);
30  virtual bool IsOk(void){return m_bIsOK;}
31  virtual LIMITS GetLimits(wxString sProj){return m_DataMap[sProj];};
32  virtual bool IsLimitsSet(wxString sProj);
33 protected:
34  virtual bool LoadData(wxString sPath);
35  wxString GetPath(wxXmlNode* pNode);
36 protected:
37  bool m_bIsOK;
38  wxString m_sPath;
39  std::map<wxString, LIMITS> m_DataMap;
40 };
41 
42 //use hashmap
43 //use EPSG ID
44 //save changes
45 //may be not in zip but still to save SP to zip should be there
46 */