Examples of binding()


Examples of org.geotools.feature.AttributeTypeBuilder.binding()

    AttributeTypeBuilder attBuilder = new AttributeTypeBuilder();
    builder.add(toGeometryAttribute(iShapeType, crs,attBuilder));
    builder.setDefaultGeometry("geom");
    for (int i = 0; i < sFields.length; i++) {
      AttributeType type = attBuilder.binding(fields[i]).buildType();
      AttributeDescriptor descriptor = attBuilder.buildDescriptor(sFields[i], type);
      builder.add(descriptor);
    }
    return builder.buildFeatureType();
   
View Full Code Here

Examples of org.geotools.feature.AttributeTypeBuilder.binding()

    final SimpleFeatureTypeBuilder simpleFeatureTypeBuilder = new SimpleFeatureTypeBuilder();
    simpleFeatureTypeBuilder.setName(TDRIVE_POINT_FEATURE);

    final AttributeTypeBuilder attributeTypeBuilder = new AttributeTypeBuilder();

    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Geometry.class).nillable(
        false).buildDescriptor(
        "geometry"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
View Full Code Here

Examples of org.geotools.feature.AttributeTypeBuilder.binding()

    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Geometry.class).nillable(
        false).buildDescriptor(
        "geometry"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
        false).buildDescriptor(
        "taxiid"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
View Full Code Here

Examples of org.geotools.feature.AttributeTypeBuilder.binding()

        "geometry"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
        false).buildDescriptor(
        "taxiid"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
        true).buildDescriptor(
        "pointinstance"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Date.class).nillable(
View Full Code Here

Examples of org.geotools.feature.AttributeTypeBuilder.binding()

        "taxiid"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
        true).buildDescriptor(
        "pointinstance"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Date.class).nillable(
        true).buildDescriptor(
        "Timestamp"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
View Full Code Here

Examples of org.geotools.feature.AttributeTypeBuilder.binding()

        "pointinstance"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Date.class).nillable(
        true).buildDescriptor(
        "Timestamp"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
        true).buildDescriptor(
        "Latitude"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
View Full Code Here

Examples of org.geotools.feature.AttributeTypeBuilder.binding()

        "Timestamp"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
        true).buildDescriptor(
        "Latitude"));
    simpleFeatureTypeBuilder.add(attributeTypeBuilder.binding(
        Double.class).nillable(
        true).buildDescriptor(
        "Longitude"));

    return simpleFeatureTypeBuilder.buildFeatureType();
View Full Code Here

Examples of org.geotools.feature.AttributeTypeBuilder.binding()

    // lattitude/longtiude) can not be null
    // Calling out latitude an longitude separately is not strictly needed,
    // as the geometry contains that information. But it's
    // convienent in many use cases to get a text representation without
    // having to handle geometries.
    builder.add(ab.binding(
        Geometry.class).nillable(
            false).buildDescriptor(
                "geometry"));
    builder.add(ab.binding(
        Date.class).nillable(
View Full Code Here

Examples of org.geotools.feature.AttributeTypeBuilder.binding()

    // having to handle geometries.
    builder.add(ab.binding(
        Geometry.class).nillable(
            false).buildDescriptor(
                "geometry"));
    builder.add(ab.binding(
        Date.class).nillable(
            true).buildDescriptor(
                "TimeStamp"));
    builder.add(ab.binding(
        Double.class).nillable(
View Full Code Here

Examples of org.geotools.feature.AttributeTypeBuilder.binding()

                "geometry"));
    builder.add(ab.binding(
        Date.class).nillable(
            true).buildDescriptor(
                "TimeStamp"));
    builder.add(ab.binding(
        Double.class).nillable(
            false).buildDescriptor(
                "Latitude"));
    builder.add(ab.binding(
        Double.class).nillable(
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.