A ruby library client for the OGC Catalogue Service. Specifically developed to consume records presented by the ESRI Geoportal CSW feed.
Developed by GINA for use in by the North Slope Science Initiative's Catalog and the EPSCoR-ACE Southcentral Testcase Catalog.
Add this line to your application's Gemfile:
gem 'rcsw'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rcsw
require 'rcsw'
client = RCSW::Client::Base.new('http://seakgis03.alaska.edu/geoportal/csw')
client.capabilities.each |capability|
puts capability
end
client.records.each do |record|
puts "#{record.title} - #{record.subject}"
end
identifiers = client.records.collect{|r| r.identifier}
single_record = client.record(identifiers.first).first
multiple_records = client.record(identifiers.join(","))
- Fork it
- 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 new Pull Request