you have to put the string field also in quotes, like '[PolyType]' = 'SQUARE’
On 09/02/2012 04:56, John Beck wrote: > Dear List, > > I am trying to use FILTER in my mapfile. I am using this expression > > FILTER ([PolyType] = 'SQUARE’ and [PolyID] = 9) > > I have two fields in my shapfile (PolyType and PolyID) and I have a record > with PolyType = SQUARE and PolyID = 9 > The PolyType field is a string and the PolyID field is an integer. > > When I use this expression > > FILTER ([PolyID] = 9) > > It works fine, but if I try and filter on the PolyType field (a string) it > bombs. > > I have tried every combination for the String ‘SQUARE’ with and without quotes > but I cannot get it to work. Any ideas? > > JB > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users