Tabnine Logo
StyleAttributeExtractor.getAttributeNames
Code IndexAdd Tabnine to your IDE (free)

How to use
getAttributeNames
method
in
org.geotools.styling.StyleAttributeExtractor

Best Java code snippets using org.geotools.styling.StyleAttributeExtractor.getAttributeNames (Showing top 5 results out of 315)

origin: org.geoserver/gs-wms

private String[] getDynamicProperties(List<Rule> dynamicRules) {
  StyleAttributeExtractor extractor = new StyleAttributeExtractor();
  for (Rule rule : dynamicRules) {
    rule.accept(extractor);
  }
  return extractor.getAttributeNames();
}
origin: org.geotools/gt2-render

String[] ftsAttributes = sae.getAttributeNames();
origin: org.geoserver/wms

/**
 * Checks to make sure that the style passed in can process the FeatureType.
 * 
 * @param style
 *            The style to check
 * @param fType
 *            The source requested.
 * 
 * @throws WmsException
 *             DOCUMENT ME!
 */
private void checkStyle(Style style, SimpleFeatureType fType) throws WmsException {
  StyleAttributeExtractor sae = new StyleAttributeExtractor();
  sae.visit(style);
  String[] styleAttributes = sae.getAttributeNames();
  String attName;
  final int length = styleAttributes.length;
  for (int i = 0; i < length; i++) {
    attName = styleAttributes[i];
    if (fType.getDescriptor(attName) == null) {
      throw new WmsException(
          "The requested Style can not be used with "
              + "this featureType.  The style specifies an attribute of "
              + attName
              + " and the featureType definition is: "
              + fType);
    }
  }
}
origin: org.geotools/gt2-shapefile

Filter filter = query.getFilter();
filter.accept(extractor, null);
String[] filterAttnames = extractor.getAttributeNames();
origin: org.geoserver/wms

String[] styleAttributes = sae.getAttributeNames();
org.geotools.stylingStyleAttributeExtractorgetAttributeNames

Popular methods of StyleAttributeExtractor

  • <init>
  • visit
  • getAttributeNameSet
  • getDefaultGeometryUsed
    reads the read-only-property. See GEOS-469
  • getAttributes
    Returns PropertyNames rather than strings (includes namespace info)
  • clear
  • isUsingDynamincProperties
  • visitCqlExpression
    Handles the special CQL expressions embedded in the style markers since the time

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JOptionPane (javax.swing)
  • Option (scala)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now