Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WMS 1.3.0 support (for OWSLib proper) #12

Open
roomthily opened this issue Mar 11, 2015 · 5 comments
Open

WMS 1.3.0 support (for OWSLib proper) #12

roomthily opened this issue Mar 11, 2015 · 5 comments
Assignees

Comments

@roomthily
Copy link

Some notes related to implementation.

@roomthily roomthily self-assigned this Mar 11, 2015
@roomthily
Copy link
Author

For the BBOX query parameter.
CRS:84: (long, lat)
EPSG:4326: (lat, long)

@roomthily
Copy link
Author

Axis patch implemented for 4326, 4269 and 4267 but this is not a complete list and none of the options/other implementations are complete.

See 6af3aa4

@roomthily
Copy link
Author

Updating the Extent handling to the complete Dimension handling (I don't know what the deal is 1.1.1 though - reads like 1.3.0 merged Extent and Dimension into one blob). Will retain the names of the overlapping attributes for backwards compatibility.

1.3.0

<Dimension name="time" units="ISO8601" default="2006-06-23T03:10:00Z" nearestValue="0">1995-01-01/2013-12-31/PT5M</Dimension>

# with current and unitSymbol attributes optional

vs 1.1.1

<Dimension name="time" units="ISO8601"/>
<Extent name="time" default="2006-06-23T03:10:00Z" nearestValue="0">1995-01-01/2013-12-31/PT5M</Extent>

@roomthily
Copy link
Author

The existing code just grabs the text values and the default attribute - there's no space to include the other supported attributes.

@roomthily
Copy link
Author

Using this AZGS ArcGIS Server WMS 1.3.0:

http://services.azgs.az.gov/ArcGIS/services/aasggeothermal/ORWellHeaders/MapServer/WMSServer?request=GetCapabilities&service=WMS

We have the following Layer nesting:

<Layer>
    <Title><![CDATA[ORWellHeaders]]></Title>
    <CRS>CRS:84</CRS>
    <CRS>EPSG:4326</CRS>
    <CRS>EPSG:3857</CRS>
    <!-- alias 3857 -->
    <CRS>EPSG:102100</CRS>
    <EX_GeographicBoundingBox><westBoundLongitude>-124.399896</westBoundLongitude><eastBoundLongitude>-116.779783</eastBoundLongitude><southBoundLatitude>41.999877</southBoundLatitude><northBoundLatitude>46.162222</northBoundLatitude></EX_GeographicBoundingBox>
    <BoundingBox CRS="CRS:84" minx="-124.399896" miny="41.999877" maxx="-116.779783" maxy="46.162222"/>
    <BoundingBox CRS="EPSG:4326" minx="41.999877" miny="-124.399896" maxx="46.162222" maxy="-116.779783"/>
    <BoundingBox CRS="EPSG:3857" minx="-13848133.077456" miny="5160961.019264" maxx="-12999865.978509" maxy="5806383.628162"/>
    <Layer queryable="1">
      <Name>Wellheader</Name>
      <Title><![CDATA[Wellheader]]></Title>
      <Abstract><![CDATA[Wellheader]]></Abstract>
    <CRS>CRS:84</CRS>
    <CRS>EPSG:4326</CRS>
    <CRS>EPSG:3857</CRS>
    <!-- alias 3857 -->
    <CRS>EPSG:102100</CRS>
    <EX_GeographicBoundingBox><westBoundLongitude>-124.399896</westBoundLongitude><eastBoundLongitude>-116.779783</eastBoundLongitude><southBoundLatitude>41.999877</southBoundLatitude><northBoundLatitude>46.162222</northBoundLatitude></EX_GeographicBoundingBox>
    <BoundingBox CRS="CRS:84" minx="-124.399896" miny="41.999877" maxx="-116.779783" maxy="46.162222"/>
    <BoundingBox CRS="EPSG:4326" minx="41.999877" miny="-124.399896" maxx="46.162222" maxy="-116.779783"/>
    <BoundingBox CRS="EPSG:3857" minx="-13848133.077456" miny="5160961.019264" maxx="-12999865.978509" maxy="5806383.628162"/>
    <Style>
      <Name>default</Name>
      <Title>Wellheader</Title>
      <LegendURL width="20" height="20">
        <Format>image/png</Format>
        <OnlineResource xlink:href="http://services.azgs.az.gov/arcgis/services/aasggeothermal/ORWellHeaders/MapServer/WmsServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=Wellheader" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" />
      </LegendURL>
    </Style>
  </Layer>
</Layer>

with the parent ORWellHeaders and the child WellHeader. OWSLib (at least in the WMS handling) uses the Layer.Name as the key for its dict of layers (contents). The parent layer doesn't have a Name element and so it's not in the returned contents list but is still accessible as the WellHeader parent for crsOptions, etc. Which is probably reasonable and this is just a note for the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant