Changeset 2281
- Timestamp:
- 03/05/10 18:38:16 (5 months ago)
- Location:
- FalconView/trunk/public/fvw_core
- Files:
-
- 9 modified
-
MapDataServer/WMSMapServer/StdAfx.h (modified) (1 diff)
-
MapDataServer/WMSMapServer/WMSMapHandler.cpp (modified) (3 diffs)
-
MapDataServer/WMSMapServer/WMSMapServer.vcproj (modified) (2 diffs)
-
WMSMapSetup/WMSDescriptor.cpp (modified) (2 diffs)
-
WMSMapSetup/WMSDescriptor.h (modified) (1 diff)
-
WMSMapSetup/WMSMapSetup.rc (modified) (5 diffs)
-
WMSMapSetup/WMSMapSetupDlg.cpp (modified) (4 diffs)
-
WMSMapSetup/WMSMapSetupDlg.h (modified) (1 diff)
-
WMSMapSetup/resource.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FalconView/trunk/public/fvw_core/MapDataServer/WMSMapServer/StdAfx.h
r2144 r2281 51 51 #include "FvCore\Include\Registry.h" // read fv registry entries such as HD_DATA 52 52 53 #import <msxml6.dll> named_guids rename_namespace("MSXML6") 54 53 55 #import "MapDataServer.tlb" no_namespace, named_guids, exclude("IErrorInfo") 54 56 #import "MapDataServerUtil.tlb" no_namespace, named_guids, exclude("IErrorInfo") -
FalconView/trunk/public/fvw_core/MapDataServer/WMSMapServer/WMSMapHandler.cpp
r2053 r2281 23 23 #include "GDAL_priv.h" 24 24 #include "UtilityMethods.h" 25 #include " WMSDescription.h"25 #include "..\..\WMSMapSetup\WMSDescriptor.h" 26 26 27 27 #include "SafeArray.h" … … 224 224 *format = MAP_INFO_PLAIN_TEXT; 225 225 226 WMSDescriptionXmlHandler WMSDesc;227 228 WMSDesc.readWMSDescription(DescriptorFilenameFromSource(std::string(_bstr_t(map_source))));226 //WMSDescriptionXmlHandler WMSDesc; 227 228 //WMSDesc.readWMSDescription(DescriptorFilenameFromSource(std::string(_bstr_t(map_source)))); 229 229 //*map_info_str = _bstr_t(L"Web Mapping Server Map Handler example\n\nGeorgia Tech Research Institute").copy(); 230 std::string file_spec = DescriptorFilenameFromSource(std::string(_bstr_t(map_source))); 231 WMSDescriptor WMSDesc; 232 WMSDesc.ReadXML(file_spec); 233 230 234 std::stringstream info; 231 235 info << "Web Map: \n"; 232 info << "\nService Type:\t" << WMSDesc.m_Serv iceTypeName;236 info << "\nService Type:\t" << WMSDesc.m_ServerType; 233 237 info << "\nURL: \t" << WMSDesc.m_ServerURL; 238 if (0==WMSDesc.m_ServerType.compare(std::string("WMS")) || 0==WMSDesc.m_ServerType.compare(std::string("TMS"))) 239 { 240 info << "\nLayer(s): \t" <<WMSDesc.m_Layers; 241 } 234 242 info << "\nSpatial Refrence System: " << WMSDesc.m_SRS; 235 243 info << "\nProjection: \t" << WMSDesc.m_Projection; … … 239 247 info << "\nSouthern Bound:\t" << WMSDesc.m_LowerRightY; 240 248 info << "\nWestern Bound: \t" << WMSDesc.m_UpperLeftX; 241 info << "\n\nTile Levels: \t" << WMSDesc.m_tileLevel; 249 info << "\n\nTile Levels: \t" << WMSDesc.m_TileLevel; 250 251 info << "\n\n" << WMSDesc.m_Copyright; 242 252 *map_info_str = _bstr_t(info.str().c_str()).copy(); 243 253 return S_OK; -
FalconView/trunk/public/fvw_core/MapDataServer/WMSMapServer/WMSMapServer.vcproj
r2162 r2281 494 494 </File> 495 495 <File 496 RelativePath=".\WMSDescription.cpp" 497 > 498 <FileConfiguration 499 Name="Debug|Win32" 500 > 501 <Tool 502 Name="VCCLCompilerTool" 503 AdditionalIncludeDirectories="" 504 PreprocessorDefinitions="" 505 /> 506 </FileConfiguration> 507 <FileConfiguration 508 Name="Govt Debug|Win32" 509 > 510 <Tool 511 Name="VCCLCompilerTool" 512 AdditionalIncludeDirectories="" 513 PreprocessorDefinitions="" 514 /> 515 </FileConfiguration> 516 <FileConfiguration 517 Name="Govt Release|Win32" 518 > 519 <Tool 520 Name="VCCLCompilerTool" 521 AdditionalIncludeDirectories="" 522 PreprocessorDefinitions="" 523 /> 524 </FileConfiguration> 525 <FileConfiguration 526 Name="Release|Win32" 527 > 528 <Tool 529 Name="VCCLCompilerTool" 530 AdditionalIncludeDirectories="" 531 PreprocessorDefinitions="" 532 /> 533 </FileConfiguration> 496 RelativePath="..\..\WMSMapSetup\WMSDescriptor.cpp" 497 > 534 498 </File> 535 499 <File … … 671 635 </File> 672 636 <File 673 RelativePath=".\WMSDescription.h"674 >675 </File>676 <File677 637 RelativePath=".\WMSMapHandler.h" 678 638 > -
FalconView/trunk/public/fvw_core/WMSMapSetup/WMSDescriptor.cpp
r2220 r2281 80 80 m_ServerURL = ReadStringValue(L"Service/ServerUrl"); 81 81 m_CachePath = ReadStringValue(L"Cache/Path",L""); 82 m_Copyright = ReadStringValue(L"Copyright",L""); 83 //std::string data = m_Copyright; 84 //m_Copyright = m_Copyright.replace("&","&").replace("<","<").replace(" ","\n"); 85 //m_Copyright = m_Copyright.replace(""","\"").replace(">",">").replace(" ","\r"); 86 82 87 83 88 if (0==m_ServerType.compare("TMS")) … … 150 155 WriteStringValue(std::string("Service/ServerUrl"),m_ServerURL); 151 156 157 std::string data = m_Copyright; 158 //data = data.replace("&", "&").replace("<","<").replace("\n"," "); 159 //data = data.replace("\"", """).replace(">", ">").replace("\r", " "); 160 if(0!=m_Copyright.compare(std::string(""))) WriteStringValue(std::string("Copyright"),data); 161 152 162 if(0!=m_CachePath.compare(std::string(""))) WriteStringValue(std::string("Cache/Path"),m_CachePath); 153 163 -
FalconView/trunk/public/fvw_core/WMSMapSetup/WMSDescriptor.h
r2207 r2281 34 34 std::string m_Projection; //Spatial Refrence System e.g. EPSG:26904 35 35 std::string m_Version; //WMS or TMS version 36 std::string m_CachePath; 36 std::string m_CachePath; 37 38 std::string m_Copyright; // Added for FV string to display map server Copyright info 37 39 38 40 private: -
FalconView/trunk/public/fvw_core/WMSMapSetup/WMSMapSetup.rc
r2220 r2281 55 55 56 56 57 58 59 57 ///////////////////////////////////////////////////////////////////////////// 60 58 // … … 76 74 END 77 75 78 IDD_WMS_MAP_SETUP DIALOGEX 0, 0, 287, 3 4576 IDD_WMS_MAP_SETUP DIALOGEX 0, 0, 287, 367 79 77 STYLE DS_SETFONT | WS_CHILD | WS_VISIBLE 80 78 FONT 8, "MS Sans Serif", 0, 0, 0x0 … … 98 96 EDITTEXT IDC_BLOCK_SIZE_X,63,258,73,14,ES_AUTOHSCROLL | ES_NUMBER 99 97 EDITTEXT IDC_BLOCK_SIZE_Y,161,259,73,14,ES_AUTOHSCROLL | ES_NUMBER 100 DEFPUSHBUTTON "Add To FalconView",IDC_ADD_MAP,193,3 21,87,17101 EDITTEXT IDC_DESCRIPTION_BOX,7,2 76,273,41,ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY | WS_VSCROLL98 DEFPUSHBUTTON "Add To FalconView",IDC_ADD_MAP,193,343,87,17 99 EDITTEXT IDC_DESCRIPTION_BOX,7,296,273,41,ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY | WS_VSCROLL 102 100 RTEXT "Short Name:",IDC_STATIC,162,35,50,11 103 101 RTEXT "WMS Map Name:",IDC_STATIC,7,34,59,13 … … 121 119 RTEXT "Overview Count:",IDC_STATIC,138,240,54,11 122 120 EDITTEXT IDC_MAP_NAME,67,34,93,13,ES_AUTOHSCROLL 123 PUSHBUTTON "Remove From FalconView",IDC_REMOVE_MAP,99,321,87,17 124 PUSHBUTTON "Test Settings",IDC_TEST,7,321,87,17 121 PUSHBUTTON "Remove From FalconView",IDC_REMOVE_MAP,99,343,87,17 122 PUSHBUTTON "Test Settings",IDC_TEST,7,343,87,17 123 EDITTEXT IDC_COPYRIGHT,63,279,205,13,ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN 124 RTEXT "Copyright:",IDC_STATIC,7,282,51,11 125 125 END 126 126 … … 147 147 RIGHTMARGIN, 280 148 148 TOPMARGIN, 7 149 BOTTOMMARGIN, 3 38149 BOTTOMMARGIN, 360 150 150 END 151 151 END -
FalconView/trunk/public/fvw_core/WMSMapSetup/WMSMapSetupDlg.cpp
r2220 r2281 96 96 , m_TileSizeY(1024) 97 97 , m_MapName(_T("WMSMap")) 98 , m_Copyright(_T("")) 98 99 { 99 100 TRACE("CWMSMapSetupDlg::CWMSMapSetupDlg(CWnd* pParent /*=NULL*/) \n"); … … 135 136 DDV_MaxChars(pDX, m_MapName, 40); 136 137 DDX_Control(pDX, IDC_SERVER_TYPE2, ImageFormatCombo); 138 DDX_Text(pDX, IDC_COPYRIGHT, m_Copyright); 139 DDV_MaxChars(pDX, m_Copyright, 500); 137 140 } 138 141 … … 190 193 m_TileSizeY = m_DescFile->m_TileSizeY; 191 194 m_TileLevel = m_DescFile->m_TileLevel; 195 m_Copyright = toCString(m_DescFile->m_Copyright); 192 196 if (m_DescFile->m_OverviewCount>0) 193 197 { … … 276 280 m_DescFile->m_TileSizeY= m_TileSizeY; 277 281 m_DescFile->m_TileLevel= m_TileLevel; 282 m_DescFile->m_Copyright= toStdString(m_Copyright); 278 283 m_DescFile->m_OverviewCount=m_OverviewCount; 279 284 m_numLevels = (m_OverviewCount>0? m_OverviewCount : m_TileLevel); -
FalconView/trunk/public/fvw_core/WMSMapSetup/WMSMapSetupDlg.h
r2220 r2281 117 117 afx_msg void OnBnClickedRemoveMap(); 118 118 afx_msg void OnBnClickedTest(); 119 CString m_Copyright; 119 120 }; -
FalconView/trunk/public/fvw_core/WMSMapSetup/resource.h
r2220 r2281 31 31 #define IDC_IMAGE_PROJECTION2 221 32 32 #define IDC_CANCEL 222 33 #define IDC_SERVER_LAYERS2 222 34 #define IDC_COPYRIGHT 222 33 35 #define IDC_HELP_BUTTON 223 34 36 #define IDC_MAP_NAME 224
