Class FlexibleFeatureSchema

java.lang.Object
com.vividsolutions.jump.feature.FeatureSchema
com.vividsolutions.jump.feature.FlexibleFeatureSchema
All Implemented Interfaces:
Serializable, Cloneable

public class FlexibleFeatureSchema extends FeatureSchema
a FlexibleFeatureSchema originally used by the GeoJSON reader. extends the basic FeatureSchema by - allow changing attrib types on the fly - creates empty geoms matching a previous set geomType
See Also:
  • Constructor Details

    • FlexibleFeatureSchema

      public FlexibleFeatureSchema()
    • FlexibleFeatureSchema

      public FlexibleFeatureSchema(FeatureSchema featureSchema)
  • Method Details

    • setAttributeType

      public void setAttributeType(int attributeIndex, AttributeType type)
    • setAttributeType

      public void setAttributeType(String name, AttributeType type)
    • setGeometryType

      public void setGeometryType(Class clazz)
    • getGeometryType

      public Class getGeometryType()
    • createEmptyGeometry

      public org.locationtech.jts.geom.Geometry createEmptyGeometry()
      creates an empty geometry matching the geom type set already or an empty geom collection if that fails
      Returns:
      geometry