Tabnine Logo
FidFilter.addFid
Code IndexAdd Tabnine to your IDE (free)

How to use
addFid
method
in
org.geotools.filter.FidFilter

Best Java code snippets using org.geotools.filter.FidFilter.addFid (Showing top 6 results out of 315)

origin: org.geotools/gt-main

/**
 * Sets the filter attributes.  Called when attributes are encountered by
 * the filter filter.  Puts them in a hash map by thier name and  value.
 *
 * @param atts the attributes to set.
 */
public void setAttributes(Attributes atts) {
  LOGGER.finer("got attribute: " + atts.getLocalName(0) + ", "
    + atts.getValue(0));
  LOGGER.finer("current state: " + curState);
  if (curState.equals("fid")) {
    LOGGER.finer("is a fid");
    ((FidFilter) curFilter).addFid(atts.getValue(0));
    LOGGER.finer("added fid");
  } else {
    for (int i = 0; i < atts.getLength(); i++) {
      this.attributes.put(atts.getLocalName(i), atts.getValue(i));
    }
  }
}
origin: org.geotools/gt2-main

/**
 * Sets the filter attributes.  Called when attributes are encountered by
 * the filter filter.  Puts them in a hash map by thier name and  value.
 *
 * @param atts the attributes to set.
 */
public void setAttributes(Attributes atts) {
  LOGGER.finer("got attribute: " + atts.getLocalName(0) + ", "
    + atts.getValue(0));
  LOGGER.finer("current state: " + curState);
  if (curState.equals("fid")) {
    LOGGER.finer("is a fid");
    ((FidFilter) curFilter).addFid(atts.getValue(0));
    LOGGER.finer("added fid");
  } else {
    for (int i = 0; i < atts.getLength(); i++) {
      this.attributes.put(atts.getLocalName(i), atts.getValue(i));
    }
  }
}
origin: org.geotools/gt2-main

public void visit(FidFilter filter) {
  FidFilter copy = ff.createFidFilter();
  
  String[] fids = filter.getFids();
  for (int i = 0; i < fids.length; i++) {
    copy.addFid(fids[i]);
  }
  
  pages.push(copy);
}
origin: org.geotools/gt2-main

FidFilter fidFilter = FILTER_FACT.createFidFilter();
Element fidElement = (Element) child;
fidFilter.addFid(fidElement.getAttribute("fid"));
      fidFilter.addFid(fidElement.getAttribute("fid"));
origin: org.geotools/gt2-main

create.addFid("road.rd1");
create.addFid("road.rd2");
origin: org.geotools/gt-postgis

private FidFilter getEncodableFilter(Filter unEncodableFilter)
  throws IOException, FactoryRegistryException, IllegalAttributeException {
  // this is very similar to getFidSet - the reason is so that we
  // don't spend time constructing geometries when we don't need
  // to, but we probably could get some better code reuse.
  DefaultQuery query = new DefaultQuery();
  query.setPropertyNames(new String[0]);
  query.setFilter(unEncodableFilter);
  SimpleFeatureCollection features = getFeatures(unEncodableFilter);
  FilterFactory ff = FilterFactoryFinder.createFilterFactory();
  FidFilter fidFilter = ff.createFidFilter();
  SimpleFeatureIterator it = features.features();
  try {
    while( it.hasNext() ) {
      SimpleFeature feature = (SimpleFeature) it.next();
      fidFilter.addFid(feature.getID());
    }
  } finally {
   features.close( it );  
  }
  return fidFilter;
}
org.geotools.filterFidFilteraddFid

Javadoc

Adds a feature ID to the filter.

Popular methods of FidFilter

  • getFids
    Returns all the fids in this filter.
  • addAllFids
    Adds a collection of feature IDs to the filter.
  • getIDs

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Join (org.hibernate.mapping)
  • Top plugins for WebStorm
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