
sbt-scalaxb.opengis.wms.capabilities_1_3_0.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-server-opengis_2.12 Show documentation
Show all versions of geotrellis-server-opengis_2.12 Show documentation
GeoTrellis Server is a set of components designed to simplify viewing, processing, and serving raster data from arbitrary sources with an emphasis on doing so in a functional style.
The newest version!
// Generated by scalaxb.
package opengis.wms
case class WMS_Capabilities(Service: opengis.wms.Service,
Capability: opengis.wms.Capability,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val version = attributes("@version").as[String]
lazy val updateSequence = attributes.get("@updateSequence") map { _.as[String]}
}
case class KeywordList(Keyword: Seq[opengis.wms.Keyword] = Nil)
case class Keyword(value: String,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val vocabulary = attributes.get("@vocabulary") map { _.as[String]}
}
case class OnlineResource(attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val xlinktype = attributes("@{http://www.w3.org/1999/xlink}type").as[xlink.TypeType]
lazy val xlinkhref = attributes.get("@{http://www.w3.org/1999/xlink}href") map { _.as[java.net.URI]}
lazy val xlinkrole = attributes.get("@{http://www.w3.org/1999/xlink}role") map { _.as[java.net.URI]}
lazy val xlinkarcrole = attributes.get("@{http://www.w3.org/1999/xlink}arcrole") map { _.as[java.net.URI]}
lazy val xlinktitle = attributes.get("@{http://www.w3.org/1999/xlink}title") map { _.as[String]}
lazy val xlinkshow = attributes.get("@{http://www.w3.org/1999/xlink}show") map { _.as[xlink.ShowType]}
lazy val xlinkactuate = attributes.get("@{http://www.w3.org/1999/xlink}actuate") map { _.as[xlink.ActuateType]}
}
sealed trait Name
object Name {
def fromString(value: String, scope: scala.xml.NamespaceBinding)(implicit fmt: scalaxb.XMLFormat[opengis.wms.Name]): Name = fmt.reads(scala.xml.Text(value), Nil) match {
case Right(x: Name) => x
case x => throw new RuntimeException(s"fromString returned unexpected value $x for input $value")
}
lazy val values: Seq[Name] = Seq(WMS)
}
case object WMS extends Name { override def toString = "WMS" }
case class Service(Name: opengis.wms.Name,
Title: String,
AbstractValue: Option[String] = None,
KeywordList: Option[opengis.wms.KeywordList] = None,
OnlineResource: opengis.wms.OnlineResource,
ContactInformation: Option[opengis.wms.ContactInformation] = None,
Fees: Option[String] = None,
AccessConstraints: Option[String] = None,
LayerLimit: Option[BigInt] = None,
MaxWidth: Option[BigInt] = None,
MaxHeight: Option[BigInt] = None)
case class ContactInformation(ContactPersonPrimary: Option[opengis.wms.ContactPersonPrimary] = None,
ContactPosition: Option[String] = None,
ContactAddress: Option[opengis.wms.ContactAddress] = None,
ContactVoiceTelephone: Option[String] = None,
ContactFacsimileTelephone: Option[String] = None,
ContactElectronicMailAddress: Option[String] = None)
case class ContactPersonPrimary(ContactPerson: String,
ContactOrganization: String)
case class ContactAddress(AddressType: String,
Address: String,
City: String,
StateOrProvince: String,
PostCode: String,
Country: String)
case class Capability(Request: opengis.wms.Request,
Exception: opengis.wms.Exception,
_ExtendedCapabilities: Seq[scalaxb.DataRecord[Any]] = Nil,
Layer: Option[opengis.wms.Layer] = None)
case class Request(GetCapabilities: opengis.wms.OperationType,
GetMap: opengis.wms.OperationType,
GetFeatureInfo: Option[opengis.wms.OperationType] = None,
_ExtendedOperation: Seq[scalaxb.DataRecord[Any]] = Nil)
/**
For each operation offered by the server, list the available output
formats and the online resource.
*/
case class OperationType(Format: Seq[String] = Nil,
DCPType: Seq[opengis.wms.DCPType] = Nil)
case class DCPType(HTTP: opengis.wms.HTTP)
case class HTTP(Get: opengis.wms.Get,
Post: Option[opengis.wms.Post] = None)
case class Get(OnlineResource: opengis.wms.OnlineResource)
case class Post(OnlineResource: opengis.wms.OnlineResource)
case class Exception(Format: Seq[String] = Nil)
case class Layer(Name: Option[String] = None,
Title: String,
AbstractValue: Option[String] = None,
KeywordList: Option[opengis.wms.KeywordList] = None,
CRS: Seq[String] = Nil,
EX_GeographicBoundingBox: Option[opengis.wms.EX_GeographicBoundingBox] = None,
BoundingBox: Seq[opengis.wms.BoundingBox] = Nil,
Dimension: Seq[opengis.wms.Dimension] = Nil,
Attribution: Option[opengis.wms.Attribution] = None,
AuthorityURL: Seq[opengis.wms.AuthorityURL] = Nil,
Identifier: Seq[opengis.wms.Identifier] = Nil,
MetadataURL: Seq[opengis.wms.MetadataURL] = Nil,
DataURL: Seq[opengis.wms.DataURL] = Nil,
FeatureListURL: Seq[opengis.wms.FeatureListURL] = Nil,
Style: Seq[opengis.wms.Style] = Nil,
MinScaleDenominator: Option[Double] = None,
MaxScaleDenominator: Option[Double] = None,
Layer: Seq[opengis.wms.Layer] = Nil,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val queryable = attributes("@queryable").as[String]
lazy val cascaded = attributes.get("@cascaded") map { _.as[BigInt]}
lazy val opaque = attributes("@opaque").as[String]
lazy val noSubsets = attributes("@noSubsets").as[String]
lazy val fixedWidth = attributes.get("@fixedWidth") map { _.as[BigInt]}
lazy val fixedHeight = attributes.get("@fixedHeight") map { _.as[BigInt]}
}
case class EX_GeographicBoundingBox(westBoundLongitude: Double,
eastBoundLongitude: Double,
southBoundLatitude: Double,
northBoundLatitude: Double)
case class BoundingBox(attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val CRS = attributes("@CRS").as[String]
lazy val minx = attributes("@minx").as[Double]
lazy val miny = attributes("@miny").as[Double]
lazy val maxx = attributes("@maxx").as[Double]
lazy val maxy = attributes("@maxy").as[Double]
lazy val resx = attributes.get("@resx") map { _.as[Double]}
lazy val resy = attributes.get("@resy") map { _.as[Double]}
}
case class Dimension(value: String,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val name = attributes("@name").as[String]
lazy val units = attributes("@units").as[String]
lazy val unitSymbol = attributes.get("@unitSymbol") map { _.as[String]}
lazy val default = attributes.get("@default") map { _.as[String]}
lazy val multipleValues = attributes.get("@multipleValues") map { _.as[String]}
lazy val nearestValue = attributes.get("@nearestValue") map { _.as[String]}
lazy val current = attributes.get("@current") map { _.as[String]}
}
case class Attribution(Title: Option[String] = None,
OnlineResource: Option[opengis.wms.OnlineResource] = None,
LogoURL: Option[opengis.wms.LogoURL] = None)
case class LogoURL(Format: String,
OnlineResource: opengis.wms.OnlineResource,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val width = attributes.get("@width") map { _.as[BigInt]}
lazy val height = attributes.get("@height") map { _.as[BigInt]}
}
case class MetadataURL(Format: String,
OnlineResource: opengis.wms.OnlineResource,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val typeValue = attributes("@type").as[String]
}
case class AuthorityURL(OnlineResource: opengis.wms.OnlineResource,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val name = attributes("@name").as[String]
}
case class Identifier(value: String,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val authority = attributes("@authority").as[String]
}
case class DataURL(Format: String,
OnlineResource: opengis.wms.OnlineResource)
case class FeatureListURL(Format: String,
OnlineResource: opengis.wms.OnlineResource)
case class Style(Name: String,
Title: String,
AbstractValue: Option[String] = None,
LegendURL: Seq[opengis.wms.LegendURL] = Nil,
StyleSheetURL: Option[opengis.wms.StyleSheetURL] = None,
StyleURL: Option[opengis.wms.StyleURL] = None)
case class LegendURL(Format: String,
OnlineResource: opengis.wms.OnlineResource,
attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
lazy val width = attributes.get("@width") map { _.as[BigInt]}
lazy val height = attributes.get("@height") map { _.as[BigInt]}
}
case class StyleSheetURL(Format: String,
OnlineResource: opengis.wms.OnlineResource)
case class StyleURL(Format: String,
OnlineResource: opengis.wms.OnlineResource)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy