Class: GeoWorks::Discovery::DocumentBuilder::Wxs
- Inherits:
-
Object
- Object
- GeoWorks::Discovery::DocumentBuilder::Wxs
- Defined in:
- app/services/geo_works/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
Instance Attribute Details
#geo_concern ⇒ Object (readonly)
Returns the value of attribute geo_concern.
7 8 9 |
# File 'app/services/geo_works/discovery/document_builder/wxs.rb', line 7 def geo_concern @geo_concern end |
Instance Method Details
#identifier ⇒ String
Returns the identifier to use with WMS/WFS/WCS services.
15 16 17 18 19 |
# File 'app/services/geo_works/discovery/document_builder/wxs.rb', line 15 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.
30 31 32 33 |
# File 'app/services/geo_works/discovery/document_builder/wxs.rb', line 30 def wfs_path return unless @config && visibility && geo_file_set? "#{path}/#{@config[:workspace]}/wfs" end |
#wms_path ⇒ String
Returns the wms server url.
23 24 25 26 |
# File 'app/services/geo_works/discovery/document_builder/wxs.rb', line 23 def wms_path return unless @config && visibility && geo_file_set? "#{path}/#{@config[:workspace]}/wms" end |