Sha256: 828df36018f9b54a06cbd1e932793363e7d7694988d6cc1cda12a317d4dc92f8

Contents?: true

Size: 625 Bytes

Versions: 6

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

module GeoCombine
  ##
  # FIXME: FGDC parsing, transformations are still experimental
  class Fgdc < Metadata
    ##
    # Returns a Nokogiri::XSLT object containing the FGDC to GeoBlacklight XSL
    # @return [Nokogiri::XSLT]
    def xsl_geoblacklight
      Nokogiri::XSLT(File.open(File.join(File.dirname(__FILE__), '../xslt/fgdc2geoBL.xsl')))
    end

    ##
    # Returns a Nokogiri::XSLT object containing the ISO19139 to HTML XSL
    # @return [Nokogiri:XSLT]
    def xsl_html
      Nokogiri::XSLT(File.open(File.join(File.dirname(__FILE__), '../xslt/fgdc2html.xsl')))
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geo_combine-0.9.2 lib/geo_combine/fgdc.rb
geo_combine-0.9.1 lib/geo_combine/fgdc.rb
geo_combine-0.9.0 lib/geo_combine/fgdc.rb
geo_combine-0.8.0 lib/geo_combine/fgdc.rb
geo_combine-0.7.0 lib/geo_combine/fgdc.rb
geo_combine-0.6.0 lib/geo_combine/fgdc.rb