Class: GeoConcerns::Discovery::DocumentBuilder::Wxs
- Inherits:
-
Object
- Object
- GeoConcerns::Discovery::DocumentBuilder::Wxs
- Defined in:
- app/services/geo_concerns/discovery/document_builder/wxs.rb
Instance Attribute Summary collapse
-
#geo_concern ⇒ Object
readonly
Returns the value of attribute geo_concern.
Instance Method Summary collapse
-
#identifier ⇒ String
Returns the identifier to use with WMS/WFS/WCS services.
-
#initialize(geo_concern) ⇒ Wxs
constructor
A new instance of Wxs.
-
#wfs_path ⇒ String
Returns the wfs server url.
-
#wms_path ⇒ String
Returns the wms server url.
Constructor Details
#initialize(geo_concern) ⇒ Wxs
Returns a new instance of Wxs.
6 7 8 9 |
# File 'app/services/geo_concerns/discovery/document_builder/wxs.rb', line 6 def initialize(geo_concern) @geo_concern = geo_concern @config = fetch_config end |
Instance Attribute Details
#geo_concern ⇒ Object (readonly)
Returns the value of attribute geo_concern.
5 6 7 |
# File 'app/services/geo_concerns/discovery/document_builder/wxs.rb', line 5 def geo_concern @geo_concern end |
Instance Method Details
#identifier ⇒ String
Returns the identifier to use with WMS/WFS/WCS services.
13 14 15 16 17 |
# File 'app/services/geo_concerns/discovery/document_builder/wxs.rb', line 13 def identifier return unless geo_file_set? return file_set.id unless @config && visibility "#{@config[:workspace]}:#{file_set.id}" if @config[:workspace] end |
#wfs_path ⇒ String
Returns the wfs server url.
28 29 30 31 |
# File 'app/services/geo_concerns/discovery/document_builder/wxs.rb', line 28 def wfs_path return unless @config && visibility && geo_file_set? "#{path}/#{@config[:workspace]}/wfs" end |
#wms_path ⇒ String
Returns the wms server url.
21 22 23 24 |
# File 'app/services/geo_concerns/discovery/document_builder/wxs.rb', line 21 def wms_path return unless @config && visibility && geo_file_set? "#{path}/#{@config[:workspace]}/wms" end |