Skip to content

Commit

Permalink
Add instructions for deleting and reloading spatial data in README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed May 2, 2024
1 parent a9d8862 commit cfb5d8c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spatial_data/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,19 @@ Example:
```
ckan -c $CKAN_INI dbca load_spatial_data
```

## Delete dataset spatial metadata values

If there is a case where all or most current dataset spatial coordinates are incorrect and they need to be removed, run the below commands

Set dataset spatial values you to NULL in the database
```
update "public"."package_extra"
set value = null
where key = 'spatial';
```

Rebuild Solr index by running the CLI command in either the ckan or ckan-worker containers
```
ckan -c $CKAN_INI search-index rebuild
```

0 comments on commit cfb5d8c

Please sign in to comment.