Package org.geotools.data

Examples of org.geotools.data.ReTypeFeatureReader


                    .getFilters().getGeometryFilter());
        }

        if (!targetSchema.equals(reader.getFeatureType())) {
            LOGGER.fine("Recasting feature type to subtype by using a ReTypeFeatureReader");
            reader = new ReTypeFeatureReader(reader, targetSchema, false);
        }

        if (query.getMaxFeatures() != Query.DEFAULT_MAX) {
            reader = new MaxFeatureReader<SimpleFeatureType, SimpleFeature>(reader,
                    query.getMaxFeatures());
View Full Code Here


      if (this.reproject != null){
          newfr = new ReprojectFeatureReader(newfr, (SimpleFeatureType) featureType, this.reproject);
      }
      //creates a re-type feature reader
      if (this.newFeatureType != null && !this.newFeatureType.equals(this.featureType)){
        newfr = new ReTypeFeatureReader(newfr, (SimpleFeatureType)this.newFeatureType);
      }
      return newfr;
  }
View Full Code Here

            // do we have to post-filter?
            if (!filterTx.isFilterFullySupported()) {
                reader = new FilteringFeatureReader<SimpleFeatureType, SimpleFeature>(reader,
                        filterTx.getPostFilter());
                if (targetSchema != querySchema) {
                    reader = new ReTypeFeatureReader(reader, targetSchema);
                }
            }

            return reader;
        } finally {
View Full Code Here

        }

        // do the retyping
        if(!FeatureTypes.equals(readSchema, resultSchema)) {
           return new ReTypeFeatureReader(reader, resultSchema);
        } else {
            return reader;
        }
    }
View Full Code Here

            reader = new SolrFeatureReader(querySchema, store.getSolrServer(), q, store);
            if (postFilter != null && postFilter != Filter.INCLUDE) {
                reader = new FilteringFeatureReader<SimpleFeatureType, SimpleFeature>(reader,
                        postFilter);
                if (!returnedSchema.equals(querySchema))
                    reader = new ReTypeFeatureReader(reader, returnedSchema);
            }
        } catch (Throwable e) {
            if (e instanceof Error) {
                throw (Error) e;
            } else {
View Full Code Here

                    SimpleFeatureTypeBuilder.retype(getSchema(), query.getPropertyNames());
               
                // do an equals check because we may have needlessly retyped (that is,
                // the subclass might be able to only partially retype)
                if ( !target.equals( reader.getFeatureType() ) ) {
                    reader = new ReTypeFeatureReader( reader, target, false );   
                }
            }
        }
       
        // sorting
View Full Code Here

                    postFilter);
        }

        if (!contentType.equals(readerType)) {
            final boolean cloneContents = false;
            reader = new ReTypeFeatureReader(reader, contentType, cloneContents);
        }

        if (this.maxFeaturesHardLimit.intValue() > 0 || query.getMaxFeatures() != Integer.MAX_VALUE) {
            int maxFeatures = maxFeaturesHardLimit.intValue() > 0 ? Math.min(
                    maxFeaturesHardLimit.intValue(), query.getMaxFeatures()) : query
View Full Code Here

        WFSFeatureReader ft = WFSFeatureReader
                .getFeatureReader(is, bufferSize, timeout, ts, schema);

        if (!featureType.equals(ft.getFeatureType())) {
            LOGGER.fine("Recasting feature type to subtype by using a ReTypeFeatureReader");
            return new ReTypeFeatureReader(ft, featureType, false);
        } else
            return ft;

    }
View Full Code Here

        WFSFeatureReader ft = WFSFeatureReader
                .getFeatureReader(is, bufferSize, timeout, ts, schema);

        if (!featureType.equals(ft.getFeatureType())) {
            LOGGER.fine("Recasting feature type to subtype by using a ReTypeFeatureReader");
            return new ReTypeFeatureReader(ft, featureType, false);
        } else
            return ft;
    }
View Full Code Here

        }

        final SimpleFeatureType readerType = reader.getFeatureType();
        if (!destType.equals(readerType)) {
            final boolean cloneContents = false;
            reader = new ReTypeFeatureReader(reader, destType, cloneContents);
        }
       
        reader = applyReprojectionDecorator(reader, localQuery, request);

        Transaction transaction = getTransaction();
View Full Code Here

TOP

Related Classes of org.geotools.data.ReTypeFeatureReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.