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 Summary
ConstructorsConstructorDescriptionOgrLayerWriteSpec(String layerName, Integer geometryTypeCode, List<OgrFieldDefinition> fields) 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 aOgrLayerWriteSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatasetCreationOptionsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefidFieldNamerecord component.fields()Returns the value of thefieldsrecord component.Returns the value of thegeometryFieldNamerecord component.Returns the value of thegeometryTypeCoderecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelayerCreationOptionsrecord component.Returns the value of thelayerNamerecord component.final StringtoString()Returns a string representation of this record class.withWriteMode(OgrWriteMode mode) Returns the value of thewriteModerecord component.
-
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 aOgrLayerWriteSpecrecord class.- Parameters:
layerName- the value for thelayerNamerecord componentgeometryTypeCode- the value for thegeometryTypeCoderecord componentfields- the value for thefieldsrecord componentwriteMode- the value for thewriteModerecord componentdatasetCreationOptions- the value for thedatasetCreationOptionsrecord componentlayerCreationOptions- the value for thelayerCreationOptionsrecord componentfidFieldName- the value for thefidFieldNamerecord componentgeometryFieldName- the value for thegeometryFieldNamerecord component
-
OgrLayerWriteSpec
public OgrLayerWriteSpec(String layerName, Integer geometryTypeCode, List<OgrFieldDefinition> fields)
-
-
Method Details
-
withWriteMode
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
layerName
Returns the value of thelayerNamerecord component.- Returns:
- the value of the
layerNamerecord component
-
geometryTypeCode
Returns the value of thegeometryTypeCoderecord component.- Returns:
- the value of the
geometryTypeCoderecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
writeMode
Returns the value of thewriteModerecord component.- Returns:
- the value of the
writeModerecord component
-
datasetCreationOptions
-
layerCreationOptions
-
fidFieldName
Returns the value of thefidFieldNamerecord component.- Returns:
- the value of the
fidFieldNamerecord component
-
geometryFieldName
Returns the value of thegeometryFieldNamerecord component.- Returns:
- the value of the
geometryFieldNamerecord component
-