Umasoft
Main Page
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
TerrainSDK
vtdata
WFSClient.h
1
//
2
// WFSClient.h
3
//
4
// Web Feature Server Client
5
//
6
// Copyright (c) 2003-2005 Virtual Terrain Project
7
// Free for all uses, see license.txt for details.
8
//
9
10
#ifndef VTDATA_WFSCLIENT_H
11
#define VTDATA_WFSCLIENT_H
12
13
#include "Content.h"
14
15
class
OGCLayerArray
:
public
std::vector<vtTagArray *>
16
{
17
public
:
18
OGCLayerArray
() { m_iSelected = -1; }
19
~
OGCLayerArray
() {
20
for
(uint i = 0; i < size(); i++)
21
delete
at(i);
22
}
23
// remember which layer the user last expressed interest in
24
int
m_iSelected;
25
};
26
27
struct
OGCServer
28
{
29
vtString
m_url;
30
OGCLayerArray
m_layers;
31
};
32
33
class
OGCServerArray
:
public
std::vector<OGCServer>
34
{
35
public
:
36
OGCServerArray
() { m_iSelected = -1; }
37
// remember which server the user last expressed interest in
38
int
m_iSelected;
39
};
40
41
bool
GetLayersFromWFS(
const
char
*szServerURL,
OGCLayerArray
&layers);
42
43
// for now, handle WMS here as well
44
bool
GetLayersFromWMS(
const
char
*szServerURL,
OGCLayerArray
&layers,
45
vtString
&msg,
bool
(*progress_callback)(
int
) = NULL);
46
47
#endif // VTDATA_WFSCLIENT_H
48
Generated on Fri Jun 7 2013 16:07:52 for Umasoft by
1.8.4