Package org.geotools.feature.type

Examples of org.geotools.feature.type.AttributeTypeImpl


        // create a new schema without geometries to simulate failure on scanning all the typeNames
        DataStore ds = null;
        try {
            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);
View Full Code Here


        CoordinateReferenceSystem crs = CRS.decode("EPSG:4326");
        builder.setCRS(crs);
   
        GeometryFactory geometryFactory = new GeometryFactory();
   
        AttributeType at = new AttributeTypeImpl(new NameImpl("ID"), String.class,
                false, false, Collections.EMPTY_LIST, null, null);
        builder.add(new AttributeDescriptorImpl(at, new NameImpl("ID"), 0, 1,
                false, null));
   
        GeometryType gt = new GeometryTypeImpl(new NameImpl("GEOMETRY"),
View Full Code Here

TOP

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

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.