Comments (9)
@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.
print self.request
<Element {http://www.opengis.net/cat/csw/2.0.2}GetRecords at 0xa107300>
from owslib.
oops sorry wrong area. Put that in https://github.com/geopython/OWSLib/blob/master/owslib/csw.py#L574 ?
from owslib.
<?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.
@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.
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.
@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.
@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.
@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)
- Small typo in doc
- Copy-Paste Error in README
- get_schema() unable to fully parse 'DescribeFeatureType' response
- provide option to not clean ows url? HOT 1
- broken WPS since 0.29.0 HOT 1
- Problem with parsing CRS84 srs identifier in WFS capabilities HOT 4
- Issue with clean_ows_url in wps.py when connecting to PyQGIS-WPS
- WFS 2.0.0 getFeature srsname
- Extend authentication method with requests_pkcs12 support
- dublin core as an import option HOT 1
- [WFS 2.0.0] getfeature argument to specify SRS/CRS? HOT 2
- Can't parse IGN Metadata catalogue with csw.getrecords2() HOT 1
- timeout isn't being used for WebCoverageService HOT 1
- bonares csw returns 'Document is XML, but not CSW-ish' HOT 1
- on csw:getrecords, incorrect endpoint is used HOT 1
- WMS GetFeatureInfo queries getting constructed incorrectly in 0.30.0 HOT 1
- Logging module references inconsistent and unpracticable for configuration with other packages HOT 2
- Allow for misconfigured MetadataUrl element HOT 3
- improve error handling accessing remote csw HOT 1
- document error handling of etree object
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from owslib.