Record Class ShapefileDataset
java.lang.Object
java.lang.Record
ch.so.agi.gretl.internal.shapefile.core.ShapefileDataset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseName()cpg()Returns the value of thecpgrecord component.dbf()Returns the value of thedbfrecord component.final booleanIndicates whether some other object is "equal to" this one.static ShapefileDatasetfinal inthashCode()Returns a hash code value for this object.prj()Returns the value of theprjrecord component.shp()Returns the value of theshprecord component.shx()Returns the value of theshxrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShapefileDataset
Creates an instance of aShapefileDatasetrecord class.- Parameters:
shp- the value for theshprecord componentshx- the value for theshxrecord componentdbf- the value for thedbfrecord componentprj- the value for theprjrecord componentcpg- the value for thecpgrecord component
-
-
Method Details
-
fromPath
public static ShapefileDataset fromPath(Path shpPath, boolean requireShx) throws ShapefileMappingException, IOException - Throws:
ShapefileMappingExceptionIOException
-
baseName
-
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. -
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. -
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). -
shp
Returns the value of theshprecord component.- Returns:
- the value of the
shprecord component
-
shx
Returns the value of theshxrecord component.- Returns:
- the value of the
shxrecord component
-
dbf
Returns the value of thedbfrecord component.- Returns:
- the value of the
dbfrecord component
-
prj
Returns the value of theprjrecord component.- Returns:
- the value of the
prjrecord component
-
cpg
Returns the value of thecpgrecord component.- Returns:
- the value of the
cpgrecord component
-