Coder Social home page Coder Social logo

Comments (9)

tomkralidis avatar tomkralidis commented on August 21, 2024

@rsignell-usgs thanks for the info. What does self.request look like? If you can't get to it, perhaps you can put a print statement at https://github.com/geopython/OWSLib/blob/master/owslib/csw.py#L340 to see?

from owslib.

rsignell-usgs avatar rsignell-usgs commented on August 21, 2024
print self.request
<Element {http://www.opengis.net/cat/csw/2.0.2}GetRecords at 0xa107300>

from owslib.

tomkralidis avatar tomkralidis commented on August 21, 2024

oops sorry wrong area. Put that in https://github.com/geopython/OWSLib/blob/master/owslib/csw.py#L574 ?

from owslib.

rsignell-usgs avatar rsignell-usgs commented on August 21, 2024
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<csw:GetRecords xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" outputSchema="http://www.opengis.net/cat/csw/2.0.2" outputFormat="application/xml" version="2.0.2" service="CSW" resultType="results" maxRecords="2" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd"><csw:Query typeNames="csw:Record"><csw:ElementSetName>summary</csw:ElementSetName></csw:Query></csw:GetRecords>

from owslib.

tomkralidis avatar tomkralidis commented on August 21, 2024

@rsignell-usgs thanks. That's a perfectly valid CSW request which should yield a response with 2 records. Something's up with the CWIC endpoint.

from owslib.

rsignell-usgs avatar rsignell-usgs commented on August 21, 2024

Yuanzheng Shao at GMU found that it's not a well-accepted request because the dataset identifier is a mandatory parameter. He says:

Please go the the following test page to get the sample request and response:
http://cwic.csiss.gmu.edu/testpage.html

Please note that in the request we have the following XML segment:

<ogc:PropertyIsEqualTo>
        <ogc:PropertyName>dc:subject</ogc:PropertyName>
        <ogc:Literal>ABOM-L4HRfnd-AUS-RAMSSA_09km</ogc:Literal>
</ogc:PropertyIsEqualTo>

This is used to specify dataset of interest.

from owslib.

tomkralidis avatar tomkralidis commented on August 21, 2024

@rsignell-usgs should we close this at this point? The CWIC endpoint requires the abovementioned ogc:PropertyIsEqualTo construct for GetRecords request. This is local to the CWIC profile of CSW. Having said this, you could simply add this filter to your owslib.csw.getrecords2 call, provided you know the value of the dc:subject you'd like to specify.

from owslib.

rsignell-usgs avatar rsignell-usgs commented on August 21, 2024

@tomkralidis Do you understand this? The whole purpose of the getrecords2 query is to find the datasets that meet the query request, right? How could we possibly specify the dataset name as part of the query?

from owslib.

tomkralidis avatar tomkralidis commented on August 21, 2024

@rsignell-usgs I think the idea of CWIC GetRecords is to have apriori knowledge of what datasets you're searching within, as opposed to finding the existence of them, as in pure CSW. In other words, CWIC is adding constraints to the CSW specification.

from owslib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.