private static FeatureTypeFactory getTypeFactory() { if (typeFactory == null) typeFactory = new FeatureTypeFactoryImpl(); // CommonFactoryFinder.getFeatureTypeFactory(null); return typeFactory; }
protected void setUp() throws Exception { Schema schema = new SchemaImpl("test"); FeatureTypeFactoryImpl typeFactory = new FeatureTypeFactoryImpl(); AttributeType pointType = typeFactory.createGeometryType( new NameImpl("test", "pointType"), Point.class, null, false, false, Collections.EMPTY_LIST, null, null); schema.put(new NameImpl("test", "pointType"), pointType); AttributeType intType = typeFactory.createAttributeType( new NameImpl("test", "intType"), Integer.class, false, false, Collections.EMPTY_LIST, null, null); schema.put(new NameImpl("test", "intType"), intType); builder = new SimpleFeatureTypeBuilder(new FeatureTypeFactoryImpl()); builder.setBindings(schema); }
String defGeomLocalName = ComplexFeatureConstants.DEFAULT_GEOMETRY_LOCAL_NAME; GeometryDescriptor defGeom = ftf.createGeometryDescriptor( geom.getType(), new NameImpl(defGeomNamespace, defGeomLocalName), ftf.createFeatureType( type.getName(), descriptors,
FeatureTypeFactoryImpl typeFactory = new FeatureTypeFactoryImpl(); SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder(typeFactory); builder.addBinding( typeFactory.createGeometryType( new NameImpl(uri, "description"), String.class, null)); builder.addBinding( typeFactory.createGeometryType( new NameImpl(uri, "location"), Point.class, null)); builder.addBinding( typeFactory.createAttributeType( new NameImpl(uri, "count"), Integer.class,
/** Constructs the builder. */ public SimpleFeatureTypeBuilder() { this(new FeatureTypeFactoryImpl()); }
public SchemaGenerator(XSDSchema schema) { this.schema = schema; this.factory = new FeatureTypeFactoryImpl(); types = new HashMap<XSDTypeDefinition,AttributeType>(); simpleTypes = true; complexTypes = true; followComplexTypes = true; imports = new TreeMap<String,Schema>(); includes = new HashSet<String>(); }
public WFSDataStore(final WFSClient client) { this.client = client; this.names = new ConcurrentHashMap<Name, QName>(); this.remoteFeatureTypes = new ConcurrentHashMap<QName, FeatureType>(); this.storedQueryDescriptionTypes = new ConcurrentHashMap<String, StoredQueryDescriptionType>(); this.storedQueryDescriptionTypesLock = new ReentrantReadWriteLock(); // default factories setFilterFactory(CommonFactoryFinder.getFilterFactory(null)); setGeometryFactory(new GeometryFactory(PackedCoordinateSequenceFactory.DOUBLE_FACTORY)); setFeatureTypeFactory(new FeatureTypeFactoryImpl()); setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null)); }
public PropertyDataStore(File dir, String namespaceURI) { if (!dir.isDirectory()) { throw new IllegalArgumentException(dir + " is not a directory"); } if (namespaceURI == null) { namespaceURI = dir.getName(); } this.dir = dir; setNamespaceURI(namespaceURI); // factories setFilterFactory(CommonFactoryFinder.getFilterFactory(null)); setGeometryFactory(new GeometryFactory()); setFeatureTypeFactory(new FeatureTypeFactoryImpl()); setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null)); } // constructor end
private static FeatureTypeFactory getTypeFactory() { if(typeFactory == null) typeFactory = new FeatureTypeFactoryImpl(); // CommonFactoryFinder.getFeatureTypeFactory(null); return typeFactory; }
/** * Constructs the builder. */ public SimpleFeatureTypeBuilder() { this( new FeatureTypeFactoryImpl() ); }
/** * Constructs the builder. * */ public AttributeTypeBuilder() { this( new FeatureTypeFactoryImpl() ); init(); }
dataStore.setFeatureTypeFactory(new FeatureTypeFactoryImpl()); dataStore.setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null)); dataStore.setDataStoreFactory(this);
dataStore.setGeometryFactory( new GeometryFactory(PackedCoordinateSequenceFactory.DOUBLE_FACTORY)); dataStore.setFeatureTypeFactory(new FeatureTypeFactoryImpl()); dataStore.setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null)); dataStore.setDataStoreFactory(this);
public WFSDataStore(final WFSClient client) { this.client = client; this.names = new ConcurrentHashMap<Name, QName>(); this.remoteFeatureTypes = new ConcurrentHashMap<QName, FeatureType>(); this.storedQueryDescriptionTypes = new ConcurrentHashMap<String, StoredQueryDescriptionType>(); this.storedQueryDescriptionTypesLock = new ReentrantReadWriteLock(); // default factories setFilterFactory(CommonFactoryFinder.getFilterFactory(null)); setGeometryFactory(new GeometryFactory(PackedCoordinateSequenceFactory.DOUBLE_FACTORY)); setFeatureTypeFactory(new FeatureTypeFactoryImpl()); setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null)); }
store.setFeatureTypeFactory(new FeatureTypeFactoryImpl()); store.setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null)); return store;
public FeatureType getFeatureType() { FeatureType ft = delegate.getFeatureType(); FeatureTypeFactory factory = new FeatureTypeFactoryImpl(); FeatureType gsft = factory.createFeatureType(new NameImpl(GS_NAMESPACE, "Record"), ft.getDescriptors(), null, false, null, ft.getSuper(), null); return gsft; }
dataStore.setFeatureTypeFactory(new FeatureTypeFactoryImpl()); dataStore.setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null));
dataStore.setFeatureTypeFactory(new FeatureTypeFactoryImpl()); dataStore.setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null)); dataStore.setDataStoreFactory(this);
dataStore.setGeometryFactory( new GeometryFactory(PackedCoordinateSequenceFactory.DOUBLE_FACTORY)); dataStore.setFeatureTypeFactory(new FeatureTypeFactoryImpl()); dataStore.setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null)); dataStore.setDataStoreFactory(this);