Package org.geotools.feature.type

Examples of org.geotools.feature.type.FeatureTypeFactoryImpl


 
  /**
   * Constructs the builder.
   */
  public SimpleFeatureTypeBuilder() {
    this( new FeatureTypeFactoryImpl() );
  }
View Full Code Here


  /**
   * Constructs the builder.
   *
   */
    public AttributeTypeBuilder() {
    this( new FeatureTypeFactoryImpl() );
    init();
   
  }
View Full Code Here

        setNamespaceURI(namespaceURI);
        //
        // factories
        setFilterFactory(CommonFactoryFinder.getFilterFactory(null));
        setGeometryFactory(new GeometryFactory());
        setFeatureTypeFactory(new FeatureTypeFactoryImpl());
        setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null));
    }
View Full Code Here

  SimpleFeatureTypeBuilder builder;
 
  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);
  }
View Full Code Here

     * @return a simple feature type builder that is ready for the addition of location and count
     *         properties
     */
    private SimpleFeatureTypeBuilder buildPartialBuilder() {
        String uri = "http://example.org/things";
        FeatureTypeFactoryImpl typeFactory = new FeatureTypeFactoryImpl();
        SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder(typeFactory);
        builder.addBinding(typeFactory.createGeometryType(new NameImpl(uri, "description"),
                String.class, null, false, false, Collections.EMPTY_LIST, null, null));
        builder.addBinding(typeFactory.createGeometryType(new NameImpl(uri, "location"),
                Point.class, null, false, false, Collections.EMPTY_LIST, null, null));
        builder.addBinding(typeFactory.createAttributeType(new NameImpl(uri, "count"),
                Integer.class, false, false, Collections.EMPTY_LIST, null, null));
        builder.setName("ThingsType");
        builder.setNamespaceURI(uri);
        builder.add("description", String.class);
        return builder;
View Full Code Here

        WFSDataStore dataStore = new WFSDataStore(wfsClient);
        // factories
        dataStore.setFilterFactory(CommonFactoryFinder.getFilterFactory(null));
        dataStore.setGeometryFactory(new GeometryFactory(
                PackedCoordinateSequenceFactory.DOUBLE_FACTORY));
        dataStore.setFeatureTypeFactory(new FeatureTypeFactoryImpl());
        dataStore.setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null));
        dataStore.setDataStoreFactory(this);
        dataStore.setNamespaceURI(config.getNamespaceOverride());

        return dataStore;
View Full Code Here

        this.remoteFeatureTypes = new ConcurrentHashMap<QName, FeatureType>();

        // default factories
        setFilterFactory(CommonFactoryFinder.getFilterFactory(null));
        setGeometryFactory(new GeometryFactory(PackedCoordinateSequenceFactory.DOUBLE_FACTORY));
        setFeatureTypeFactory(new FeatureTypeFactoryImpl());
        setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null));
    }
View Full Code Here

     */
    Logger logger = org.geotools.util.logging.Logging.getLogger("org.geotools.xml");

    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>();
View Full Code Here

   
    @Test
    public void encodeInsert() throws IOException, SAXException, TransformerException, XpathException{
        WfsFactory wfsfac = WfsFactory.eINSTANCE;
        FeatureFactory ff = CommonFactoryFinder.getFeatureFactory(null);
        FeatureTypeFactory ftf = new FeatureTypeFactoryImpl();
       
        AttributeDescriptor ad = ftf.createAttributeDescriptor(XSSchema.STRING_TYPE, new NameImpl("dummyAttribute"), 0, 1, true, null);
        SimpleFeatureType ft = ftf.createSimpleFeatureType(new NameImpl("dummyFeatureType"), Collections.singletonList(ad), null, false, null, null, null);
        SimpleFeature feature = ff.createSimpleFeature(new Object[] {"dummyValue"}, ft, "dummyId");
       
        InsertElementType insert = wfsfac.createInsertElementType();
        insert.getFeature().add(feature);       
       
View Full Code Here

        }
       
        // factories
        dataStore.setFilterFactory(CommonFactoryFinder.getFilterFactory(null));
        dataStore.setGeometryFactory(new GeometryFactory());
        dataStore.setFeatureTypeFactory(new FeatureTypeFactoryImpl());
        dataStore.setFeatureFactory(CommonFactoryFinder.getFeatureFactory(null));
        dataStore.setDataStoreFactory(this);
       
        //call subclass hook and return
        JDBCDataStore result = createDataStoreInternal(dataStore, params);
View Full Code Here

TOP

Related Classes of org.geotools.feature.type.FeatureTypeFactoryImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.