Changes

Jump to navigation Jump to search
271 bytes added ,  15:45, 30 June 2020
no edit summary
Line 13: Line 13:     
== REST API (Search) ==
 
== REST API (Search) ==
Default result format is human-readable HTML. Appending &format=json' or '=xml' to URL behaves as expected.
+
Default result format is human-readable HTML. Appending <pre>&format=json'</pre> or <pre>'=xml'</pre> to the URL behaves as expected.
 
Each collection has a unique set of search fields here:
 
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/NAPL
Line 21: Line 21:  
SPATIAL (e.g. Ottawa)
 
SPATIAL (e.g. Ottawa)
   −
  https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=CATALOG_IMAGE.THE_GEOM_4326%20INTERSECTS%20POLYGON%20((-76.06440000000001%2046.2587,%20-75.9843%2046.2592,%20-75.9843%2046.2261,%20-76.0634%2046.2256,%20-76.06440000000001%2046.2587))&format=json
+
<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%20INTERSECTS%20POLYGON%20((-76.06440000000001%2046.2587,%20-75.9843%2046.2592,%20-75.9843%2046.2261,%20-76.0634%2046.2256,%20-76.06440000000001%2046.2587))&format=json</pre>
    
TEMPORAL (timestamp e.g. 2000 - 2005)
 
TEMPORAL (timestamp e.g. 2000 - 2005)
   −
  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'</code>
+
<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>
    
CATALOG_IMAGE.PUBLIC_GOOD (boolean e.g. CATALOG_IMAGE.PUBLIC_GOOD)
 
CATALOG_IMAGE.PUBLIC_GOOD (boolean e.g. CATALOG_IMAGE.PUBLIC_GOOD)
 
+
 
  https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=CATALOG_IMAGE.PUBLIC_GOOD=TRUE
+
<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>
    
NAPL ROLL / PHOTO (string e.g. A128_0032)
 
NAPL ROLL / PHOTO (string e.g. A128_0032)
 
+
 
  https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=ROLL.ROLL_NUMBER='A128' AND PHOTO.PHOTO_NUMBER='0032
+
<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>
    
== OpenSearch API (for RADARSAT-1 and NAPL) ==
 
== OpenSearch API (for RADARSAT-1 and NAPL) ==

Navigation menu

GCwiki