Skip to content

Commit

Permalink
Update CHANGELOG.rst, __init__.py, and 2 more files...
Browse files Browse the repository at this point in the history
  • Loading branch information
jokiefer committed Mar 15, 2024
1 parent 2c46f66 commit f89b18f
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 33 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

[v0.14.1] - 2024-03-15
---------------------

Fixed
~~~~~

* wrong xpath for operation urls

[v0.14.0] - 2024-02-21
---------------------

Expand Down
2 changes: 1 addition & 1 deletion ows_lib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.14.0"
__version__ = "0.14.1"
VERSION = __version__ # synonym
32 changes: 16 additions & 16 deletions ows_lib/xml_mapper/capabilities/wms/wms111.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class LegendUrl(WebMapServiceDefaultSettings):
ROOT_NAME = "LegendUrl"

legend_url = StringField(
xpath="./OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./OnlineResource/@xlink:href")
height = IntegerField(xpath="./@height")
width = IntegerField(xpath="./@width")
mime_type = NodeField(xpath="./Format", node_class=MimeType)
Expand All @@ -83,7 +83,7 @@ class Style(WebMapServiceDefaultSettings):


class RemoteMetadata(WebMapServiceDefaultSettings):
ROOT_NAME = "OnlineResource[@xlink:type='simple']/@xlink:href"
ROOT_NAME = "OnlineResource/@xlink:href"
link = StringField(
xpath="./@xlink:href")

Expand Down Expand Up @@ -124,7 +124,7 @@ class Layer(LayerMixin, WebMapServiceDefaultSettings):
children = NodeListField(xpath="./Layer", node_class="self")

remote_metadata = NodeListField(
xpath="./MetadataURL/OnlineResource[@xlink:type='simple']",
xpath="./MetadataURL/OnlineResource",
node_class=RemoteMetadata)


Expand All @@ -145,7 +145,7 @@ class WebMapService(WebMapServiceMixin, WebMapServiceDefaultSettings):
keywords = StringListField(xpath="./Service/KeywordList/Keyword")

service_url = StringField(
xpath="./Service/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Service/OnlineResource/@xlink:href")

service_type = NodeField(xpath=".", node_class=ServiceType)

Expand All @@ -161,41 +161,41 @@ class WebMapService(WebMapServiceMixin, WebMapServiceDefaultSettings):
_get_capabilities_mime_types = StringListField(
xpath="./Capability/Request/GetCapabilities/Format")
_get_capabilities_get_url = StringField(
xpath="./Capability/Request/GetCapabilities/DCPType/HTTP/Get/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/GetCapabilities/DCPType/HTTP/Get/OnlineResource/@xlink:href")
_get_capabilities_post_url = StringField(
xpath="./Capability/Request/GetCapabilities/DCPType/HTTP/Post/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/GetCapabilities/DCPType/HTTP/Post/OnlineResource/@xlink:href")

_get_map_mime_types = StringListField(
xpath="./Capability/Request/GetMap/Format")
_get_map_get_url = StringField(
xpath="./Capability/Request/GetMap/DCPType/HTTP/Get/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/GetMap/DCPType/HTTP/Get/OnlineResource/@xlink:href")
_get_map_post_url = StringField(
xpath="./Capability/Request/GetMap/DCPType/HTTP/Post/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/GetMap/DCPType/HTTP/Post/OnlineResource/@xlink:href")

_get_feature_info_mime_types = StringListField(
xpath="./Capability/Request/GetFeatureInfo/Format")
_get_feature_info_get_url = StringField(
xpath="./Capability/Request/GetFeatureInfo/DCPType/HTTP/Get/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/GetFeatureInfo/DCPType/HTTP/Get/OnlineResource/@xlink:href")
_get_feature_info_post_url = StringField(
xpath="./Capability/Request/GetFeatureInfo/DCPType/HTTP/Post/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/GetFeatureInfo/DCPType/HTTP/Post/OnlineResource/@xlink:href")

_describe_layer_mime_types = StringListField(
xpath="./Capability/Request/DescribeLayer/Format")
_describe_layer_get_url = StringField(
xpath="./Capability/Request/DescribeLayer/DCPType/HTTP/Get/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/DescribeLayer/DCPType/HTTP/Get/OnlineResource/@xlink:href")
_describe_layer_post_url = StringField(
xpath="./Capability/Request/DescribeLayer/DCPType/HTTP/Post/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/DescribeLayer/DCPType/HTTP/Post/OnlineResource/@xlink:href")

_get_legend_graphic_mime_types = StringListField(
xpath="./Capability/Request/GetLegendGraphic/Format")
_get_legend_graphic_get_url = StringField(
xpath="./Capability/Request/GetLegendGraphic/DCPType/HTTP/Get/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/GetLegendGraphic/DCPType/HTTP/Get/OnlineResource/@xlink:href")
_get_legend_graphic_post_url = StringField(
xpath="./Capability/Request/GetLegendGraphic/DCPType/HTTP/Post/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/GetLegendGraphic/DCPType/HTTP/Post/OnlineResource/@xlink:href")

