Package org.geotools.feature.simple

Examples of org.geotools.feature.simple.SimpleFeatureTypeImpl


        MemoryDataStore memDS = new MemoryDataStore();

        List<AttributeDescriptor> attrs = new ArrayList<AttributeDescriptor>();
        attrs.addAll(typ.getAttributeDescriptors());

        SimpleFeatureTypeImpl sft = new SimpleFeatureTypeImpl(new NameImpl(fname), attrs, typ
                .getGeometryDescriptor(), typ.isAbstract(), typ.getRestrictions(), typ.getSuper(),
                typ.getDescription());

        memDS.createSchema(sft);
        REPOSITORY.register(name, memDS);
View Full Code Here


        GeometryDescriptorImpl geom2Descr = new GeometryDescriptorImpl(typ.getGeometryDescriptor()
                .getType(), new NameImpl("the_geom2"), typ.getGeometryDescriptor().getMinOccurs(),
                typ.getGeometryDescriptor().getMaxOccurs(), typ.getGeometryDescriptor()
                        .isNillable(), typ.getGeometryDescriptor().getDefaultValue());
        attrs.add(geom2Descr);
        SimpleFeatureTypeImpl sft = new SimpleFeatureTypeImpl(new NameImpl(fname), attrs, typ
                .getGeometryDescriptor(), typ.isAbstract(), typ.getRestrictions(), typ.getSuper(),
                typ.getDescription());

        memDS.createSchema(sft);
        REPOSITORY.register(name, memDS);
View Full Code Here

                new NameImpl("the_geom50"), typ.getGeometryDescriptor().getMinOccurs(), typ
                        .getGeometryDescriptor().getMaxOccurs(), typ.getGeometryDescriptor()
                        .isNillable(), typ.getGeometryDescriptor().getDefaultValue());
        attrs.add(geom2Descr);

        SimpleFeatureTypeImpl sft = new SimpleFeatureTypeImpl(new NameImpl(fname), attrs, typ
                .getGeometryDescriptor(), typ.isAbstract(), typ.getRestrictions(), typ.getSuper(),
                typ.getDescription());

        memDS.createSchema(sft);
        REPOSITORY.register(name, memDS);
View Full Code Here

        schema.add(new AttributeDescriptorImpl(XSSchema.DOUBLE_TYPE, Types.typeName("pointOne"), 0,
                1, false, null));
        schema.add(new AttributeDescriptorImpl(XSSchema.DOUBLE_TYPE, Types.typeName("pointTwo"), 0,
                1, false, null));

        SimpleFeatureType type = new SimpleFeatureTypeImpl(Types.typeName("GeometryContainer"),
                schema, null, false, null, GMLSchema.ABSTRACTFEATURETYPE_TYPE, null);
        feature = SimpleFeatureBuilder.build(type, new Object[] { 5.0, 2.5 }, null);
        pointOne = ff.property("pointOne");
        pointTwo = ff.property("pointTwo");
    }
View Full Code Here

          List<AttributeDescriptor> schema,
          GeometryDescriptor defaultGeometry, boolean isAbstract,
          List<Filter> restrictions, AttributeType superType,
          InternationalString description) {
     
      return new SimpleFeatureTypeImpl(name,schema,defaultGeometry,isAbstract,
            restrictions,superType,description);
  }
View Full Code Here

            ds = new PostgisNGDataStoreFactory().createDataStore(params);
            final List<AttributeDescriptor> schema = new ArrayList<AttributeDescriptor>();
            schema.add(new AttributeDescriptorImpl(new AttributeTypeImpl(new NameImpl("name"),
                    String.class, false, false, null, null, null), new NameImpl("name"), 0, 0,
                    true, ""));
            SimpleFeatureType featureType = new SimpleFeatureTypeImpl(new NameImpl(noGeomFirst),
                    schema, null, false, null, null, null);
            ds.createSchema(featureType);
            featureType = new SimpleFeatureTypeImpl(new NameImpl(noGeomLast), schema, null, false,
                    null, null, null);
            ds.createSchema(featureType);
        } finally {
            if (ds != null) {
                ds.dispose();
View Full Code Here

    final FeatureDataAdapter adapter = getStatsAdapter(typeName);
    if (adapter != null) {
      final SimpleFeatureType type = adapter.getType();
      final String nameSpace = featureNameSpaceURI != null ? featureNameSpaceURI.toString() : type.getName().getNamespaceURI();

      return new SimpleFeatureTypeImpl(
          new NameImpl(
              nameSpace,
              type.getName().getSeparator(),
              typeName),
          type.getAttributeDescriptors(),
View Full Code Here

TOP

Related Classes of org.geotools.feature.simple.SimpleFeatureTypeImpl

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.