gov.noaa.datalocator
Class DataLocatorService

java.lang.Object
  extended by gov.noaa.datalocator.DataLocatorService

public class DataLocatorService
extends java.lang.Object

Web service for searching Data Locator mySQL database and returing a list of matching WCS URLS.

Author:
jssmith

Constructor Summary
DataLocatorService()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main method for testing the web service
 java.lang.String registerDatasetWithNcWMS(java.lang.String wcsURL)
          Replace pipe | chars with & chars, then register the dataset given by wcsURL with ncWMS.
 DatasetCoverage[] search(java.lang.String minDate, java.lang.String maxDate, java.lang.String minLat, java.lang.String maxLat, java.lang.String minLon, java.lang.String maxLon, java.lang.String serviceType, java.lang.String coverageLabel, java.lang.String catalogDesc)
          Main search method that is publicly accessible via web service interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataLocatorService

public DataLocatorService()
Method Detail

search

public DatasetCoverage[] search(java.lang.String minDate,
                                java.lang.String maxDate,
                                java.lang.String minLat,
                                java.lang.String maxLat,
                                java.lang.String minLon,
                                java.lang.String maxLon,
                                java.lang.String serviceType,
                                java.lang.String coverageLabel,
                                java.lang.String catalogDesc)
Main search method that is publicly accessible via web service interface. Given the search parameters passed in, this method searches the mySQL database for matches. Returns array of DatasetCoverage objects that match the search criteria.

Parameters:
minDateISO8601 - minimum date search criteria in ISO-8601 format (e.g., 2001-01-01T15:00:00Z)
maxDateISO8601 - maximum date search criteria in ISO-8601 format (e.g., 2001-01-01T15:00:00Z)
minLat - minimum latitude search criteria (e.g. 25.5)
maxLat - maximum latitude search criteria (e.g. 89.9)
minLon - minimum longitude search criteria (e.g. -180)
maxLon - maximum longitude search criteria (e.g. 179.5)
serviceType - OGC service type (currently 'WCS' is the only option)
coverageLabel - the name of the coverage (the search phrase, e.g. "temperature")
catalogDescription - the name of the catalog (e.g. nextgen.fsl.noaa.gov-FIM)
Returns:

registerDatasetWithNcWMS

public java.lang.String registerDatasetWithNcWMS(java.lang.String wcsURL)
Replace pipe | chars with & chars, then register the dataset given by wcsURL with ncWMS. For example, wcsURL might be http://hep.fsl.noaa.gov:8080/axis2/services/DataLocatorService/registerDatasetWithNcWMS?wcsURL=http://int6.fsl.noaa.gov:8080/thredds/wcs/fim/0719800000000?request=GetCoverage|version=1.0.0|service=WCS|CRS=WGS84(DD)|RESPONSE_CRS=EPSG:4326|format=NetCDF3|coverage=Dew_point_temperature|BBOX=0.0,-90.0,359.9,90.0 Note: the wcsURL needs to be passed in with pipe | chars instead of & chars so avoid confusing the web service into thinking that multiple parameters (not just the one wcsURL) have been passed in.

Parameters:
wcsURL - e.g., http://localhost:8080/thredds/wcs/fim/0719800000000?request=GetCoverage|version=1.0.0|service=WCS|CRS=WGS84(DD)|RESPONSE_CRS=EPSG:4326|format=NetCDF3|coverage=Geopotential_Height|BBOX=0.0,-90.0,359.9,90.0
Returns:

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main method for testing the web service

Parameters:
args -
Throws:
java.lang.Exception