Examples of buildFeatureType()


Examples of org.geoserver.catalog.CatalogBuilder.buildFeatureType()

               
                FeatureSource fs = ds.getFeatureSource(featureTypeNames[i]);
                FeatureTypeInfo ftinfo = null;
                if ( add ) {
                    //auto configure the feature type as well
                    ftinfo = builder.buildFeatureType(fs);
                    builder.lookupSRS(ftinfo, true);
                    builder.setupBounds(ftinfo);
                }
                else {
                    ftinfo = catalog.getFeatureTypeByName( namespace.getPrefix(), featureTypeNames[i] );
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType()

    builder.add(STYLE_INDEX_ATTRIBUTE_NAME, Integer.class);
    // add the geometry attribute
    GeometryAttributeInfo geom = info.getFeatureInfo().getGeometryType();
    builder.add(geom.getName(), dtoConverterService.toInternal(info.getLayerType()), mapCrs);
    builder.setDefaultGeometry(geom.getName());
    return builder.buildFeatureType();
  }

  private VectorLayerRasterizingInfo cloneInfo(VectorLayerRasterizingInfo input) throws GeomajasException {
    try {
      JBossObjectOutputStream jbossSerializer = new JBossObjectOutputStream(null);
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType()

      }
    }
    builder.add(vectorLayerInfo.getFeatureInfo().getGeometryType().getName(), Geometry.class);
    builder.setDefaultGeometry(vectorLayerInfo.getFeatureInfo().getGeometryType().getName());

    return builder.buildFeatureType();
  }
}
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType()

        b.setCRS(mapCrs);
        b.add("the_geom", Point.class); //$NON-NLS-1$
        for( String fieldName : GEOPAPARAZZI_NOTES_DESCRIPTIONFIELDS ) {
            b.add(fieldName, String.class);
        }
        SimpleFeatureType featureType = b.buildFeatureType();
        MathTransform transform = CRS.findMathTransform(DefaultGeographicCRS.WGS84, mapCrs);
        pm.beginTask("Import notes...", IProgressMonitor.UNKNOWN);
        DefaultFeatureCollection newCollection = new DefaultFeatureCollection();

        Statement statement = null;
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType()

        b.setCRS(mapCrs);
        b.add("the_geom", MultiLineString.class);
        b.add("STARTDATE", String.class);
        b.add("ENDDATE", String.class);
        b.add("DESCR", String.class);
        SimpleFeatureType featureType = b.buildFeatureType();

        try {
            MathTransform transform = CRS.findMathTransform(DefaultGeographicCRS.WGS84, mapCrs);
            pm.beginTask("Import gps to lines...", logsList.size());
            DefaultFeatureCollection newCollection = new DefaultFeatureCollection();
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType()

        b.setName("geopaparazzinotes");
        b.setCRS(mapCrs);
        b.add("the_geom", Point.class);
        b.add("ALTIMETRY", String.class);
        b.add("DATE", String.class);
        featureType = b.buildFeatureType();

        try {
            MathTransform transform = CRS.findMathTransform(DefaultGeographicCRS.WGS84, mapCrs);

            pm.beginTask("Import gps to points...", logsList.size());
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType()

            b.add("the_geom", Point.class);
            b.add("ALTIMETRY", String.class);
            b.add("DATE", String.class);
            b.add("AZIMUTH", Double.class);
            b.add("IMAGE", String.class);
            SimpleFeatureType featureType = b.buildFeatureType();

            MathTransform transform = CRS.findMathTransform(DefaultGeographicCRS.WGS84, mapCrs);

            DefaultFeatureCollection newCollection = new DefaultFeatureCollection();
            for( File imageFile : listFiles ) {
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType()

        String geometryAtt = "location";
    builder.add(geometryAtt, Point.class, DefaultGeographicCRS.WGS84); //$NON-NLS-1$
        builder.setDefaultGeometry(geometryAtt);
       
        try {
            return builder.buildFeatureType(); //$NON-NLS-1$
        } catch (Throwable e) {
            return null;
        }
    }
   
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType()

       
        //add the two geometries to a FeatureCollection
        SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder();
        b.setName( "Test" );
        b.add( "location", Polygon.class );
        SimpleFeatureType type = b.buildFeatureType();
        SimpleFeature donutFeature = SimpleFeatureBuilder.build(type, new Object[]{donut}, "fid.1");
        SimpleFeature holeFeature = SimpleFeatureBuilder.build(type, new Object[]{hole}, "fid.2");
        DefaultFeatureCollection fc = new DefaultFeatureCollection();
        fc.add(donutFeature);
        fc.add(holeFeature);
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.buildFeatureType()

                                SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder();
                                b.setName("places");
                                b.setCRS(DefaultGeographicCRS.WGS84);
                                b.add("the_geom", MultiPoint.class);
                                b.add("name", String.class);
                                SimpleFeatureType type = b.buildFeatureType();

                                DefaultFeatureCollection newCollection = new DefaultFeatureCollection();

                                int size = keySet.size();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.