amercader
e85d647304
[ #7 ] Remove spatial_query_widget from setup
2013-05-14 14:05:12 +01:00
amercader
ce8747198f
Merge branch 'release-v2.0'
...
Conflicts:
README.rst
ckanext/spatial/commands/validation.py
ckanext/spatial/controllers/api.py
ckanext/spatial/harvesters/gemini.py
ckanext/spatial/plugin.py
ckanext/spatial/tests/lib/test_spatial.py
ckanext/spatial/tests/model/test_harvested_metadata.py
ckanext/spatial/tests/test_harvest.py
2013-05-14 14:02:28 +01:00
amercader
9300bcc1b9
Update install instructions
...
To reflect extension compatibility handling changes.
2013-05-14 13:23:03 +01:00
amercader
5c54615285
Clean-up README
2013-05-14 13:17:23 +01:00
amercader
d3ed973505
Update spatial query docs
2013-05-13 19:02:17 +01:00
amercader
7919a19f7c
Revert "[ #15 ] Add suport for Solr spatial indexing and querying"
...
Reverting #15 as CKAN 2.0 does not include the necessary changes.
This reverts commit c7a9cc660f
.
2013-05-13 18:55:32 +01:00
amercader
83d903f84f
Revert "[ #15 ] Ensure that bounding boxes are defined counter-clockwise"
...
Reverting #15 as CKAN 2.0 does not include the necessary changes.
This reverts commit fede0b0831
.
2013-05-13 18:55:27 +01:00
amercader
5e35ac0fcb
Revert "[ #15 ] Read search backend config option once only"
...
Reverting #15 as CKAN 2.0 does not include the necessary changes.
This reverts commit d11693f076
.
Conflicts:
ckanext/spatial/plugin.py
2013-05-13 18:55:12 +01:00
amercader
17796c4ad0
Revert "[ #15 ] Add a new Solr search backend based on boost function"
...
Reverting #15 as CKAN 2.0 does not include the necessary changes.
This reverts commit bddfdf6fba
.
Conflicts:
ckanext/spatial/plugin.py
2013-05-13 18:53:09 +01:00
amercader
fe4ac49877
Revert "[ #15 ] Document different spatial search backends available"
...
Reverting #15 as CKAN 2.0 does not include the necessary changes.
This reverts commit 945161c7cb
.
2013-05-13 18:51:50 +01:00
amercader
72127fa151
Revert "[ #15 ] Tweak doc to remove paper"
...
Reverting #15 as CKAN 2.0 does not include the necessary changes.
This reverts commit cf22017b7d
.
2013-05-13 18:51:44 +01:00
amercader
6f3c699311
[ #7 ] Remove old genshi spatial query widget
2013-05-13 17:13:19 +01:00
amercader
7e10eb9c16
[ #7 ] Allow to customize the default extent for the spatial query widget
2013-05-13 16:59:49 +01:00
amercader
af253d0f89
[ #7 ] Spatial search widget for 2.0
...
Adds a new map widget to the 2.0 search templates. It is shown initially
in the sidebar but it is expanded when the user needs to draw an area.
It uses Leaflet and Leaflet.draw.
2013-05-13 16:14:48 +01:00
amercader
45f4f4da57
[ #16 ] Ignore time zones when parsing harvest object modified date
...
Otherwise you get this exception when the date on the document has time
zone information, as dates as stored without it on the database:
TypeError: can't compare offset-naive and offset-aware datetimes
2013-04-25 17:13:03 +01:00
amercader
a4c86d26e3
[ #15 ] Better checks following 27d4d5
2013-04-12 16:44:52 +01:00
Ian Ward
27d4d5b2c9
make spatial field optional
2013-04-12 16:39:38 +01:00
amercader
b75acb5613
Merge branch 'release-v2.0' of github.com:okfn/ckanext-spatial into release-v2.0
2013-04-12 10:56:47 +01:00
amercader
51a2b20501
Merge branch '15-solr-based-spatial-search' into release-v2.0
2013-04-12 10:56:21 +01:00
amercader
822ddbb1b5
[ #8 ] Don't add object id to error so it can be aggregated
2013-04-12 10:54:02 +01:00
amercader
cf22017b7d
[ #15 ] Tweak doc to remove paper
2013-04-12 10:06:50 +01:00
kindly
716b3736f7
bump osw lib version
2013-04-12 02:12:24 +01:00
amercader
945161c7cb
[ #15 ] Document different spatial search backends available
2013-04-11 19:33:11 +01:00
amercader
bddfdf6fba
[ #15 ] Add a new Solr search backend based on boost function
...
This backend does not use the spatial field on Solr, but indexes the
area and coordinates of the dataset's extent. On query time, a boost
function is used to calculate a ratio between the query area and the
dataset extent, which will give a value of 0 for areas that don't
overlap and 1 for a perfect fit. The same function is used both for
sorting and filtering.
2013-04-11 19:29:41 +01:00
amercader
d11693f076
[ #15 ] Read search backend config option once only
2013-04-11 17:13:53 +01:00
amercader
970dfd1b68
Merge branch 'release-v2.0' into 15-solr-based-spatial-search
2013-04-11 12:51:08 +01:00
amercader
7da8f4bbd8
[ #8 ] Fix code tags
2013-04-10 19:04:34 +01:00
amercader
5087d2630d
[ #8 ] Update spatial harvester docs for 2.0
2013-04-10 19:02:16 +01:00
amercader
a2f95f4da4
First docs draft
2013-04-10 17:37:33 +01:00
kindly
d1594b3790
do not use kwarg for unicode errors
2013-04-09 12:06:38 +01:00
amercader
65e056d519
Merge branch 'release-v2.0' into 15-solr-based-spatial-search
2013-04-03 12:14:20 +01:00
amercader
ff25ff2f2b
[ #8 ] Abort import stage if get_package_dict returns nothing
2013-04-02 18:40:03 +01:00
amercader
9760546d13
[ #8 ] Add extra xpath for getting resources
...
According to the ISO spec gmd:MD_DigitalTransferOptions can be accessed
via a gmd:MD_Distributer tag
2013-03-27 17:39:51 +00:00
amercader
0c98e6ec4c
[ #8 ] Minor fix in single doc harvester
2013-03-27 17:38:42 +00:00
amercader
7cae9a1a82
Pin down OWSLib version to ensure it includes geopython/OWSLib@e0a0da02
2013-03-26 17:59:54 +00:00
amercader
fede0b0831
[ #15 ] Ensure that bounding boxes are defined counter-clockwise
...
To return correct results on a spatial query, rectangle geometries must
be defined in counter-clockwise order [1]. This changeset adds a small
sanity check to before_index when we are dealing with a Polygon geometry
that has 5 coordinate pairs. Shapely is used to generate a LinearRing
from the polygon coordinates and check if they are ccw. If not, they are
reordered and a new polygon is generated so the WKT sent to Solr is
properly ordered.
The GeoJSON template used for extents in the base spatial harvester has
been also updated to define the coordinates counter-clockwise.
[1]
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4#JTS_.2BAC8_WKT_.2BAC8_Polygon_notes
2013-03-23 19:28:31 +00:00
amercader
40967385b0
[ #8 ] Fix typo in WMS format detection
2013-03-21 17:53:38 +00:00
amercader
0e0b5a2cc2
[ #8 ] Fix bug that prevented setting a default resource name
2013-03-21 14:34:42 +00:00
amercader
627c4c58e0
[ #8 ] Fix bug that prevented setting a default resource name
2013-03-21 14:34:23 +00:00
amercader
c7a9cc660f
[ #15 ] Add suport for Solr spatial indexing and querying
...
When the 'ckanext.spatial.search_backend' config option is set to
'solr', the extension will index geometries stored in the 'spatial'
extra on the spatial field of the Solr index (named 'spatial_geom').
This is done on the 'before_index' extension point.
Also, when doing a query, if the same config option is in place, the
necessary fq parameter will be set to pass the spatial query to Solr.
2013-03-20 16:54:55 +00:00
amercader
a727aa815b
Add helper functions useful to format extras coming from the spatial harvesters
2013-03-18 15:59:20 +00:00
amercader
a9a634384b
[ #14 ] Add pyparsing requirement. Fixes #14
2013-03-14 17:47:57 +00:00
amercader
a7fc19768b
[ #8 ] Remove print commands from WAF harvester
2013-03-14 17:45:34 +00:00
amercader
eb201e1759
[ #8 ] Waf harvester: improve exception and return empty list if no records
2013-03-14 17:35:51 +00:00
amercader
0aafffc8dc
[ #8 ] Capture exceptions during request in WAF harvester
2013-03-14 14:56:42 +00:00
amercader
d2723c3020
[ #8 ] resource-type not always present
2013-03-14 14:30:16 +00:00
amercader
a76a8d2ca7
[ #8 ] Don't use object id so messages can be grouped
2013-03-14 12:37:35 +00:00
amercader
4638b3899f
Revert "[ #8 ] Don't use object id so messages can be grouped"
...
This reverts commit 032cc4d961
.
2013-03-14 12:36:39 +00:00
amercader
032cc4d961
[ #8 ] Don't use object id so messages can be grouped
2013-03-14 12:34:20 +00:00
amercader
da1dc02c7e
[ #8 ] Improve fields returned in the package dict
...
Make them less uklp specific and more parse friendly. Helper functions
should be used in the UI to format them nicely.
2013-03-08 18:57:30 +00:00