geopoint_sql 0.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 54

Geopoint Sql #

pub package

Sql operations for geospatial data. Uses Geopoint and Geojson for data structures and Sqlcool for database management.

Documentation #

Init a geospatial database #

   import 'package:sqlcool/sqlcool.dart';
   import 'package:geopoint_sql/geopoint_sql.dart';

   final geoDb = Db();
   await geoDb
         path: "geodb.sqlite",
         schema: [geoPointSchema, geoSerieSchema],
         verbose: true)
      .catchError((dynamic e) {
         throw ("Can not init geo database $e");

Crud operations #

For geopoints:

   import 'package:geopoint_sql/geopoint_sql.dart';

   final geoPointSql = GeoPointSql(db: geoDb);
   // save
      geoPoint: GeoPoint(name: "point", latitude: 0.0, longitude: 0.0));

For geoseries:

   import 'package:geopoint_sql/geopoint_sql.dart';

   final geoSerieSql = GeoSerieSql(db: geoDb);
   // save
      geoSerie: GeoSerie(name: "serie1", geoPoints: <GeoPoint>[]));
   // update
      geoSerie: GeoSerie(name: "serie1", geoPoints: <GeoPoint>[]));
   // delete

Admin crud view #

   import 'package:geopoint_sql/geopoint_sql.dart';

   Widget build(BuildContext context) {
      return Scaffold(
         body: GeoCrudNavigationPage(db: geoDb, activeTab: ActiveTab.line));


Changelog #

0.1.1 #

Fix type cast for save geopoint

0.1.0 #

Initial release


example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  geopoint_sql: ^0.1.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:geopoint_sql/geopoint_sql.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (geopoint).


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0
cupertino_icons ^0.1.2 0.1.2
flutter 0.0.0
geopoint ^0.4.0 0.4.1 0.5.0
pedantic ^1.6.0 1.8.0+1
sqlcool ^3.2.0 3.2.1
sqlview ^0.3.0 0.3.0
Transitive dependencies
ansicolor 1.0.2
auto_size_text 1.1.2 2.1.0
card_settings 1.4.2
collection 1.14.11 1.14.12
console_log_handler 1.1.6
flutter_colorpicker 0.2.6
flutter_cupertino_settings 0.1.0
flutter_masked_text 0.7.0 0.8.0
flutter_slidable 0.5.4
intl 0.15.8 0.16.0
latlong 0.6.1
logging 0.11.3+2
meta 1.1.7
path 1.6.4
path_provider 1.3.1
platform 2.2.1
rxdart 0.22.3
sky_engine 0.0.99
slugify2 0.2.1
sqflite 1.1.7+1
synchronized 2.1.0+1
typed_data 1.1.6
validate 1.7.0
vector_math 2.0.8
Dev dependencies