TEST SUITE FOR THE GEOSPATIAL INDEX MANAGEMENT-LOOKUP-UPDATER
-----------------------------------------------------------
-Authors
* Spyros Mpoutsis (s.mpoytsis@di.uoa.gr)
* Vasilis Verroios (v.verroios@di.uoa.gr)

-Build

Dependencies: gCore, org.gcube.indexmanagement.geoindexlookup.stubs, org.gcube.indexmanagement.geoindexmanagement.stubs, org.gcube.indexmanagement.geoindexupdater.stubs
Compile: javac GeoIndexClient.java VOInfoManager.java, javac eiDBCol_2_geoRowsetRS.java VOInfoManager.java, javac esCol_2_geoRowsetRS.java VOInfoManager.java, javac ISO19115Col_2_geoRowsetRS.java VOInfoManager.java

-Define the properties file

For each scope a properties file must be defined with the information about the URIs of the involved services, and the IDs, schemas and languages of the collections.
An example for this properties file is given in this test suite for scope /gcube/devsec, with the file _gcube_devsec.properties(the convention is to replace '/' with '_' in the name of the scope) 

-Run
 
  GeoIndexClient
  
  Syntax: 
 * 1) GeoIndexClient [ -cred <credentialFile> ] <scope> -create "manager" | "lookup" | "all" <colName> <colSchema> <colLang> <indexTypeID> [ <geographicalSystem> <unitOfMeasurement> <numberOfDecimals> ]
 * 2) GeoIndexClient [ -cred <credentialFile> ] <scope> -destroy "manager" | "lookup" | "all" <colName> <colSchema> <colLang>
 * 3) GeoIndexClient [ -cred <credentialFile> ] <scope> -feed <colName> <colSchema> <colLang> <rowset_RS_EPR_file>
 * 4) GeoIndexClient [ -cred <credentialFile> ] <scope> -lookup <colName> <colSchema> <colLang> <x1,y1> <x2,y2> <x3,y3> [ .... <xn,yn> ]
 
 The <rowset_RS_EPR_file> can be produced using one of the eiDBCol_2_geoRowsetRS.java, esCol_2_geoRowsetRS.java, ISO19115Col_2_geoRowsetRS.java 
 classes (depending the schema)(example: java IndexManagement.eiDBCol_2_geoRowsetRS /d4science.research-infrastructures.eu/EM foo "EM ESA Earth Images" eiDB en > geo.epr) 