Commit Graph

853 Commits

Author SHA1 Message Date
amercader cf2b2a9089 Drop big fields from indexed dict before 2022-09-06 11:25:40 +02:00
amercader 89070be10c Allow to configure the Solr spatial query sent 2022-09-06 10:31:51 +02:00
amercader a358afce5c Clean up and consolidate solr based searches 2022-09-05 15:40:32 +02:00
amercader 244b2ba20f More antimeridian fixes 2022-09-05 15:26:26 +02:00
amercader 07a028f06f Handle some antimeridian cases 2022-09-05 12:36:56 +02:00
amercader c4fd9ce21a Re-add lost logic to remove fields from the index (take 2) 2022-09-05 12:36:22 +02:00
amercader 4a4c36f4e2 Spatial field tests
Still 2 failing
2022-09-01 14:35:10 +02:00
amercader 65de1d0e77 Refactor search backend handling 2022-09-01 14:33:49 +02:00
amercader 9cb4fb5fb3 Move query tests to own file 2022-09-01 12:00:34 +02:00
amercader 95c7b67132 PostGIS' and Solr's logic for wrapping bboxes is different 2022-09-01 11:44:54 +02:00
amercader d0a722551d Don't fit bbox in normalize function 2022-08-31 17:10:49 +02:00
amercader de7c85b59d Re-add lost logic to remove fields from the index 2022-08-31 17:08:58 +02:00
amercader fc091043c6 Use the spatial Solr image in tests, test 2.9 onwards only 2022-08-31 16:47:09 +02:00
amercader d7e55b7290 cleanup 2022-08-31 16:46:46 +02:00
amercader a68e6239f0 No postgis backend no more 2022-08-31 15:58:51 +02:00
amercader 916d5c92ba Update Bbox based search (`solr` backend)
Use the `bbox` field in Solr, and the relevant query syntax
2022-08-31 13:21:18 +02:00
amercader eebd3954a1 Separate functions for normalizing and fitting a bbox
`normalize_bbox()` just parses incoming coordinates into a normalized dict
`fit_bbox()`  will translate any outlying coordinates to ensure they fit
the -180, -90, 180, 90 extent
2022-08-31 13:19:14 +02:00
amercader 87b723e9de Update docs to reflect PostGIS not being supported 2022-08-24 16:25:35 +02:00
amercader b4a9eba67a Fix all tests 2022-08-24 16:24:14 +02:00
amercader 322a92bcec Remove old API in Pylons controller 2022-08-24 13:56:50 +02:00
amercader 2b26b7c746 Fix wrong expected message 2022-08-24 13:53:29 +02:00
amercader 0ee15fe997 Downgrade geoalchemy to match CKAN core sqlalchemy requirement 2022-08-24 13:46:57 +02:00
amercader 6b61ac66db Update expected error message 2022-08-24 13:42:00 +02:00
amercader 81a4b1529b Don't load postgis related libraries 2022-08-24 13:30:54 +02:00
amercader c83fde7d9d py2 geoalchemy requirement 2022-08-24 13:26:27 +02:00
amercader 5742a5fff0 Test cleanups 2022-08-24 13:17:54 +02:00
amercader 470ac76cba Move Postgis API tests to own module
TODO: Enable tests for Solr
2022-08-24 13:09:09 +02:00
amercader f12464972c Separate test workflows for postgis and default setup 2022-08-24 13:00:32 +02:00
amercader 6f8870ee58 Actually add the postgis tests 2022-08-24 13:00:00 +02:00
amercader a14dcf3109 Fix check spatial field logic 2022-08-24 12:50:04 +02:00
amercader 43e573d4da Consolidate all PostGIS tests
Also remove old unused API endpoint
2022-08-24 12:11:03 +02:00
amercader 93f6f87868 [#195] Don't use PostGIS by default
Consolidate all DB related modules and functions into a single module
for easier encapsulation. The PostGIS database table and the functions
to store PostGIS geometries are no longer called by default.

There is a new config option (`ckan.spatial.use_postgis=true`) to
re-enable this behaviour. This option (and the actual PostGIS modules)
will be dropped in future versions.
2022-08-24 11:24:30 +02:00
amercader ffba7092db Remove support for old GeoAlchemy library
Not needed since CKAN 2.3
2022-08-24 10:14:54 +02:00
amercader f63797d054 Remove un-needed error function 2022-08-24 10:00:21 +02:00
amercader e29e171958 Refactor the IPackageController hooks
Don't use the old `.create()`, `.edit()`, `.delete()` hooks and use the
new `after_dataset_*()` ones. Use the geojson package to validate the
spatial extra
2022-08-24 09:53:46 +02:00
Adrià Mercader cd6667dc32
Merge pull request #285 from vrk-kpa/remove_coupled_resources_from_solr_index
Remove coupled resources from solr
2022-07-06 13:32:29 +02:00
Jari Voutilainen d00d6bee39 Remove spatial field from solr as well 2022-06-23 09:26:21 +03:00
Jari Voutilainen a17ca674ff Remove coupled resources from solr 2022-06-17 12:46:51 +03:00
Adrià Mercader f00ad5b1d9
Merge pull request #279 from ckan/2.10-support
CKAN 2.10 support
2022-04-22 15:17:19 +02:00
amercader ee5d7b48ac Fix syntax 2022-04-22 14:49:22 +02:00
amercader 69a65c4f74 Don't use deprecated h.url() helper 2022-04-22 14:47:56 +02:00
amercader 1da4b6329a Support new IPackageController hooks 2022-04-22 14:47:47 +02:00
Adrià Mercader 645db541a3
Merge pull request #278 from NCAR/fix-waf
Apply byte->str conversion to recursive call
2022-04-22 14:08:07 +02:00
amercader 1f6c0d7744 Install py3 reqs in CKAN 2.10 2022-04-22 14:07:44 +02:00
bonnland 4fd2420e05 Apply byte->str conversion to recursive call 2022-04-14 14:01:39 -06:00
amercader 492481afe7 Test against future 2.10 2022-03-31 14:55:43 +02:00
Adrià Mercader 09fbc27054
Merge pull request #266 from ccancellieri/lineage-support
Lineage support
2022-02-21 12:30:06 +01:00
Adrià Mercader bce907544c
Merge pull request #267 from ccancellieri/validate_wms
Make ckanext.spatial.harvest.validate_wms working again #265
2022-02-21 12:28:27 +01:00
Adrià Mercader 0f67cc9413
Merge pull request #268 from ccancellieri/guess-resource-format
guess_resource_format may use protocol and function to better guess t…
2022-02-21 12:27:48 +01:00
Adrià Mercader 0594fdf43c
Merge pull request #276 from NINAnor/update-shapely-usage-to-avoid-deprecation
Update shapely usage to avoid deprecation
2022-02-18 14:04:54 +01:00