-
Notifications
You must be signed in to change notification settings - Fork 305
Expand file tree
/
Copy pathIWFS_TextResources.cs
More file actions
188 lines (172 loc) · 8.65 KB
/
IWFS_TextResources.cs
File metadata and controls
188 lines (172 loc) · 8.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
// WFS provider by Peter Robineau (peter.robineau@gmx.at)
// This file can be redistributed and/or modified under the terms of the GNU Lesser General Public License.
using GeoAPI.Geometries;
namespace SharpMap.Utilities.Wfs
{
// ReSharper disable InconsistentNaming
/// <summary>
/// Text resources interface
/// </summary>
public interface IWFS_TextResources
{
/// <summary>
/// Gets a value indicating the feature type prefix
/// </summary>
string NSFEATURETYPEPREFIX { get; }
/// <summary>
/// Gets a value indicating the GML namespace URI
/// </summary>
string NSGML { get; }
/// <summary>
/// Gets a value indicating the prefix of the GML namespace
/// </summary>
string NSGMLPREFIX { get; }
/// <summary>
/// Gets a value indicating the the OGC namespace URI
/// </summary>
string NSOGC { get; }
/// <summary>
/// Gets a value indicating the prefix of the OGC namespace
/// </summary>
string NSOGCPREFIX { get; }
/// <summary>
/// Gets a value indicating the OWS namespace URI
/// </summary>
string NSOWS { get; }
/// <summary>
/// Gets a value indicating the prefix of the OWS namespace
/// </summary>
string NSOWSPREFIX { get; }
/// <summary>
/// Gets a value indicating the XML namespace URI
/// </summary>
string NSSCHEMA { get; }
/// <summary>
/// Gets a value indicating the prefix of the XML namespace
/// </summary>
string NSSCHEMAPREFIX { get; }
/// <summary>
/// Gets a value indicating the WFS namespace URI
/// </summary>
string NSWFS { get; }
/// <summary>
/// Gets a value indicating the prefix of the WFS namespace
/// </summary>
string NSWFSPREFIX { get; }
/// <summary>
/// Gets a value indicating the XLink namespace URI
/// </summary>
string NSXLINK { get; }
/// <summary>
/// Gets a value indicating the prefix of the XLink namespace
/// </summary>
string NSXLINKPREFIX { get; }
/// <summary>
/// Gets an XPath string addressing the bounding box of a featuretype in 'GetCapabilities'.
/// </summary>
string XPATH_BBOX { get; }
/// <summary>
/// Gets an XPath string addressing the upper corner of a featuretype's bounding box in 'GetCapabilities'
/// for extracting 'maxx'.
/// </summary>
string XPATH_BOUNDINGBOXMAXX { get; }
/// <summary>
/// Gets an XPath string addressing the upper corner of a featuretype's bounding box in 'GetCapabilities'
/// for extracting 'maxy'.
/// </summary>
string XPATH_BOUNDINGBOXMAXY { get; }
/// <summary>
/// Gets an XPath string addressing the lower corner of a featuretype's bounding box in 'GetCapabilities'
/// for extracting 'minx'.
/// </summary>
string XPATH_BOUNDINGBOXMINX { get; }
/// <summary>
/// Gets an XPath string addressing the lower corner of a featuretype's bounding box in 'GetCapabilities'
/// for extracting 'miny'.
/// </summary>
string XPATH_BOUNDINGBOXMINY { get; }
/// <summary>
/// Gets an XPath string addressing the URI of 'DescribeFeatureType'in 'GetCapabilities'.
/// </summary>
string XPATH_DESCRIBEFEATURETYPERESOURCE { get; }
/// <summary>
/// Gets an XPath string addressing the name of an element described by an anonymous complex type
/// hosting an element with a 'gml'-prefixed ref-attribute in 'DescribeFeatureType'.
/// Step2Alt: Finding the name of the featuretype's element with an anonymous complex type hosting the GML geometry.
/// </summary>
string XPATH_GEOMETRY_ELEMREF_GEOMNAMEQUERY_ANONYMOUSTYPE { get; }
/// <summary>
/// Gets an XPath string addressing the name of an element having a type-attribute referencing
/// a complex type hosting an element with a 'gml'-prefixed ref-attribute in 'DescribeFeatureType'.
/// Step2: Finding the name of the featuretype's element with a named complex type hosting the GML geometry.
/// </summary>
string XPATH_GEOMETRY_ELEMREF_GEOMNAMEQUERY { get; }
/// <summary>
/// Gets an XPath string addressing the 'gml'-prefixed ref-attribute of an element.
/// This is for querying the name of the GML geometry element.
/// </summary>
string XPATH_GEOMETRY_ELEMREF_GMLELEMENTQUERY { get; }
/// <summary>
/// Gets an XPath string addressing an element with a 'gml'-prefixed type-attribute in 'DescribeFeatureType'.
/// This for querying the geometry element of a featuretype in the most simple manner.
/// </summary>
string XPATH_GEOMETRYELEMENT_BYTYPEATTRIBUTEQUERY { get; }
/// <summary>
/// Gets an XPath string addressing a complex type hosting an element with a 'gml'-prefixed ref-attribute in 'DescribeFeatureType'.
/// This for querying the geometry element of a featuretype.
/// Step1: Finding the complex type with a geometry element from GML specification.
/// </summary>
string XPATH_GEOMETRYELEMENTCOMPLEXTYPE_BYELEMREFQUERY { get; }
/// <summary>
/// Gets an XPath string addressing the URI of 'GetFeature'in 'GetCapabilities'.
/// </summary>
string XPATH_GETFEATURERESOURCE { get; }
/// <summary>
/// Gets an XPath string addressing a name-attribute.
/// </summary>
string XPATH_NAMEATTRIBUTEQUERY { get; }
/// <summary>
/// Gets an XPath string addressing the SRID of a featuretype in 'GetCapabilities'.
/// </summary>
string XPATH_SRS { get; }
/// <summary>
/// Gets an XPath string addressing the target namespace in 'DescribeFeatureType'.
/// </summary>
string XPATH_TARGETNS { get; }
/// <summary>
/// Gets an XPath string addressing a type-attribute.
/// </summary>
string XPATH_TYPEATTRIBUTEQUERY { get; }
/// <summary>
/// Method to return the query string for a 'DescribeFeatureType' request.
/// </summary>
/// <param name="featureTypeName">The name of the featuretype to query</param>
/// <returns>An URI string for a 'DescribeFeatureType' request</returns>
string DescribeFeatureTypeRequest(string featureTypeName);
/// <summary>
/// Method to return the query string for a 'GetCapabilities' request.
/// </summary>
/// <returns>An URI string for a 'GetCapabilities' request</returns>
string GetCapabilitiesRequest();
/// <summary>
/// Method to return the query string for a 'GetFeature' - <b>GET</b> request.
/// </summary>
/// <param name="featureTypeInfo">A <see cref="Wfs.WfsFeatureTypeInfo"/> instance providing metadata of the featuretype to query</param>
/// <param name="boundingBox">The bounding box of the query</param>
/// <param name="filter">An instance implementing <see cref="IFilter"/></param>
/// <param name="loadAllElements">True to get all feature elements, false to get only geometry element</param>
/// <returns>An URI for a 'GetFeature' - <b>GET</b> request.</returns>
string GetFeatureGETRequest(WfsFeatureTypeInfo featureTypeInfo, Envelope boundingBox, IFilter filter, bool loadAllElements);
/// <summary>
/// Method to return the query string for a 'GetFeature - <b>POST</b> request'.
/// </summary>
/// <param name="featureTypeInfo">A <see cref="Wfs.WfsFeatureTypeInfo"/> instance providing metadata of the featuretype to query</param>
/// <param name="labelProperty">A property necessary for label rendering</param>
/// <param name="boundingBox">The bounding box of the query</param>
/// <param name="filter">An instance implementing <see cref="IFilter"/></param>
/// <param name="loadAllElements">True to get all feature elements, false to get only geometry element and eventually label</param>
/// <returns>An URI for a 'GetFeature' - <b>POST</b> request.</returns>
byte[] GetFeaturePOSTRequest(WfsFeatureTypeInfo featureTypeInfo, string labelProperty, Envelope boundingBox,
IFilter filter, bool loadAllElements);
}
}