A Ruby toolkit for managing geospatial metadata
Add this line to your application's Gemfile:
gem 'geo_combine'And then execute:
$ bundle
Or install it yourself as:
$ gem install geo_combine
GeoCombine can be used as a set of rake tasks for cloning, updating, and indexing OpenGeoMetdata metdata. It can also be used as a Ruby library for converting metdata.
# Create a new ISO19139 object
> iso_metadata = GeoCombine::Iso19139.new('./tmp/opengeometadata/edu.stanford.purl/bb/338/jh/0716/iso19139.xml')
# Convert it to GeoBlacklight
> iso_metadata.to_geoblacklight
# Convert that to JSON
> iso_metadata.to_geoblacklight.to_json
# Convert ISO or FGDC to HTML
> iso_metadata.to_htmlGeoCombine's tasks can be run either as rake tasks or as standalone executables.
$ rake geocombine:clone$ bundle exec geocombine cloneWill clone all edu.* OpenGeoMetadata repositories into ./tmp/opengeometadata. Location of the OpenGeoMetadata repositories can be configured using the OGM_PATH environment variable.
$ OGM_PATH='my/custom/location' rake geocombine:clone$ rake geocombine:pull$ bundle exec geocombine pullRuns git pull origin master on all cloned repositories in ./tmp/opengeometadata (or custom path with configured environment variable OGM_PATH)
$ rake geocombine:index$ bundle exec geocombine indexIndexs all of the geoblacklight.json files in cloned repositories to a Solr index running at http://127.0.0.1:8983/solr
- Fork it ( https://github.com/[my-github-username]/GeoCombine/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request