forked from UWICompSociety/fst_app_flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd7702b
commit 8a024a6
Showing
20 changed files
with
119 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
lib/models/from_postgres/map/geo_json_objects/geo_json_object.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import 'package:fst_app_flutter/models/from_postgres/map/geo_json_objects/geo_json_type.dart'; | ||
|
||
/// A class to represent the concept of a GeoJSON object as defined by https://tools.ietf.org/html/rfc7946#section-3 | ||
abstract class GeoJsonObject { | ||
GeoJsonType type; | ||
List<int> bbox; | ||
|
||
GeoJsonObject(this.type); | ||
|
||
/// Converts this GeoJson object to a format that can be written as a valid Geo JSON file. | ||
toGeoJsonFile(); | ||
|
||
/// Converts this GeoJsonObject to a format that can be used in flutter like a [Map] decoded from JSON. | ||
toGeoJson(); | ||
} |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...p/geometry_types/geomerty_collection.dart → ...s/geometry_types/geomerty_collection.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
lib/models/from_postgres/map/geo_json_objects/geometry_types/geometry_object.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import 'package:fst_app_flutter/models/from_postgres/map/geo_json_objects/geo_json_object.dart'; | ||
import 'package:fst_app_flutter/models/from_postgres/map/geo_json_objects/geo_json_type.dart'; | ||
import 'package:google_maps_flutter/google_maps_flutter.dart'; | ||
|
||
/// A class to represent a GeoJSON Geometry Object as a type of [GeoJsonObject] | ||
/// as defined by https://tools.ietf.org/html/rfc7946#section-3.1 | ||
abstract class GeoJsonGeometryObject extends GeoJsonObject { | ||
GeoJsonGeometryObject(GeoJsonType type) : super(type); | ||
|
||
/// Extracts a list of [LatLng] from the coordinates of this [GeoJsonGeometryObject] | ||
List<LatLng> extractLatLng(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...tgres/map/geometry_types/linear_ring.dart → ...n_objects/geometry_types/linear_ring.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...map/geometry_types/multi_line_string.dart → ...cts/geometry_types/multi_line_string.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
...tgres/map/geometry_types/multi_point.dart → ...n_objects/geometry_types/multi_point.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...res/map/geometry_types/multi_polygon.dart → ...objects/geometry_types/multi_polygon.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
...om_postgres/map/geometry_types/point.dart → ...eo_json_objects/geometry_types/point.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
lib/models/from_postgres/map/geo_json_types/geo_json_object.dart
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
lib/models/from_postgres/map/geometry_types/geometry_object.dart
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.