1

Re: how can set GeographicalFilter using c#

hi i have a problem in using  GeographicalFilter with SpeciesList can anybody help me how can i set GeographicalFilter with in c#

this is the jsp code for setting  GeographicalFilter
***********************************************

GeographicalFilter gf = new GeographicalFilter();
    gf.setGridSquare(gs);
***********************************************
plz nay one can tell me how can i do this in c#

2

Re: how can set GeographicalFilter using c#

Assuming you have the WSDL loaded as a reference so .NET has created the proxy classes for you its simply something like (VB.NET code - but c# is very similar) - obviously depending which service you are trying to use

                Dim slReq As New OneSiteDataRequest
                Dim gf As New GeographicalFilter
                Dim tk As New GridSquare

                tk.key = s
                gf.Item = tk
                gf.MinimumResolution = Resolution._1km
                gf.MinimumResolutionSpecified = True

               slReq.GeographicalFilter = gf

HTH
James