@Override public void init() { featureType = DbFeatureUtils.determineFeatureType( ftName, connProvider, lods.values().iterator().next() ); if ( featureType == null ) { available = false; } else { schema = new GenericAppSchema( new FeatureType[] { featureType }, null, null, null, null, null ); available = true; } }
static FeatureType buildFeatureType() { List<PropertyType> pts = new LinkedList<PropertyType>(); pts.add( new SimplePropertyType( new QName( "http://www.deegree.org/app", "value", "app" ), 0, -1, DECIMAL, null, null ) ); FeatureType featureType = new GenericFeatureType( new QName( "http://www.deegree.org/app", "data", "app" ), pts, false ); // needed to get the back reference to the schema into the featureType (it's a strange mechanism indeed) new GenericAppSchema( new FeatureType[] { featureType }, null, null, null, null, null ); return featureType; }
typeNameToType.put( type.getName(), type ); return new GenericAppSchema( fts, ftSubstitution, prefixToNs, gmlSchema, genericGmlObjectTypes, typeToSuperType );
schema = new GenericAppSchema( new FeatureType[] { ft }, null, null, null, null, null ); dbfLastModified = dbfFile.lastModified(); cache.clear();
ft = new GenericFeatureType( ftName, Collections.<PropertyType> singletonList( geomProp ), false ); schema = new GenericAppSchema( new FeatureType[] { ft }, null, null, null, null, null );