Skip to main content
Archived

Add options to webmap tiler

Related products:Transformers
  • November 27, 2017
  • 1 reply
  • 29 views

Would it be possible to add an option to filter out tiles that have only 0 or 255 values in it? I have been doing this with list range extractor, but I can only able to find tiles that have all 0 or 255 values, not ones that have all 0 or 255 values. It would be great to have this happen within the webmap tiler saving other steps in the chain.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

paalped
Contributor
Forum|alt.badge.img+5
  • Contributor
  • December 7, 2017
import fme import fmeobjects # Template Function interface: # When using this function, make sure its name is set as the value of # the 'Class or Function to Process Features' transformer parameter def processFeature(feature): pass # Template Class Interface: # When using this class, make sure its name is set as the value of # the 'Class or Function to Process Features' transformer parameter class FeatureProcessor(object): def __init__(self): pass def input(self,feature): self.val = sum([int(i) for i in feature.getAttribute('_label').split(',')[:3]]) if self.val != 0 and self.val != 765: self.pyoutput(feature) def close(self): pass

This script is used with the RasterToPolygonCoercer