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

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

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

origin: org.geotools/gt2-render

if (sae.getDefaultGeometryUsed()
    && (!atts.contains(schema.getDefaultGeometry().getName()))) {
  atts.add(schema.getDefaultGeometry().getName());
origin: org.geotools/gt-shapefile-renderer

/**
 * Inspects the <code>MapLayer</code>'s style and retrieves it's needed attribute names,
 * returning at least the default geometry attribute name.
 * 
 * @param query DOCUMENT ME!
 * @param style the <code>Style</code> to determine the needed attributes from
 * @param schema the SimpleFeatureSource schema
 * @return the minimun set of attribute names needed to render <code>layer</code>
 */
private String[] findStyleAttributes( final Query query, Style style, SimpleFeatureType schema ) {
  StyleAttributeExtractor sae = new StyleAttributeExtractor();
  sae.visit(style);
  
  FilterAttributeExtractor qae = new FilterAttributeExtractor();
  query.getFilter().accept(qae,null);
  Set ftsAttributes = new LinkedHashSet(sae.getAttributeNameSet());
  ftsAttributes.addAll(qae.getAttributeNameSet());
  if (sae.getDefaultGeometryUsed()
      && (!ftsAttributes.contains(schema.getGeometryDescriptor().getLocalName()))) {
    ftsAttributes.add(schema.getGeometryDescriptor().getLocalName());
  } else {
    // the code following assumes the geometry column is the last one
    // make sure it's the last for good
    ftsAttributes.remove(schema.getGeometryDescriptor().getLocalName());
    ftsAttributes.add(schema.getGeometryDescriptor().getLocalName());
  }
  return (String[]) ftsAttributes.toArray(new String[0]);
}
origin: org.geotools/gt-render

if (sae.getDefaultGeometryUsed()
    && (!attributeNames.contains(schema.getGeometryDescriptor().getName().toString()))
    ) {
org.geotools.stylingStyleAttributeExtractorgetDefaultGeometryUsed

Javadoc

reads the read-only-property. See GEOS-469

Popular methods of StyleAttributeExtractor

  • <init>
  • visit
  • getAttributeNameSet
  • getAttributeNames
  • 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

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best IntelliJ 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