|
private void ExecuteFindLD()
{
string LandDescription = "";
gov.geocommunicator.www.FindLD.FindLD svc = new gov.geocommunicator.www.FindLD.FindLD();
LandDescription = "NM 23 0270N 0120W SEC 1;";
// LandDescription = "NM 23 0270N 0120W SEC 11 ALIQ NWSW, ALIQ NESW, ALIQ NWSE, ALIQ NESE";
try
{
string response = "";
// test CallFindLD
DOI_GeoComm.gov.geocommunicator.www.FindLD.ePolygonFormat format = DOI_GeoComm.gov.geocommunicator.www.FindLD.ePolygonFormat.eGeoRSS;
gov.geocommunicator.www.FindLD.Result result = svc.CallFindLD(LandDescription, format);
MessageBox.Show("FindLD Response: \n" + result.Polygons[0].ToString());
// test LDToGeoRSS
response = "";
response = svc.LDToGeoRSS(LandDescription);
MessageBox.Show("LDToGeoRSS Response: \n" + response);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
svc.Dispose();
svc = null;
}
|