congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FidFilter.getFids
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.geotools/gt2-shapefile

public void visit(FidFilter filter) {
  fids.addAll(Arrays.asList(filter.getFids()));
}
origin: org.geotools/gt2-main

protected void queryFidFilter() {
  FidFilter fidFilter = (FidFilter) filter;
  if (fidIndex == -1) {
    fidIndex = 0;
  }
  while( fidIndex < fidFilter.getFids().length && next == null ) {
    String fid = fidFilter.getFids()[fidIndex];
    if( encounteredFids.contains(fid) ){
      fidIndex++;
      continue;
    }
    next = (Feature) diff.modified2.get(fid);
    if( next==null ){
      next = (Feature) diff.added.get(fid);
    }
    fidIndex++;
  }
}

origin: org.geotools/gt2-main

public void visit(org.geotools.filter.FidFilter filter) {
  String[] fids = filter.getFids();
  
  for (int i = 0; i < fids.length; i++) {
    AttributesImpl atts = new AttributesImpl();
    atts.addAttribute("", "fid", "fid", "", fids[i]);
    element("FeatureId",null,atts);
  }
}

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/gt-oracle-spatial

String[] fids = filter.getFids();
LOGGER.finer("Exporting FID=" + Arrays.asList(fids));
origin: org.geotools/gt-jdbc

String[] fids = filter.getFids();
LOGGER.finer("Exporting FID=" + Arrays.asList(fids));
origin: org.geotools/gt2-jdbc

String[] fids = filter.getFids();
LOGGER.finer("Exporting FID=" + Arrays.asList(fids));
origin: org.geotools/gt-wfs

/**
 * @see org.geotools.xml.schema.Type#getValue(org.geotools.xml.schema.Element,
 *      org.geotools.xml.schema.ElementValue[],
 *      org.xml.sax.Attributes, java.util.Map)
 */
public Object getValue(Element element, ElementValue[] value,
  Attributes attrs1, Map hints)
  throws SAXException, SAXNotSupportedException {
  if ((element == null) || (value == null)
      || (element.getType() == null)) {
    throw new SAXException("Invalid parameters : null found");
  }
  if (value.length < 1) {
    throw new SAXException("Invalid children: too few");
  }
  if (!getName().equals(element.getType().getName())) {
    throw new SAXException("Invalid type name for element provided");
  }
  List fidList = new ArrayList();
  for (int i = 0; i < value.length; i++)
    fidList.addAll(Arrays.asList(
        ((FidFilter) value[i].getValue()).getFids()));
  return fidList;
}
origin: org.geotools/gt-wfs

/**
 * @see org.geotools.xml.schema.Type#getValue(org.geotools.xml.schema.Element,
 *      org.geotools.xml.schema.ElementValue[],
 *      org.xml.sax.Attributes, java.util.Map)
 */
public Object getValue(Element element, ElementValue[] value,
  Attributes attrs, Map hints)
  throws SAXException, SAXNotSupportedException {
  if ((element == null) || (value == null)
      || (element.getType() == null)) {
    throw new SAXException("Invalid parameters : null found");
  }
  if (value.length < 1) {
    throw new SAXException("Invalid children: too few");
  }
  if (!getName().equals(element.getType().getName())) {
    throw new SAXException("Invalid type name for element provided");
  }
  Set fidSet = new HashSet();
  for (int i = 0; i < value.length; i++)
    fidSet.addAll(Arrays.asList(
        ((FidFilter) value[i].getValue()).getFids()));
  FidFilter r = FilterFactoryFinder.createFilterFactory().createFidFilter();
  r.addAllFids(fidSet);
  return r;
}
origin: org.geotools/gt-wfs

/**
 * @see org.geotools.xml.schema.Type#getValue(org.geotools.xml.schema.Element,
 *      org.geotools.xml.schema.ElementValue[],
 *      org.xml.sax.Attributes, java.util.Map)
 */
public Object getValue(Element element, ElementValue[] value,
  Attributes attrs, Map hints)
  throws SAXException, SAXNotSupportedException {
  if ((element == null) || (value == null)
      || (element.getType() == null)) {
    throw new SAXException("Invalid parameters : null found");
  }
  if (value.length < 1) {
    throw new SAXException("Invalid children: too few");
  }
  if (!getName().equals(element.getType().getName())) {
    throw new SAXException("Invalid type name for element provided");
  }
  Set fidSet = new HashSet();
  for (int i = 0; i < value.length; i++)
    fidSet.addAll(Arrays.asList(
        ((FidFilter) value[i].getValue()).getFids()));
  FidFilter r = FilterFactoryFinder.createFilterFactory().createFidFilter();
  r.addAllFids(fidSet);
  return r;
}
origin: org.geotools/gt-wfs

private void handleDeleteAction(List<Action> actions, int i, InsertAction action,
    DeleteAction deleteAction) {
  // if inserted action has been deleted then remove action
  if (deleteAction.getFilter().evaluate(action.getFeature())) {
    actions.remove(i);
    // if filter is a fid filter of size 1 then it only contains the
    // inserted feature which
    // no longer exists since it has been deleted. so remove that action
    // as well.
    if (deleteAction.getFilter() instanceof FidFilter
        && ((FidFilter) deleteAction.getFilter()).getFids().length == 1) {
      actions.remove(i);
    }
  } else {
    swap(actions, i);
  }
}
origin: org.geotools/gt-wfs

private int handleUpdateAction(List<Action> actions, int i, InsertAction action,
    UpdateAction updateAction) {
  // if update action applies to feature then update feature
  if (updateAction.getFilter().evaluate(action.getFeature())) {
    updateAction.update(action.getFeature());
    // if filter is a fid filter and there is only 1 fid then filter
    // uniquely identifies
    // only the
    // one features so remove it.
    if (updateAction.getFilter() instanceof FidFilter
        && ((FidFilter) updateAction.getFilter()).getFids().length == 1) {
      actions.remove(i + 1);
      return i;
    }
  }
  swap(actions, i);
  return i + 1;
}
origin: org.geotools/gt2-shapefile

if (filter instanceof FidFilter && fixURL!=null ) {
  FidFilter fidFilter = (FidFilter) filter;
  goodRecs = queryFidIndex(fidFilter.getFids());
} else {
  if (filter != null) {
org.geotools.filterFidFiltergetFids

Javadoc

Returns all the fids in this filter.

Popular methods of FidFilter

  • addFid
    Adds a feature ID to the filter.
  • addAllFids
    Adds a collection of feature IDs to the filter.
  • getIDs

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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