Versions in this module Expand all Collapse all v1 v1.0.0-beta Oct 17, 2025 v0 v0.100.0 Oct 19, 2025 Changes in this version type ParseOptions + Fs afero.Fs v0.99.0 Oct 17, 2025 Changes in this version + func AttributeCodeToString(code int) string + func IsSupported(code int) bool + func ObjectClassToInt(code string) (int, error) + func ObjectClassToString(code int) (string, error) + func ValidateCoordinate(lat, lon float64) error + func ValidateFeature(feature *Feature) error + func ValidateGeometry(geometry *Geometry) error + type Chart struct + Features []Feature + func (c *Chart) ApplicationProfile() string + func (c *Chart) Comment() string + func (c *Chart) CompilationScale() int32 + func (c *Chart) CoordinateUnits() int + func (c *Chart) DatasetName() string + func (c *Chart) Edition() string + func (c *Chart) ExchangePurpose() string + func (c *Chart) HorizontalDatum() int + func (c *Chart) IntendedUsage() int + func (c *Chart) IssueDate() string + func (c *Chart) ProducingAgency() int + func (c *Chart) ProductSpecification() string + func (c *Chart) S57Edition() string + func (c *Chart) UpdateDate() string + func (c *Chart) UpdateNumber() string + type ErrInvalidCoordinate struct + Lat float64 + Lon float64 + func (e *ErrInvalidCoordinate) Error() string + type ErrInvalidGeometry struct + Reason string + Type GeometryType + func (e *ErrInvalidGeometry) Error() string + type ErrInvalidSpatialRecord struct + Reason string + SpatialID int64 + func (e *ErrInvalidSpatialRecord) Error() string + type ErrMissingSpatialRecord struct + FeatureID int64 + SpatialID int64 + func (e *ErrMissingSpatialRecord) Error() string + type ErrUnknownObjectClass struct + Code int + func (e *ErrUnknownObjectClass) Error() string + type Feature struct + Attributes map[string]interface{} + Geometry Geometry + ID int64 + ObjectClass string + type Geometry struct + Coordinates [][]float64 + Type GeometryType + type GeometryType int + const GeometryTypeLineString + const GeometryTypePoint + const GeometryTypePolygon + func (g GeometryType) String() string + type ParseOptions struct + ApplyUpdates bool + ObjectClassFilter []string + SkipUnknownFeatures bool + ValidateGeometry bool + func DefaultParseOptions() ParseOptions + type Parser interface + Parse func(filename string) (*Chart, error) + ParseWithOptions func(filename string, opts ParseOptions) (*Chart, error) + SupportedObjectClasses func() []string + func DefaultParser() (Parser, error) + func NewParser() Parser + type UpdateInstruction int + const UpdateDelete + const UpdateInsert + const UpdateModify