Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] filtering contents of rendered layers

At 20:08 30/10/2007, Jesse Eichar wrote:
Put a break point in ShowViewInterceptor and verify that the filter
is being picked up correctly.

Hmm, no it's not. The 'properties' member of LayerImpl is empty. Why would that be?

Finally,  is the layer a postgis layer?

No, it's a layer that we define (via extending AbstractFeatureSource, etc), which drives off our optimisation results objects (in memory).

Vince.

Jesse
On Oct 30, 2007, at 1:02 PM, Vince Darley wrote:

I'm trying this now:

At 20:38 29/10/2007, Jesse Eichar wrote:
>layer.getBlackboard().put
( ProjectBlackboardConstants#LAYER__DATA_QUERY, filter);

via code like this:

static void addFilterToLayer(ILayer layer, java.util.Map<String,
Filter> layerFilters) {
  Filter f = layerFilters.get(layer.getName());
  if (f != null) {
    System.out.println("Filter for " + layer.getName() + " is " + f);
layer.getBlackboard().put (ProjectBlackboardConstants.LAYER__DATA_QUERY, f);
  }
}

the output on the console is:

Filter for Schedule location details is [[ Driver ID = Refuse Team
3 ] AND [ Day = 1 ]]

Which looks ok to me (the filter has definitely parsed ok, since
the above string is not exactly how I created it), but, this has no
effect at all on rendering of the layer.  I still see all the
geometries in the layer in my rendered report, even ones which
don't have matching attributes for 'Driver ID' and 'Day'.

Anything obvious I'm doing wrong?  Any pointers to debugging this?

thanks,

Vince.

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



--
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.12/1098 - Release Date: 29/10/2007 09:28



Back to the top