FeatureType ft = lookupFeatureType( xmlStream, featureName, true );
/** * Returns a {@link StreamFeatureCollection} that allows stream-based access to the members of the feature * collection that the cursor of the given <code>XMLStreamReader</code> points at. * * @param xmlStream * cursor must point at the <code>START_ELEMENT</code> event of a feature collection element * @param crs * default CRS for all descendant geometry properties, can be <code>null</code> * @return * @throws XMLStreamException */ public StreamFeatureCollection getFeatureStream( XMLStreamReaderWrapper xmlStream, ICRS crs ) throws XMLStreamException { if ( schema == null ) { schema = buildAppSchema( xmlStream ); gmlStreamReader.setApplicationSchema( schema ); } String fid = parseFeatureId( xmlStream ); QName featureName = xmlStream.getName(); FeatureCollectionType ft = (FeatureCollectionType) lookupFeatureType( xmlStream, featureName, true ); return new StreamFeatureCollection( fid, ft, this, xmlStream, crs ); }
FeatureType ft = lookupFeatureType( xmlStream, featureName, false ); if ( ft == null ) { LOG.debug( "- adding feature type '" + featureName + "'" );