Class: GeoCombine::Fgdc

Inherits:
Metadata show all
Defined in:
lib/geo_combine/fgdc.rb

Overview

FIXME: FGDC parsing, transformations are still experimental

Instance Attribute Summary

Attributes inherited from Metadata

#metadata

Instance Method Summary collapse

Methods inherited from Metadata

#initialize, #to_geoblacklight, #to_html

Constructor Details

This class inherits a constructor from GeoCombine::Metadata

Instance Method Details

#xsl_geoblacklightNokogiri::XSLT

Returns a Nokogiri::XSLT object containing the FGDC to GeoBlacklight XSL

Returns:

  • (Nokogiri::XSLT)


10
11
12
# File 'lib/geo_combine/fgdc.rb', line 10

def xsl_geoblacklight
  Nokogiri::XSLT(File.open(File.join(File.dirname(__FILE__), '../xslt/fgdc2geoBL.xsl')))
end

#xsl_htmlNokogiri:XSLT

Returns a Nokogiri::XSLT object containing the ISO19139 to HTML XSL

Returns:

  • (Nokogiri:XSLT)


17
18
19
# File 'lib/geo_combine/fgdc.rb', line 17

def xsl_html
  Nokogiri::XSLT(File.open(File.join(File.dirname(__FILE__), '../xslt/fgdc2html.xsl')))
end