Changes

Jump to navigation Jump to search
1,426 bytes removed ,  15:56, 5 March 2021
no edit summary
Line 12: Line 12:  
== REST API ==
 
== REST API ==
   −
=== REST Search ===
+
Visit [https://github.com/nrcan-eodms-sgdot-rncan/eodms-rapi-orderdownload] to find out more about our client to search and download images. To access the REST API directly, see [https://github.com/nrcan-eodms-sgdot-rncan/eodms-rapi-orderdownload/wiki/Directly-Accessing-the-EODMS-REST-API].
 
  −
SEARCH FIELDS
  −
 
  −
Default result format is human-readable HTML. Appending <code>&format=json'</code> or <code>'=xml'</code> to the URL behaves as expected.
  −
Each collection has a unique set of search fields here:
  −
  https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/collections/NAPL
  −
  https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/collections/RCMImageProducts
  −
  https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/collections/Radarsat1
  −
 
  −
SPATIAL
  −
 
  −
<pre style="background-color:#EEFFCC; border-color:#AACC99">https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=CATALOG_IMAGE.THE_GEOM_4326 INTERSECTS POLYGON ((-75 45,-75 46,-76 46,-76 45,-75 45))&format=json</pre>
  −
 
  −
TEMPORAL
  −
 
  −
<pre style="background-color:#EEFFCC; border-color:#AACC99">https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=CATALOG_IMAGE.START_DATETIME&gt;'2000-01-01' AND CATALOG_IMAGE.START_DATETIME&lt;'2005-01-01'</pre>
  −
 
  −
BOOLEAN
  −
 
  −
<pre style="background-color:#EEFFCC; border-color:#AACC99">https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=CATALOG_IMAGE.PUBLIC_GOOD=TRUE</pre>
  −
 
  −
STRING
  −
 
  −
<pre style="background-color:#EEFFCC; border-color:#AACC99">https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=ROLL.ROLL_NUMBER='A128' AND PHOTO.PHOTO_NUMBER='0032</pre>
  −
 
  −
=== REST Order ===
  −
 
  −
URL: https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/order
  −
 
  −
HTTP AUTH: Your EODMS username and password
  −
 
  −
HTTP POST XML:
  −
 
  −
<pre style="background-color:#EEFFCC; border-color:#AACC99">
  −
{
  −
    "destinations": [],
  −
    "items": [
  −
        {
  −
            "collectionId": "RCMImageProducts",
  −
            "recordId": "7189214"
  −
        }
  −
    ]
  −
}
  −
</pre>
      
== OPENSEARCH API ==
 
== OPENSEARCH API ==
Line 62: Line 18:  
=== OPENSEARCH Search ===
 
=== OPENSEARCH Search ===
   −
To see a list of collection names open to GUESTS to supply to the collection query string argument visit: https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/collections
+
To see a list of collection names open to GUEST users to supply to the collection query string argument visit: https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/collections
    
BASIC
 
BASIC

Navigation menu

GCwiki