_get_styles_mime_types = StringListField(
xpath="./Capability/Request/GetStyles/Format")
_get_styles_get_url = StringField(
xpath="./Capability/Request/GetStyles/DCPType/HTTP/Get/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/GetStyles/DCPType/HTTP/Get/OnlineResource/@xlink:href")
_get_styles_post_url = StringField(
xpath="./Capability/Request/GetStyles/DCPType/HTTP/Post/OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./Capability/Request/GetStyles/DCPType/HTTP/Post/OnlineResource/@xlink:href")
32 changes: 16 additions & 16 deletions ows_lib/xml_mapper/capabilities/wms/wms130.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class LegendUrl(WebMapServiceDefaultSettings):
ROOT_NAME = "LegendUrl"

legend_url = StringField(
xpath="./wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:OnlineResource/@xlink:href")
height = IntegerField(xpath="./@height")
width = IntegerField(xpath="./@width")
mime_type = NodeField(xpath="./wms:Format", node_class=MimeType)
Expand All @@ -84,7 +84,7 @@ class Style(WebMapServiceDefaultSettings):


class RemoteMetadata(WebMapServiceDefaultSettings):
ROOT_NAME = "OnlineResource[@xlink:type='simple']/@xlink:href"
ROOT_NAME = "OnlineResource/@xlink:href"
link = StringField(
xpath="./@xlink:href")

Expand Down Expand Up @@ -123,7 +123,7 @@ class Layer(LayerMixin, WebMapServiceDefaultSettings):
children = NodeListField(xpath="./wms:Layer", node_class="self")

remote_metadata = NodeListField(
xpath="./wms:MetadataURL/wms:OnlineResource[@xlink:type='simple']",
xpath="./wms:MetadataURL/wms:OnlineResource",
node_class=RemoteMetadata)


Expand All @@ -137,7 +137,7 @@ class WebMapService(WebMapServiceMixin, WebMapServiceDefaultSettings):
access_constraints = StringField(
xpath="./wms:Service/wms:AccessConstraints")
service_url = StringField(
xpath="./wms:Service/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Service/wms:OnlineResource/@xlink:href")

# ForeignKey
service_contact = NodeField(xpath="./wms:Service/wms:ContactInformation",
Expand All @@ -161,41 +161,41 @@ class WebMapService(WebMapServiceMixin, WebMapServiceDefaultSettings):
_get_capabilities_mime_types = StringListField(
xpath="./wms:Capability/wms:Request/wms:GetCapabilities/wms:Format")
_get_capabilities_get_url = StringField(
xpath="./wms:Capability/wms:Request/wms:GetCapabilities/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:GetCapabilities/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource/@xlink:href")
_get_capabilities_post_url = StringField(
xpath="./wms:Capability/wms:Request/wms:GetCapabilities/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:GetCapabilities/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource/@xlink:href")

_get_map_mime_types = StringListField(
xpath="./wms:Capability/wms:Request/wms:GetMap/wms:Format")
_get_map_get_url = StringField(
xpath="./wms:Capability/wms:Request/wms:GetMap/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:GetMap/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource/@xlink:href")
_get_map_post_url = StringField(
xpath="./wms:Capability/wms:Request/wms:GetMap/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:GetMap/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource/@xlink:href")

_get_feature_info_mime_types = StringListField(
xpath="./wms:Capability/wms:Request/wms:GetFeatureInfo/wms:Format")
_get_feature_info_get_url = StringField(
xpath="./wms:Capability/wms:Request/wms:GetFeatureInfo/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:GetFeatureInfo/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource/@xlink:href")
_get_feature_info_post_url = StringField(
xpath="./wms:Capability/wms:Request/wms:GetFeatureInfo/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:GetFeatureInfo/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource/@xlink:href")

_describe_layer_mime_types = StringListField(
xpath="./wms:Capability/wms:Request/wms:DescribeLayer/wms:Format")
_describe_layer_get_url = StringField(
xpath="./wms:Capability/wms:Request/wms:DescribeLayer/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:DescribeLayer/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource/@xlink:href")
_describe_layer_post_url = StringField(
xpath="./wms:Capability/wms:Request/wms:DescribeLayer/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:DescribeLayer/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource/@xlink:href")

_get_legend_graphic_mime_types = StringListField(
xpath="./wms:Capability/wms:Request/wms:GetLegendGraphic/wms:Format")
_get_legend_graphic_get_url = StringField(
xpath="./wms:Capability/wms:Request/wms:GetLegendGraphic/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:GetLegendGraphic/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource/@xlink:href")
_get_legend_graphic_post_url = StringField(
xpath="./wms:Capability/wms:Request/wms:GetLegendGraphic/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:GetLegendGraphic/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource/@xlink:href")

_get_styles_mime_types = StringListField(
xpath="./wms:Capability/wms:Request/wms:GetStyles/wms:Format")
_get_styles_get_url = StringField(
xpath="./wms:Capability/wms:Request/wms:GetStyles/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:GetStyles/wms:DCPType/wms:HTTP/wms:Get/wms:OnlineResource/@xlink:href")
_get_styles_post_url = StringField(
xpath="./wms:Capability/wms:Request/wms:GetStyles/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource[@xlink:type='simple']/@xlink:href")
xpath="./wms:Capability/wms:Request/wms:GetStyles/wms:DCPType/wms:HTTP/wms:Post/wms:OnlineResource/@xlink:href")

0 comments on commit f89b18f

Please sign in to comment.