Skip to content

Instantly share code, notes, and snippets.

@ca0v
Last active October 20, 2017 11:55
Show Gist options
  • Save ca0v/206a11261667639b11e73565829f1875 to your computer and use it in GitHub Desktop.
Save ca0v/206a11261667639b11e73565829f1875 to your computer and use it in GitHub Desktop.
Potential bindings for WMS GetCapabilities
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
namespace Xml2CSharp
{
[XmlRoot(ElementName="KeywordList", Namespace="http://www.opengis.net/wms")]
public class KeywordList {
[XmlElement(ElementName="Keyword", Namespace="http://www.opengis.net/wms")]
public List<string> Keyword { get; set; }
}
[XmlRoot(ElementName="OnlineResource", Namespace="http://www.opengis.net/wms")]
public class OnlineResource {
[XmlAttribute(AttributeName="xlink", Namespace="http://www.w3.org/2000/xmlns/")]
public string Xlink { get; set; }
[XmlAttribute(AttributeName="href", Namespace="http://www.w3.org/1999/xlink")]
public string Href { get; set; }
[XmlAttribute(AttributeName="type", Namespace="http://www.w3.org/1999/xlink")]
public string Type { get; set; }
}
[XmlRoot(ElementName="ContactPersonPrimary", Namespace="http://www.opengis.net/wms")]
public class ContactPersonPrimary {
[XmlElement(ElementName="ContactPerson", Namespace="http://www.opengis.net/wms")]
public string ContactPerson { get; set; }
[XmlElement(ElementName="ContactOrganization", Namespace="http://www.opengis.net/wms")]
public string ContactOrganization { get; set; }
}
[XmlRoot(ElementName="ContactAddress", Namespace="http://www.opengis.net/wms")]
public class ContactAddress {
[XmlElement(ElementName="AddressType", Namespace="http://www.opengis.net/wms")]
public string AddressType { get; set; }
[XmlElement(ElementName="Address", Namespace="http://www.opengis.net/wms")]
public string Address { get; set; }
[XmlElement(ElementName="City", Namespace="http://www.opengis.net/wms")]
public string City { get; set; }
[XmlElement(ElementName="StateOrProvince", Namespace="http://www.opengis.net/wms")]
public string StateOrProvince { get; set; }
[XmlElement(ElementName="PostCode", Namespace="http://www.opengis.net/wms")]
public string PostCode { get; set; }
[XmlElement(ElementName="Country", Namespace="http://www.opengis.net/wms")]
public string Country { get; set; }
}
[XmlRoot(ElementName="ContactInformation", Namespace="http://www.opengis.net/wms")]
public class ContactInformation {
[XmlElement(ElementName="ContactPersonPrimary", Namespace="http://www.opengis.net/wms")]
public ContactPersonPrimary ContactPersonPrimary { get; set; }
[XmlElement(ElementName="ContactPosition", Namespace="http://www.opengis.net/wms")]
public string ContactPosition { get; set; }
[XmlElement(ElementName="ContactAddress", Namespace="http://www.opengis.net/wms")]
public ContactAddress ContactAddress { get; set; }
[XmlElement(ElementName="ContactVoiceTelephone", Namespace="http://www.opengis.net/wms")]
public string ContactVoiceTelephone { get; set; }
[XmlElement(ElementName="ContactFacsimileTelephone", Namespace="http://www.opengis.net/wms")]
public string ContactFacsimileTelephone { get; set; }
[XmlElement(ElementName="ContactElectronicMailAddress", Namespace="http://www.opengis.net/wms")]
public string ContactElectronicMailAddress { get; set; }
}
[XmlRoot(ElementName="Service", Namespace="http://www.opengis.net/wms")]
public class Service {
[XmlElement(ElementName="Name", Namespace="http://www.opengis.net/wms")]
public string Name { get; set; }
[XmlElement(ElementName="Title", Namespace="http://www.opengis.net/wms")]
public string Title { get; set; }
[XmlElement(ElementName="Abstract", Namespace="http://www.opengis.net/wms")]
public string Abstract { get; set; }
[XmlElement(ElementName="KeywordList", Namespace="http://www.opengis.net/wms")]
public KeywordList KeywordList { get; set; }
[XmlElement(ElementName="OnlineResource", Namespace="http://www.opengis.net/wms")]
public OnlineResource OnlineResource { get; set; }
[XmlElement(ElementName="ContactInformation", Namespace="http://www.opengis.net/wms")]
public ContactInformation ContactInformation { get; set; }
[XmlElement(ElementName="Fees", Namespace="http://www.opengis.net/wms")]
public string Fees { get; set; }
[XmlElement(ElementName="AccessConstraints", Namespace="http://www.opengis.net/wms")]
public string AccessConstraints { get; set; }
[XmlElement(ElementName="MaxWidth", Namespace="http://www.opengis.net/wms")]
public string MaxWidth { get; set; }
[XmlElement(ElementName="MaxHeight", Namespace="http://www.opengis.net/wms")]
public string MaxHeight { get; set; }
}
[XmlRoot(ElementName="Get", Namespace="http://www.opengis.net/wms")]
public class Get {
[XmlElement(ElementName="OnlineResource", Namespace="http://www.opengis.net/wms")]
public OnlineResource OnlineResource { get; set; }
}
[XmlRoot(ElementName="Post", Namespace="http://www.opengis.net/wms")]
public class Post {
[XmlElement(ElementName="OnlineResource", Namespace="http://www.opengis.net/wms")]
public OnlineResource OnlineResource { get; set; }
}
[XmlRoot(ElementName="HTTP", Namespace="http://www.opengis.net/wms")]
public class HTTP {
[XmlElement(ElementName="Get", Namespace="http://www.opengis.net/wms")]
public Get Get { get; set; }
[XmlElement(ElementName="Post", Namespace="http://www.opengis.net/wms")]
public Post Post { get; set; }
}
[XmlRoot(ElementName="DCPType", Namespace="http://www.opengis.net/wms")]
public class DCPType {
[XmlElement(ElementName="HTTP", Namespace="http://www.opengis.net/wms")]
public HTTP HTTP { get; set; }
}
[XmlRoot(ElementName="GetCapabilities", Namespace="http://www.opengis.net/wms")]
public class GetCapabilities {
[XmlElement(ElementName="Format", Namespace="http://www.opengis.net/wms")]
public string Format { get; set; }
[XmlElement(ElementName="DCPType", Namespace="http://www.opengis.net/wms")]
public DCPType DCPType { get; set; }
}
[XmlRoot(ElementName="GetMap", Namespace="http://www.opengis.net/wms")]
public class GetMap {
[XmlElement(ElementName="Format", Namespace="http://www.opengis.net/wms")]
public List<string> Format { get; set; }
[XmlElement(ElementName="DCPType", Namespace="http://www.opengis.net/wms")]
public DCPType DCPType { get; set; }
}
[XmlRoot(ElementName="GetFeatureInfo", Namespace="http://www.opengis.net/wms")]
public class GetFeatureInfo {
[XmlElement(ElementName="Format", Namespace="http://www.opengis.net/wms")]
public List<string> Format { get; set; }
[XmlElement(ElementName="DCPType", Namespace="http://www.opengis.net/wms")]
public DCPType DCPType { get; set; }
}
[XmlRoot(ElementName="Request", Namespace="http://www.opengis.net/wms")]
public class Request {
[XmlElement(ElementName="GetCapabilities", Namespace="http://www.opengis.net/wms")]
public GetCapabilities GetCapabilities { get; set; }
[XmlElement(ElementName="GetMap", Namespace="http://www.opengis.net/wms")]
public GetMap GetMap { get; set; }
[XmlElement(ElementName="GetFeatureInfo", Namespace="http://www.opengis.net/wms")]
public GetFeatureInfo GetFeatureInfo { get; set; }
}
[XmlRoot(ElementName="Exception", Namespace="http://www.opengis.net/wms")]
public class Exception {
[XmlElement(ElementName="Format", Namespace="http://www.opengis.net/wms")]
public List<string> Format { get; set; }
}
[XmlRoot(ElementName="UserDefinedSymbolization", Namespace="http://www.opengis.net/sld")]
public class UserDefinedSymbolization {
[XmlAttribute(AttributeName="SupportSLD")]
public string SupportSLD { get; set; }
[XmlAttribute(AttributeName="UserLayer")]
public string UserLayer { get; set; }
[XmlAttribute(AttributeName="UserStyle")]
public string UserStyle { get; set; }
[XmlAttribute(AttributeName="RemoteWFS")]
public string RemoteWFS { get; set; }
[XmlAttribute(AttributeName="InlineFeature")]
public string InlineFeature { get; set; }
[XmlAttribute(AttributeName="RemoteWCS")]
public string RemoteWCS { get; set; }
}
[XmlRoot(ElementName="EX_GeographicBoundingBox", Namespace="http://www.opengis.net/wms")]
public class EX_GeographicBoundingBox {
[XmlElement(ElementName="westBoundLongitude", Namespace="http://www.opengis.net/wms")]
public string WestBoundLongitude { get; set; }
[XmlElement(ElementName="eastBoundLongitude", Namespace="http://www.opengis.net/wms")]
public string EastBoundLongitude { get; set; }
[XmlElement(ElementName="southBoundLatitude", Namespace="http://www.opengis.net/wms")]
public string SouthBoundLatitude { get; set; }
[XmlElement(ElementName="northBoundLatitude", Namespace="http://www.opengis.net/wms")]
public string NorthBoundLatitude { get; set; }
}
[XmlRoot(ElementName="BoundingBox", Namespace="http://www.opengis.net/wms")]
public class BoundingBox {
[XmlAttribute(AttributeName="CRS")]
public string CRS { get; set; }
[XmlAttribute(AttributeName="minx")]
public string Minx { get; set; }
[XmlAttribute(AttributeName="miny")]
public string Miny { get; set; }
[XmlAttribute(AttributeName="maxx")]
public string Maxx { get; set; }
[XmlAttribute(AttributeName="maxy")]
public string Maxy { get; set; }
}
[XmlRoot(ElementName="LogoURL", Namespace="http://www.opengis.net/wms")]
public class LogoURL {
[XmlElement(ElementName="Format", Namespace="http://www.opengis.net/wms")]
public string Format { get; set; }
[XmlElement(ElementName="OnlineResource", Namespace="http://www.opengis.net/wms")]
public OnlineResource OnlineResource { get; set; }
[XmlAttribute(AttributeName="width")]
public string Width { get; set; }
[XmlAttribute(AttributeName="height")]
public string Height { get; set; }
}
[XmlRoot(ElementName="Attribution", Namespace="http://www.opengis.net/wms")]
public class Attribution {
[XmlElement(ElementName="Title", Namespace="http://www.opengis.net/wms")]
public string Title { get; set; }
[XmlElement(ElementName="OnlineResource", Namespace="http://www.opengis.net/wms")]
public OnlineResource OnlineResource { get; set; }
[XmlElement(ElementName="LogoURL", Namespace="http://www.opengis.net/wms")]
public LogoURL LogoURL { get; set; }
}
[XmlRoot(ElementName="MetadataURL", Namespace="http://www.opengis.net/wms")]
public class MetadataURL {
[XmlElement(ElementName="Format", Namespace="http://www.opengis.net/wms")]
public string Format { get; set; }
[XmlElement(ElementName="OnlineResource", Namespace="http://www.opengis.net/wms")]
public OnlineResource OnlineResource { get; set; }
[XmlAttribute(AttributeName="type")]
public string Type { get; set; }
}
[XmlRoot(ElementName="DataURL", Namespace="http://www.opengis.net/wms")]
public class DataURL {
[XmlElement(ElementName="Format", Namespace="http://www.opengis.net/wms")]
public string Format { get; set; }
[XmlElement(ElementName="OnlineResource", Namespace="http://www.opengis.net/wms")]
public OnlineResource OnlineResource { get; set; }
}
[XmlRoot(ElementName="Layer", Namespace="http://www.opengis.net/wms")]
public class Layer {
[XmlElement(ElementName="Name", Namespace="http://www.opengis.net/wms")]
public string Name { get; set; }
[XmlElement(ElementName="Title", Namespace="http://www.opengis.net/wms")]
public string Title { get; set; }
[XmlElement(ElementName="Abstract", Namespace="http://www.opengis.net/wms")]
public string Abstract { get; set; }
[XmlElement(ElementName="KeywordList", Namespace="http://www.opengis.net/wms")]
public KeywordList KeywordList { get; set; }
[XmlElement(ElementName="CRS", Namespace="http://www.opengis.net/wms")]
public List<string> CRS { get; set; }
[XmlElement(ElementName="EX_GeographicBoundingBox", Namespace="http://www.opengis.net/wms")]
public EX_GeographicBoundingBox EX_GeographicBoundingBox { get; set; }
[XmlElement(ElementName="BoundingBox", Namespace="http://www.opengis.net/wms")]
public BoundingBox BoundingBox { get; set; }
[XmlElement(ElementName="MetadataURL", Namespace="http://www.opengis.net/wms")]
public MetadataURL MetadataURL { get; set; }
[XmlElement(ElementName="DataURL", Namespace="http://www.opengis.net/wms")]
public DataURL DataURL { get; set; }
[XmlAttribute(AttributeName="queryable")]
public string Queryable { get; set; }
[XmlAttribute(AttributeName="opaque")]
public string Opaque { get; set; }
[XmlAttribute(AttributeName="cascaded")]
public string Cascaded { get; set; }
[XmlElement(ElementName="Style", Namespace="http://www.opengis.net/wms")]
public Style Style { get; set; }
}
[XmlRoot(ElementName="LegendURL", Namespace="http://www.opengis.net/wms")]
public class LegendURL {
[XmlElement(ElementName="Format", Namespace="http://www.opengis.net/wms")]
public string Format { get; set; }
[XmlElement(ElementName="OnlineResource", Namespace="http://www.opengis.net/wms")]
public OnlineResource OnlineResource { get; set; }
[XmlAttribute(AttributeName="width")]
public string Width { get; set; }
[XmlAttribute(AttributeName="height")]
public string Height { get; set; }
}
[XmlRoot(ElementName="Style", Namespace="http://www.opengis.net/wms")]
public class Style {
[XmlElement(ElementName="Name", Namespace="http://www.opengis.net/wms")]
public string Name { get; set; }
[XmlElement(ElementName="Title", Namespace="http://www.opengis.net/wms")]
public string Title { get; set; }
[XmlElement(ElementName="LegendURL", Namespace="http://www.opengis.net/wms")]
public LegendURL LegendURL { get; set; }
}
[XmlRoot(ElementName="Capability", Namespace="http://www.opengis.net/wms")]
public class Capability {
[XmlElement(ElementName="Request", Namespace="http://www.opengis.net/wms")]
public Request Request { get; set; }
[XmlElement(ElementName="Exception", Namespace="http://www.opengis.net/wms")]
public Exception Exception { get; set; }
[XmlElement(ElementName="UserDefinedSymbolization", Namespace="http://www.opengis.net/sld")]
public UserDefinedSymbolization UserDefinedSymbolization { get; set; }
[XmlElement(ElementName="Layer", Namespace="http://www.opengis.net/wms")]
public Layer Layer { get; set; }
}
[XmlRoot(ElementName="WMS_Capabilities", Namespace="http://www.opengis.net/wms")]
public class WMS_Capabilities {
[XmlElement(ElementName="Service", Namespace="http://www.opengis.net/wms")]
public Service Service { get; set; }
[XmlElement(ElementName="Capability", Namespace="http://www.opengis.net/wms")]
public Capability Capability { get; set; }
[XmlAttribute(AttributeName="version")]
public string Version { get; set; }
[XmlAttribute(AttributeName="xmlns")]
public string Xmlns { get; set; }
[XmlAttribute(AttributeName="sld", Namespace="http://www.w3.org/2000/xmlns/")]
public string Sld { get; set; }
[XmlAttribute(AttributeName="xsi", Namespace="http://www.w3.org/2000/xmlns/")]
public string Xsi { get; set; }
[XmlAttribute(AttributeName="ms", Namespace="http://www.w3.org/2000/xmlns/")]
public string Ms { get; set; }
[XmlAttribute(AttributeName="schemaLocation", Namespace="http://www.w3.org/2001/XMLSchema-instance")]
public string SchemaLocation { get; set; }
}
}
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
namespace Xml2CSharp
{
[XmlRoot(ElementName="Keywords", Namespace="http://www.opengis.net/ows")]
public class Keywords {
[XmlElement(ElementName="Keyword", Namespace="http://www.opengis.net/ows")]
public List<string> Keyword { get; set; }
}
[XmlRoot(ElementName="ServiceType", Namespace="http://www.opengis.net/ows")]
public class ServiceType {
[XmlAttribute(AttributeName="codeSpace")]
public string CodeSpace { get; set; }
[XmlText]
public string Text { get; set; }
}
[XmlRoot(ElementName="ServiceIdentification", Namespace="http://www.opengis.net/ows")]
public class ServiceIdentification {
[XmlElement(ElementName="Title", Namespace="http://www.opengis.net/ows")]
public string Title { get; set; }
[XmlElement(ElementName="Abstract", Namespace="http://www.opengis.net/ows")]
public string Abstract { get; set; }
[XmlElement(ElementName="Keywords", Namespace="http://www.opengis.net/ows")]
public Keywords Keywords { get; set; }
[XmlElement(ElementName="ServiceType", Namespace="http://www.opengis.net/ows")]
public ServiceType ServiceType { get; set; }
[XmlElement(ElementName="ServiceTypeVersion", Namespace="http://www.opengis.net/ows")]
public string ServiceTypeVersion { get; set; }
[XmlElement(ElementName="Fees", Namespace="http://www.opengis.net/ows")]
public string Fees { get; set; }
[XmlElement(ElementName="AccessConstraints", Namespace="http://www.opengis.net/ows")]
public string AccessConstraints { get; set; }
}
[XmlRoot(ElementName="ProviderSite", Namespace="http://www.opengis.net/ows")]
public class ProviderSite {
[XmlAttribute(AttributeName="type", Namespace="http://www.w3.org/1999/xlink")]
public string Type { get; set; }
[XmlAttribute(AttributeName="href", Namespace="http://www.w3.org/1999/xlink")]
public string Href { get; set; }
}
[XmlRoot(ElementName="Phone", Namespace="http://www.opengis.net/ows")]
public class Phone {
[XmlElement(ElementName="Voice", Namespace="http://www.opengis.net/ows")]
public string Voice { get; set; }
[XmlElement(ElementName="Facsimile", Namespace="http://www.opengis.net/ows")]
public string Facsimile { get; set; }
}
[XmlRoot(ElementName="Address", Namespace="http://www.opengis.net/ows")]
public class Address {
[XmlElement(ElementName="DeliveryPoint", Namespace="http://www.opengis.net/ows")]
public string DeliveryPoint { get; set; }
[XmlElement(ElementName="City", Namespace="http://www.opengis.net/ows")]
public string City { get; set; }
[XmlElement(ElementName="AdministrativeArea", Namespace="http://www.opengis.net/ows")]
public string AdministrativeArea { get; set; }
[XmlElement(ElementName="PostalCode", Namespace="http://www.opengis.net/ows")]
public string PostalCode { get; set; }
[XmlElement(ElementName="Country", Namespace="http://www.opengis.net/ows")]
public string Country { get; set; }
[XmlElement(ElementName="ElectronicMailAddress", Namespace="http://www.opengis.net/ows")]
public string ElectronicMailAddress { get; set; }
}
[XmlRoot(ElementName="OnlineResource", Namespace="http://www.opengis.net/ows")]
public class OnlineResource {
[XmlAttribute(AttributeName="type", Namespace="http://www.w3.org/1999/xlink")]
public string Type { get; set; }
[XmlAttribute(AttributeName="href", Namespace="http://www.w3.org/1999/xlink")]
public string Href { get; set; }
}
[XmlRoot(ElementName="ContactInfo", Namespace="http://www.opengis.net/ows")]
public class ContactInfo {
[XmlElement(ElementName="Phone", Namespace="http://www.opengis.net/ows")]
public Phone Phone { get; set; }
[XmlElement(ElementName="Address", Namespace="http://www.opengis.net/ows")]
public Address Address { get; set; }
[XmlElement(ElementName="OnlineResource", Namespace="http://www.opengis.net/ows")]
public OnlineResource OnlineResource { get; set; }
[XmlElement(ElementName="HoursOfService", Namespace="http://www.opengis.net/ows")]
public string HoursOfService { get; set; }
[XmlElement(ElementName="ContactInstructions", Namespace="http://www.opengis.net/ows")]
public string ContactInstructions { get; set; }
}
[XmlRoot(ElementName="ServiceContact", Namespace="http://www.opengis.net/ows")]
public class ServiceContact {
[XmlElement(ElementName="IndividualName", Namespace="http://www.opengis.net/ows")]
public string IndividualName { get; set; }
[XmlElement(ElementName="PositionName", Namespace="http://www.opengis.net/ows")]
public string PositionName { get; set; }
[XmlElement(ElementName="ContactInfo", Namespace="http://www.opengis.net/ows")]
public ContactInfo ContactInfo { get; set; }
[XmlElement(ElementName="Role", Namespace="http://www.opengis.net/ows")]
public string Role { get; set; }
}
[XmlRoot(ElementName="ServiceProvider", Namespace="http://www.opengis.net/ows")]
public class ServiceProvider {
[XmlElement(ElementName="ProviderName", Namespace="http://www.opengis.net/ows")]
public string ProviderName { get; set; }
[XmlElement(ElementName="ProviderSite", Namespace="http://www.opengis.net/ows")]
public ProviderSite ProviderSite { get; set; }
[XmlElement(ElementName="ServiceContact", Namespace="http://www.opengis.net/ows")]
public ServiceContact ServiceContact { get; set; }
}
[XmlRoot(ElementName="Get", Namespace="http://www.opengis.net/ows")]
public class Get {
[XmlAttribute(AttributeName="type", Namespace="http://www.w3.org/1999/xlink")]
public string Type { get; set; }
[XmlAttribute(AttributeName="href", Namespace="http://www.w3.org/1999/xlink")]
public string Href { get; set; }
}
[XmlRoot(ElementName="Post", Namespace="http://www.opengis.net/ows")]
public class Post {
[XmlAttribute(AttributeName="type", Namespace="http://www.w3.org/1999/xlink")]
public string Type { get; set; }
[XmlAttribute(AttributeName="href", Namespace="http://www.w3.org/1999/xlink")]
public string Href { get; set; }
}
[XmlRoot(ElementName="HTTP", Namespace="http://www.opengis.net/ows")]
public class HTTP {
[XmlElement(ElementName="Get", Namespace="http://www.opengis.net/ows")]
public Get Get { get; set; }
[XmlElement(ElementName="Post", Namespace="http://www.opengis.net/ows")]
public Post Post { get; set; }
}
[XmlRoot(ElementName="DCP", Namespace="http://www.opengis.net/ows")]
public class DCP {
[XmlElement(ElementName="HTTP", Namespace="http://www.opengis.net/ows")]
public HTTP HTTP { get; set; }
}
[XmlRoot(ElementName="Parameter", Namespace="http://www.opengis.net/ows")]
public class Parameter {
[XmlElement(ElementName="Value", Namespace="http://www.opengis.net/ows")]
public List<string> Value { get; set; }
[XmlAttribute(AttributeName="name")]
public string Name { get; set; }
}
[XmlRoot(ElementName="Operation", Namespace="http://www.opengis.net/ows")]
public class Operation {
[XmlElement(ElementName="DCP", Namespace="http://www.opengis.net/ows")]
public DCP DCP { get; set; }
[XmlElement(ElementName="Parameter", Namespace="http://www.opengis.net/ows")]
public List<Parameter> Parameter { get; set; }
[XmlAttribute(AttributeName="name")]
public string Name { get; set; }
}
[XmlRoot(ElementName="OperationsMetadata", Namespace="http://www.opengis.net/ows")]
public class OperationsMetadata {
[XmlElement(ElementName="Operation", Namespace="http://www.opengis.net/ows")]
public List<Operation> Operation { get; set; }
}
[XmlRoot(ElementName="Operations", Namespace="http://www.opengis.net/wfs")]
public class Operations {
[XmlElement(ElementName="Operation", Namespace="http://www.opengis.net/wfs")]
public string Operation2 { get; set; }
}
[XmlRoot(ElementName="OutputFormats", Namespace="http://www.opengis.net/wfs")]
public class OutputFormats {
[XmlElement(ElementName="Format", Namespace="http://www.opengis.net/wfs")]
public string Format { get; set; }
}
[XmlRoot(ElementName="WGS84BoundingBox", Namespace="http://www.opengis.net/ows")]
public class WGS84BoundingBox {
[XmlElement(ElementName="LowerCorner", Namespace="http://www.opengis.net/ows")]
public string LowerCorner { get; set; }
[XmlElement(ElementName="UpperCorner", Namespace="http://www.opengis.net/ows")]
public string UpperCorner { get; set; }
[XmlAttribute(AttributeName="dimensions")]
public string Dimensions { get; set; }
}
[XmlRoot(ElementName="MetadataURL", Namespace="http://www.opengis.net/wfs")]
public class MetadataURL {
[XmlAttribute(AttributeName="format")]
public string Format { get; set; }
[XmlAttribute(AttributeName="type")]
public string Type { get; set; }
[XmlText]
public string Text { get; set; }
}
[XmlRoot(ElementName="FeatureType", Namespace="http://www.opengis.net/wfs")]
public class FeatureType {
[XmlElement(ElementName="Name", Namespace="http://www.opengis.net/wfs")]
public string Name { get; set; }
[XmlElement(ElementName="Title", Namespace="http://www.opengis.net/wfs")]
public string Title { get; set; }
[XmlElement(ElementName="Abstract", Namespace="http://www.opengis.net/wfs")]
public string Abstract { get; set; }
[XmlElement(ElementName="Keywords", Namespace="http://www.opengis.net/ows")]
public Keywords Keywords { get; set; }
[XmlElement(ElementName="DefaultSRS", Namespace="http://www.opengis.net/wfs")]
public string DefaultSRS { get; set; }
[XmlElement(ElementName="OtherSRS", Namespace="http://www.opengis.net/wfs")]
public List<string> OtherSRS { get; set; }
[XmlElement(ElementName="OutputFormats", Namespace="http://www.opengis.net/wfs")]
public OutputFormats OutputFormats { get; set; }
[XmlElement(ElementName="WGS84BoundingBox", Namespace="http://www.opengis.net/ows")]
public WGS84BoundingBox WGS84BoundingBox { get; set; }
[XmlElement(ElementName="MetadataURL", Namespace="http://www.opengis.net/wfs")]
public MetadataURL MetadataURL { get; set; }
}
[XmlRoot(ElementName="FeatureTypeList", Namespace="http://www.opengis.net/wfs")]
public class FeatureTypeList {
[XmlElement(ElementName="Operations", Namespace="http://www.opengis.net/wfs")]
public Operations Operations { get; set; }
[XmlElement(ElementName="FeatureType", Namespace="http://www.opengis.net/wfs")]
public List<FeatureType> FeatureType { get; set; }
}
[XmlRoot(ElementName="GeometryOperands", Namespace="http://www.opengis.net/ogc")]
public class GeometryOperands {
[XmlElement(ElementName="GeometryOperand", Namespace="http://www.opengis.net/ogc")]
public List<string> GeometryOperand { get; set; }
}
[XmlRoot(ElementName="SpatialOperator", Namespace="http://www.opengis.net/ogc")]
public class SpatialOperator {
[XmlAttribute(AttributeName="name")]
public string Name { get; set; }
}
[XmlRoot(ElementName="SpatialOperators", Namespace="http://www.opengis.net/ogc")]
public class SpatialOperators {
[XmlElement(ElementName="SpatialOperator", Namespace="http://www.opengis.net/ogc")]
public List<SpatialOperator> SpatialOperator { get; set; }
}
[XmlRoot(ElementName="Spatial_Capabilities", Namespace="http://www.opengis.net/ogc")]
public class Spatial_Capabilities {
[XmlElement(ElementName="GeometryOperands", Namespace="http://www.opengis.net/ogc")]
public GeometryOperands GeometryOperands { get; set; }
[XmlElement(ElementName="SpatialOperators", Namespace="http://www.opengis.net/ogc")]
public SpatialOperators SpatialOperators { get; set; }
}
[XmlRoot(ElementName="ComparisonOperators", Namespace="http://www.opengis.net/ogc")]
public class ComparisonOperators {
[XmlElement(ElementName="ComparisonOperator", Namespace="http://www.opengis.net/ogc")]
public List<string> ComparisonOperator { get; set; }
}
[XmlRoot(ElementName="Scalar_Capabilities", Namespace="http://www.opengis.net/ogc")]
public class Scalar_Capabilities {
[XmlElement(ElementName="LogicalOperators", Namespace="http://www.opengis.net/ogc")]
public string LogicalOperators { get; set; }
[XmlElement(ElementName="ComparisonOperators", Namespace="http://www.opengis.net/ogc")]
public ComparisonOperators ComparisonOperators { get; set; }
}
[XmlRoot(ElementName="Id_Capabilities", Namespace="http://www.opengis.net/ogc")]
public class Id_Capabilities {
[XmlElement(ElementName="EID", Namespace="http://www.opengis.net/ogc")]
public string EID { get; set; }
[XmlElement(ElementName="FID", Namespace="http://www.opengis.net/ogc")]
public string FID { get; set; }
}
[XmlRoot(ElementName="Filter_Capabilities", Namespace="http://www.opengis.net/ogc")]
public class Filter_Capabilities {
[XmlElement(ElementName="Spatial_Capabilities", Namespace="http://www.opengis.net/ogc")]
public Spatial_Capabilities Spatial_Capabilities { get; set; }
[XmlElement(ElementName="Scalar_Capabilities", Namespace="http://www.opengis.net/ogc")]
public Scalar_Capabilities Scalar_Capabilities { get; set; }
[XmlElement(ElementName="Id_Capabilities", Namespace="http://www.opengis.net/ogc")]
public Id_Capabilities Id_Capabilities { get; set; }
}
[XmlRoot(ElementName="WFS_Capabilities", Namespace="http://www.opengis.net/wfs")]
public class WFS_Capabilities {
[XmlElement(ElementName="ServiceIdentification", Namespace="http://www.opengis.net/ows")]
public ServiceIdentification ServiceIdentification { get; set; }
[XmlElement(ElementName="ServiceProvider", Namespace="http://www.opengis.net/ows")]
public ServiceProvider ServiceProvider { get; set; }
[XmlElement(ElementName="OperationsMetadata", Namespace="http://www.opengis.net/ows")]
public OperationsMetadata OperationsMetadata { get; set; }
[XmlElement(ElementName="FeatureTypeList", Namespace="http://www.opengis.net/wfs")]
public FeatureTypeList FeatureTypeList { get; set; }
[XmlElement(ElementName="Filter_Capabilities", Namespace="http://www.opengis.net/ogc")]
public Filter_Capabilities Filter_Capabilities { get; set; }
[XmlAttribute(AttributeName="gml", Namespace="http://www.w3.org/2000/xmlns/")]
public string Gml { get; set; }
[XmlAttribute(AttributeName="wfs", Namespace="http://www.w3.org/2000/xmlns/")]
public string Wfs { get; set; }
[XmlAttribute(AttributeName="ows", Namespace="http://www.w3.org/2000/xmlns/")]
public string Ows { get; set; }
[XmlAttribute(AttributeName="xlink", Namespace="http://www.w3.org/2000/xmlns/")]
public string Xlink { get; set; }
[XmlAttribute(AttributeName="xsi", Namespace="http://www.w3.org/2000/xmlns/")]
public string Xsi { get; set; }
[XmlAttribute(AttributeName="ogc", Namespace="http://www.w3.org/2000/xmlns/")]
public string Ogc { get; set; }
[XmlAttribute(AttributeName="ms-ogc-workshop", Namespace="http://www.w3.org/2000/xmlns/")]
public string Msogcworkshop { get; set; }
[XmlAttribute(AttributeName="xmlns")]
public string Xmlns { get; set; }
[XmlAttribute(AttributeName="version")]
public string Version { get; set; }
[XmlAttribute(AttributeName="schemaLocation", Namespace="http://www.w3.org/2001/XMLSchema-instance")]
public string SchemaLocation { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment