Line data Source code
1 : /****************************************************************************** 2 : * 3 : * Project: WMS Client Driver 4 : * Purpose: Declarations for the OnEarth Tiled WMS minidriver. 5 : * http://onearth.jpl.nasa.gov/tiled.html 6 : * Author: Lucian Plesea (Lucian dot Plesea at jpl.nasa.gov) 7 : * Adam Nowacki 8 : * 9 : ****************************************************************************** 10 : * Copyright (c) 2007, Adam Nowacki 11 : * 12 : * SPDX-License-Identifier: MIT 13 : ****************************************************************************/ 14 : 15 : #ifndef MINIDRIVER_TILED_WMS_H_INCLUDED 16 : #define MINIDRIVER_TILED_WMS_H_INCLUDED 17 : 18 12 : class WMSMiniDriver_TiledWMS : public WMSMiniDriver 19 : { 20 : 21 : public: 22 : WMSMiniDriver_TiledWMS(); 23 : virtual ~WMSMiniDriver_TiledWMS(); 24 : 25 : virtual CPLErr Initialize(CPLXMLNode *config, 26 : char **papszOpenOptions) override; 27 : virtual CPLErr 28 : TiledImageRequest(WMSHTTPRequest &request, 29 : const GDALWMSImageRequestInfo &iri, 30 : const GDALWMSTiledImageRequestInfo &tiri) override; 31 : 32 : protected: 33 : double Scale(const char *request) const; 34 : CPLString GetLowestScale(CPLStringList &list, int i) const; 35 : GDALWMSDataWindow m_data_window; 36 : CPLStringList m_requests{}; 37 : int m_bsx = 0; 38 : int m_bsy = 0; 39 : }; 40 : 41 : #endif /* MINIDRIVER_TILED_WMS_H_INCLUDED */