Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export key classes of geobase also from geocore #108

Closed
navispatial opened this issue May 22, 2022 · 2 comments
Closed

Export key classes of geobase also from geocore #108

navispatial opened this issue May 22, 2022 · 2 comments
Labels
enhancement New feature or request 🌐 geocore Related to the code package "geocore"

Comments

@navispatial
Copy link
Member

navispatial commented May 22, 2022

The geocore depends on geobase for position, box, format and writer base classes. Some of these depending classes are used as arguments in methods of geocore classes. In such case it might be nice for code user that those classes of geobase would be exported also by geocore.

At least following should be considered.

package:geocore/base.dart should re-export:

  • classes
    • Coords
    • Position
    • TransformPosition
    • CreatePosition
    • Box
    • Projection

And package:geocore/data.dart should re-export:

  • classes
    • Geom
    • CoordinateWriter
    • GeometryWriter
    • GeometryFormat
    • FeatureWriter
    • FeatureFormat
  • global constants
    • defaultFormat
    • wktLikeFormat
  • global functions
    • geoJsonFormat
    • wktFormat
@navispatial
Copy link
Member Author

package:geocore/base.dart specified as:

/// Base classes for geospatial geometries objects.
///
/// *Spatial* classes include coordinates, points, bounds, point series, and
/// transform and projection abstractions.
///
/// Exports also `Coords`, `Position`, `TransformPosition`, `CreatePosition`,
/// `Box` and `Projection` from `package:geobase/coordinates.dart`.
///
/// Usage: import `package:geocore/base.dart`
library base;

export 'package:geobase/coordinates.dart'
    show Coords, Position, TransformPosition, CreatePosition, Box, Projection;

export 'src/base/spatial.dart';

package:geocore/data.dart specified as:

/// Geospatial features and geometries (linestring, polygon, multi geometries).
///
/// This library exports also all classes of `package:geocore/base.dart` and
/// `package:geocore/coordinates.dart`.
///
/// Exports also `Coords`, `Position`, `TransformPosition`, `CreatePosition`,
/// `Box` and `Projection` from `package:geobase/coordinates.dart`.
///
/// Exports also `Geom`, `CoordinateWriter`, `GeometryWriter`, `GeometryFormat`,
/// `FeatureWriter`, `FeatureFormat`, `defaultFormat`, `wktLikeFormat`,
/// `geoJsonFormat` and `wktFormat` from `package:geobase/vector.dart`.
///
/// Usage: import `package:geocore/data.dart`
library data;

export 'package:geobase/vector.dart'
    show
        Geom,
        CoordinateWriter,
        GeometryWriter,
        GeometryFormat,
        FeatureWriter,
        FeatureFormat,
        defaultFormat,
        wktLikeFormat,
        geoJsonFormat,
        wktFormat;

export 'base.dart';
export 'coordinates.dart';

export 'src/data/feature.dart';
export 'src/data/simple_geometry.dart';

@navispatial
Copy link
Member Author

Published on geocore version 0.9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🌐 geocore Related to the code package "geocore"
Projects
None yet
Development

No branches or pull requests

1 participant