Record Class OgrLayerWriteSpec

java.lang.Object
java.lang.Record
ch.so.agi.gdal.ffm.OgrLayerWriteSpec

public record OgrLayerWriteSpec(String layerName, Integer geometryTypeCode, List<OgrFieldDefinition> fields, OgrWriteMode writeMode, Map<String,String> datasetCreationOptions, Map<String,String> layerCreationOptions, String fidFieldName, String geometryFieldName) extends Record
Layer creation/write specification for OGR streaming exports.
  • Constructor Details

    • OgrLayerWriteSpec

      public OgrLayerWriteSpec(String layerName, Integer geometryTypeCode, List<OgrFieldDefinition> fields, OgrWriteMode writeMode, Map<String,String> datasetCreationOptions, Map<String,String> layerCreationOptions, String fidFieldName, String geometryFieldName)
      Creates an instance of a OgrLayerWriteSpec record class.
      Parameters:
      layerName - the value for the layerName record component
      geometryTypeCode - the value for the geometryTypeCode record component
      fields - the value for the fields record component
      writeMode - the value for the writeMode record component
      datasetCreationOptions - the value for the datasetCreationOptions record component
      layerCreationOptions - the value for the layerCreationOptions record component
      fidFieldName - the value for the fidFieldName record component
      geometryFieldName - the value for the geometryFieldName record component
    • OgrLayerWriteSpec

      public OgrLayerWriteSpec(String layerName, Integer geometryTypeCode, List<OgrFieldDefinition> fields)
  • Method Details

    • withWriteMode

      public OgrLayerWriteSpec withWriteMode(OgrWriteMode mode)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • layerName

      public String layerName()
      Returns the value of the layerName record component.
      Returns:
      the value of the layerName record component
    • geometryTypeCode

      public Integer geometryTypeCode()
      Returns the value of the geometryTypeCode record component.
      Returns:
      the value of the geometryTypeCode record component
    • fields

      public List<OgrFieldDefinition> fields()
      Returns the value of the fields record component.
      Returns:
      the value of the fields record component
    • writeMode

      public OgrWriteMode writeMode()
      Returns the value of the writeMode record component.
      Returns:
      the value of the writeMode record component
    • datasetCreationOptions

      public Map<String,String> datasetCreationOptions()
      Returns the value of the datasetCreationOptions record component.
      Returns:
      the value of the datasetCreationOptions record component
    • layerCreationOptions

      public Map<String,String> layerCreationOptions()
      Returns the value of the layerCreationOptions record component.
      Returns:
      the value of the layerCreationOptions record component
    • fidFieldName

      public String fidFieldName()
      Returns the value of the fidFieldName record component.
      Returns:
      the value of the fidFieldName record component
    • geometryFieldName

      public String geometryFieldName()
      Returns the value of the geometryFieldName record component.
      Returns:
      the value of the geometryFieldName record component