queryByAttributes...

Sean Gillies sgillies at FRII.COM
Tue Apr 12 14:48:42 PDT 2005


On Apr 12, 2005, at 3:11 PM, Sean Gillies wrote:

> On Apr 12, 2005, at 3:02 PM, Morten Nielsen wrote:
>
>>> First, of all, you should
>>> generally compare integer results from mapscript to
>>> mapscript.MS_SUCCESS (0) and mapscript.MS_FAILURE (1)
>>
>> For some reason SWIG "hides" these return values in
>> MapServer.MS_RETURN_VALUE.MS_SUCCESS and
>> MapServer.MS_RETURN_VALUE.MS_FAILURE
>>
>> /Morten
>>
>
> I'm looking in mapscript.cs and see a
>
> public class mapscript {
>    ...
>    public static readonly int MS_SUCCESS
>    ...
> }
>
> Is that not accessible as mapscript.MS_SUCCESS from C#?
>
> Sean
>

It appears that SWIGCSHARP emits different C# code in 1.3.24 (Morten's)
than in 1.3.21 (mine).  Bummer.  I think that the "new" location of the
constants is awkward and that we should consider some changes to map.h
that will return them to a better location.

Sean



More information about the MapServer-users mailing list