3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

1720 commits

Author SHA1 Message Date
Michael Stenta ec24339bd3 Change KML content type to application/vnd.google-earth.kml+xml. 2021-09-01 15:27:02 -04:00
Michael Stenta 84e2e64f48 Add KML importer help text. 2021-09-01 15:27:02 -04:00
Michael Stenta e293ca80bf Hide KML importer output until submission. 2021-09-01 15:27:02 -04:00
Michael Stenta 45acc539a3 Add menu link for KML importer and depend on farm_import. 2021-09-01 15:27:02 -04:00
Michael Stenta 414b9e27ed Change KML importer route to farm.import.kml. 2021-09-01 15:27:02 -04:00
Michael Stenta 5f81d46338 Add a /import page controller that displays all sub-menu items. 2021-09-01 15:27:02 -04:00
Michael Stenta 6487f394f0 Create a placeholder farm_import module.
This can be the future home of import-related support code.
CSV importers can be built here, or in sub-modules of this.
The KML importer can move here, and future importers for
GeoJSON and other formats may also be added.
2021-09-01 15:27:02 -04:00
Michael Stenta 3ea781aa42 Change KML importer form router path to import/kml. 2021-09-01 15:27:02 -04:00
Michael Stenta 64ba44c694 Move farm_kml_import module to farm_import_kml. 2021-09-01 15:27:02 -04:00
Michael Stenta 1afff89207 Add farm_kml and farm_kml_import modules to farm_modules(). 2021-09-01 15:27:02 -04:00
Michael Stenta 2303d9c14a Expand ContentEntityGeometryNormalizer docblock. 2021-09-01 15:27:02 -04:00
Michael Stenta 08cb0edda8 The farm_kml_import module depends on farm_kml. 2021-09-01 15:27:02 -04:00
Michael Stenta d37d801002 Rename ContentEntityNormalizer to ContentEntityGeometryNormalizer. 2021-09-01 15:27:02 -04:00
Michael Stenta c0989179be Move GeometryWrapper and ContentEntityNormalizer to farm_geo module. 2021-09-01 15:27:02 -04:00
Michael Stenta 38e8b9fcf3 Start a new farm_geo module for geospatial features that other modules can use. 2021-09-01 15:27:02 -04:00
Michael Stenta 633f3e2ac5 Add references to GeoPHP maintainer suggestions to create a Geometry wrapper object for storing non-geospatial properties. 2021-09-01 15:27:02 -04:00
Michael Stenta 8fff08df4e Add entity type, bundle, and internal ID to KML. 2021-09-01 15:27:02 -04:00
Michael Stenta 0424fbbd84 Use UUIDs as the geometry ID property instead of Drupal internal ID. 2021-09-01 11:21:12 -04:00
paul121 8a1e640f32 Refactor KML to denormalize to a GeometryWrapper object. 2021-09-01 11:21:12 -04:00
paul121 297a227e92 Refactor the ContentEntityNormalizer to normalize from a GeometryWrapper object.
This allows the ContentEntityNormalizer to be supported by other
normalizers and encoders that support a format prefixed "geometry_".
2021-09-01 11:21:12 -04:00
paul121 ca548afd05 Provide a GeometryWrapper class. 2021-09-01 11:21:12 -04:00
paul121 376c607be8 Add KML import form. 2021-09-01 11:21:08 -04:00
paul121 dc32805c96 Add WKTGeometryNormalizer. 2021-09-01 11:10:15 -04:00
paul121 4ac98cf3b2 Add KML decoder. 2021-09-01 11:10:15 -04:00
paul121 3250f30da1 Init farm_kml_import module. 2021-09-01 11:10:15 -04:00
paul121 aeaafe06a9 Add KML as known request format. 2021-09-01 11:10:15 -04:00
paul121 d55c84da28 Provide normalizer and encoder to serialize content entities to KML. 2021-09-01 11:10:15 -04:00
paul121 4611c2e43f Add Export KML action for log and asset entities. 2021-09-01 11:10:15 -04:00
paul121 83312641b5 Provide an EntityKML action. 2021-09-01 11:10:15 -04:00
paul121 8f4ecd5e74 Add ext-simplexml to composer.json.
This is needed to parse an XML object from a string. Various
dependencies already depend on this so we aren't really adding a new
dependency here, but since we are using directly using the library it
should be included in our composer.json.
2021-09-01 11:10:15 -04:00
paul121 7641151afb Init farm_kml module. 2021-09-01 11:10:15 -04:00
Michael Stenta 48bd4f9f81 Prefix farm_map.settings router item path with a slash for consistency. 2021-09-01 11:10:15 -04:00
Michael Stenta 97c9959f62 Merge branch '2.x-actions' into 2.x 2021-08-30 19:40:12 -04:00
Michael Stenta 8f98db20b6 Use asset names helper function to generate log names when using the group/move actions. 2021-08-30 17:55:58 -04:00
Michael Stenta 835209e5a2 Add a helper function for generating truncated lists of asset names. 2021-08-30 17:55:58 -04:00
Michael Stenta e08cb70650 Revert "Add groupOptions function to the group membership service."
This reverts commit 5dc7f53fab.
2021-08-30 15:34:35 -04:00
Michael Stenta 0b7aa78c77 Use entity autocomplete widget for asset group action form. 2021-08-30 15:34:35 -04:00
Michael Stenta 79200cfc6a Add a Group entity reference View. 2021-08-30 15:09:44 -04:00
Michael Stenta c8089ee561 Do not limit log assign action user list to managed roles. 2021-08-30 14:35:00 -04:00
Michael Stenta 7fad319709 Add enforced dependency on farm_entity to asset_flag_action config. 2021-08-30 13:45:32 -04:00
Michael Stenta d01189a99c Use #date_part_order of year, month, day. 2021-08-30 13:45:32 -04:00
Michael Stenta c741692eed Use a date range of -15:+15 in asset group and move actions to match Log module. 2021-08-30 13:45:32 -04:00
Michael Stenta 4aa8fbdac2 Move logic to prepopulate the log asset field to the farm_log module. 2021-08-30 13:45:32 -04:00
Paul Weidner c1bbba0f81 Check view and create access instead of update access for the Asset Clone action. 2021-08-30 13:45:32 -04:00
Paul Weidner 72e3397d3d Use default date_year_range values. 2021-08-30 13:45:32 -04:00
Paul Weidner 142ecb1ed6 Only require view access to assets referenced by logs. 2021-08-30 13:45:32 -04:00
Paul Weidner 30b83735ba Limit to log types the user has access to create. 2021-08-30 13:45:32 -04:00
Paul Weidner 8420246b0a Do not require a location asset so the location can be reset. 2021-08-30 13:45:32 -04:00
Michael Stenta deb768d99f Check flag field edit access in EntityFlag action. 2021-08-30 13:45:32 -04:00
paul121 e8db19a9d9 Create asset_add_log action. 2021-08-30 13:45:32 -04:00