[ZS2] Re: [mapguide-users] filter for features

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Fri Oct 3 03:54:03 EDT 2008


You problem sounds very strange.
The FDO SQL variant is picky about string/number conversion, so you must 
quote numbers if they are strings, and unquote if not.
Your written example does this correctly.

It may be a problem with the SHP provider (although I have seen no other 
reports on this matter).

One thing you can try is to go here:
http://localhost/mapguide/mapagent/index.html

The click "Feature" (top left), then "SelectFeatures" (botton left).
In the view to the right, you can enter the values as they would be in 
your call.
This should enable you to experiment more quickly with variants of your 
query.

If this still holds the same issues, you can try to use Jackie's FDO 
Toolbox to convert the data to SDF:
http://code.google.com/p/fdotoolbox/

After you have converted the data to SDF, try to run the same query on 
the SDF data.
If the query goes through, you have found a bug in the SHP provider.
If so, please provide the SHP file as well as the SDF files in a bug report:
http://trac.osgeo.org/mapguide/
(If the data is confidential, submit the ticket without data, or try to 
make a confidential version)

If it still works, can you produce a non-confidential copy of the data 
and email it to me directly?
I can try it out on MapGuide 2.0.2 and see if there are any problems.

Regards, Kenneth Skovhede, GEOGRAF A/S



EvaD skrev:
> I am currently using MapGuide OS 2.0 with .Net with C#. The source file is
> SHP type, and I need to make selection programmatically in response to user
> click event on the control. There is only one parameter that is unique
> identifier for the parcels, and this is "FeatId". If I try to filter by
> "PROPADR" I am getting wrong parcels selected because there is more than one
> parcel with the same address.
>
> -Eva
>
>
>
> Jackie C. Ng wrote:
>   
>> What version of MapGuide?
>>
>> - Jackie
>>
>>
>> Eva wrote:
>>     
>>>  It is SHP type.
>>>
>>>
>>>
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/filter-for-features-tp19761808p19768232.html
>>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>>       
>> -- 
>> View this message in context:
>> http://n2.nabble.com/filter-for-features-tp1131530p1132507.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>> -----
>> http://themapguyde.blogspot.com
>>
>> http://www.linkedin.com/in/jackieng
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20081003/702a0b53/attachment.html


More information about the mapguide-users mailing list