Class FeatureQuery

java.lang.Object
dev.avelar.mapnik.FeatureQuery

public final class FeatureQuery extends Object
What to ask a Datasource for: an area, optionally a resolution, scale and attribute list.
  • Method Details

    • within

      public static FeatureQuery within(Box2d bbox)
      Features whose bounding box touches bbox, in the datasource's projection.
    • resolution

      public FeatureQuery resolution(double x, double y)
      Pixels per map unit on each axis. Some datasources use it to simplify geometry.
    • scaleDenominator

      public FeatureQuery scaleDenominator(double scaleDenominator)
    • properties

      public FeatureQuery properties(String... names)
      Only read these attributes. By default a datasource may return none or all, depending on the plugin.
    • properties

      public FeatureQuery properties(Collection<String> names)