[mapguide-users] RE: select features filter
GM_Mizar
giampiero.massa at torino.miz.it
Fri Jun 29 11:20:13 EDT 2007
I have solved this...the problem was that FeatId is of Int32 type but other
properties (RoadID, ...) are Numeric type. I thought that Numeric = Int but
it's not true, it's a float type. In my code I've changed the
MgInt32Property with a MgDoubleProperty and now all works fine.
Thanks a lot for the comment!
Giampiero
Mark Pendergraft wrote:
>
> What type of value is the RoadID property? I had problems selecting
> parcels from a certain county because the ParcelID was a string, not a
> number and I had to change my filter to "Parcel_Id = '30042562000140'" in
> order to get it to work.
>
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of GM_Mizar
> Sent: Friday, June 29, 2007 3:15 AM
> To: mapguide-users at lists.osgeo.org
> Subject: [mapguide-users] select features filter
>
>
> Hi everybody,
>
> I have a problem with feature filters. I have a feature source with some
> properties (FeatId, RoadID, origin, destination, …), I’m trying to select
> only those that have RoadID = 0.
>
> After a lot of tests, at the end I’m using the map agent web interface
> (http://localhost/MapGuide/mapagent) on the “SelectFeatures” function. If
> I
> don’t use any filter I can get 5 features in my feature source, having the
> FeatId property from 1 to 5 and all the RoadID property set to 0.
>
> If I use the filter “RoadID=0” I don’t get any feature.
>
> How shall I write the filter?
>
> Thanks,
> Giampiero
>
> --
> View this message in context:
> http://www.nabble.com/select-features-filter-tf3999191s16610.html#a11358011
> 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
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://www.nabble.com/select-features-filter-tf3999191s16610.html#a11362019
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list