public SimpleFeatureType getSchema(String typeName) throws IOException { // look for type name String typeSpec = property(typeName, "_"); try { return DataUtilities.createType(namespaceURI, typeName, typeSpec); } catch (SchemaException e) { e.printStackTrace(); throw new DataSourceException(typeName + " schema not available", e); } }
public FeatureType getSchema(String typeName) throws IOException { //look for type name String typeSpec = property( typeName, "_"); try { return DataUtilities.createType( namespaceURI+"."+typeName,typeSpec ); } catch (SchemaException e) { e.printStackTrace(); throw new DataSourceException( typeName+" schema not available", e); } } // END SNIPPET: getSchema
public FeatureType getSchema(String typeName) throws IOException { //look for a defined namespace String namespace = property( typeName, "namespace" ); if ( namespace == null ) { namespace = directory.getName(); } //look for type name String typeSpec = property( typeName, "_"); try { return DataUtilities.createType( namespace+"."+typeName,typeSpec ); } catch (SchemaException e) { e.printStackTrace(); throw new DataSourceException( typeName+" schema not available", e); } } // END SNIPPET: getSchema
ex.printStackTrace(); } catch (SchemaException ex) { ex.printStackTrace(); } catch (IllegalAttributeException ex) { ex.printStackTrace();
featureType = DataUtilities.createType("memory", "geom:Geometry"); } catch (SchemaException se) { se.printStackTrace(); featureType = DataUtilities.createType("memory", "geom:Point"); } catch (SchemaException se) { se.printStackTrace();