{"action":"created","issue":{"url":"https://api.github.com/repos/GSA/data.gov/issues/618","labels_url":"https://api.github.com/repos/GSA/data.gov/issues/618/labels{/name}","comments_url":"https://api.github.com/repos/GSA/data.gov/issues/618/comments","events_url":"https://api.github.com/repos/GSA/data.gov/issues/618/events","html_url":"https://github.com/GSA/data.gov/issues/618","id":68713961,"number":618,"title":"Geospatial metadata records with point bounding boxes are rejected during harvesting","user":{"login":"oconnor77","id":7449824,"avatar_url":"https://avatars.githubusercontent.com/u/7449824?v=3","gravatar_id":"","url":"https://api.github.com/users/oconnor77","html_url":"https://github.com/oconnor77","followers_url":"https://api.github.com/users/oconnor77/followers","following_url":"https://api.github.com/users/oconnor77/following{/other_user}","gists_url":"https://api.github.com/users/oconnor77/gists{/gist_id}","starred_url":"https://api.github.com/users/oconnor77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oconnor77/subscriptions","organizations_url":"https://api.github.com/users/oconnor77/orgs","repos_url":"https://api.github.com/users/oconnor77/repos","events_url":"https://api.github.com/users/oconnor77/events{/privacy}","received_events_url":"https://api.github.com/users/oconnor77/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GSA/data.gov/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/GSA/data.gov/labels/Geospatial","name":"Geospatial","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-15T15:31:45Z","updated_at":"2015-11-16T13:04:00Z","closed_at":null,"body":"Geospatial metadata records with point bounding boxes are currently rejected during harvesting due to the in ability in CKAN to store point data as captured in the notes at these lines\r\n\r\nhttps://github.com/GSA/ckanext-spatial/blob/datagov/ckanext/spatial/harvesters/base.py#L310-L323\r\n\r\nThis is a bug in the system. Both the originating metadata sources (CSDGM and ISO) allow for point coordinates to be captured in these fields. In the records that we are unable to publish the data are a time series of oceanographic or meteorological measurements collected at a single location. There is no bounding box.\r\n\r\nPrevious guidance provided when discussing this issue has been to manually alter the originating metadata to create \"the box\" needed to pass validation. However, we are reluctant to alter the source documentation because it accurately reflects the data and we don't want to introduce errors into the documentation to meet portal specific publication requirements which often change as systems evolve.\r\n\r\nIf the system can truly not handle a point, it would make sense in my opinion for the system to pad one coordinate pair by a thousandth of a degree on ingest and store this set of coordinates in the database. This would create the locally needed \"bounding box\" while still providing users with the accurate coordinates when linking to the originating source metadata."},"comment":{"url":"https://api.github.com/repos/GSA/data.gov/issues/comments/157022801","html_url":"https://github.com/GSA/data.gov/issues/618#issuecomment-157022801","issue_url":"https://api.github.com/repos/GSA/data.gov/issues/618","id":157022801,"user":{"login":"JJediny","id":6350035,"avatar_url":"https://avatars.githubusercontent.com/u/6350035?v=3","gravatar_id":"","url":"https://api.github.com/users/JJediny","html_url":"https://github.com/JJediny","followers_url":"https://api.github.com/users/JJediny/followers","following_url":"https://api.github.com/users/JJediny/following{/other_user}","gists_url":"https://api.github.com/users/JJediny/gists{/gist_id}","starred_url":"https://api.github.com/users/JJediny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJediny/subscriptions","organizations_url":"https://api.github.com/users/JJediny/orgs","repos_url":"https://api.github.com/users/JJediny/repos","events_url":"https://api.github.com/users/JJediny/events{/privacy}","received_events_url":"https://api.github.com/users/JJediny/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T13:04:00Z","updated_at":"2015-11-16T13:04:00Z","body":"Ah was wondering what the real issue was - missed the solr aspect completely thanks @FuhuXia... So looks like the two options either a dumb addition/subtraction of a degree to fake a micro-BBOX or leverage Python shapely to process a buffer from the point and figure a way to derive down to a rectangle to store in postgis/use for solr? "}}