@Override public FeatureType[] getRootFeatureTypes() { return getFeatureTypes(); }
private static FeatureCollection readGml2FeatureCollection( XMLStreamReader xmlReader ) throws XMLStreamException, XMLParsingException, UnknownCRSException { GMLStreamReader reader = createGMLStreamReader( GML_2, xmlReader ); reader.setApplicationSchema( new DynamicAppSchema() ); return reader.readFeatureCollection(); }
if ( ft == null ) { LOG.debug( "- adding feature type '" + featureName + "'" ); ft = appSchema.addFeatureType( featureName ); } else { LOG.debug( "- found feature type '" + featureName + "'" );
if ( schemaLocation == null ) { LOG.warn( Messages.getMessage( "NO_SCHEMA_LOCATION", xmlStream.getSystemId() ) ); return new DynamicAppSchema(); if ( tokens.length % 2 != 0 ) { LOG.warn( Messages.getMessage( "ERROR_SCHEMA_LOCATION_TOKENS_COUNT", xmlStream.getSystemId() ) ); return new DynamicAppSchema(); return new DynamicAppSchema(); } catch ( Throwable t ) { LOG.warn( Messages.getMessage( "BROKEN_SCHEMA", xmlStream.getSystemId(), t.getMessage() ), t ); return new DynamicAppSchema();
FeatureType valueFt = schema.getFeatureType( childElName ); if ( valueFt == null ) { valueFt = appSchema.addFeatureType( childElName );