Sha256: 6e93ec815cc8a147762e5b1e29c73c533c3a2b75d29704d014b14da805e4e875

Contents?: true

Size: 1.69 KB

Versions: 8

Compression:

Stored size: 1.69 KB

Contents

require 'active_model'
require 'yaml'
require 'confstruct'
require 'restclient'
require 'nokogiri'
require 'time'

# RGeoServer is a Ruby client for the GeoServer RESTful Configuration interface.
module RGeoServer
  require 'rgeoserver/version'
  require 'rgeoserver/config'

  autoload :Catalog,              "rgeoserver/catalog"
  autoload :Coverage,             "rgeoserver/coverage"
  autoload :CoverageStore,        "rgeoserver/coveragestore"
  autoload :DataStore,            "rgeoserver/datastore"
  autoload :FeatureType,          "rgeoserver/featuretype"
  autoload :GeoServerUrlHelpers,  "rgeoserver/geoserver_url_helpers"
  autoload :Layer,                "rgeoserver/layer"
  autoload :LayerGroup,           "rgeoserver/layergroup"
  autoload :Namespace,            "rgeoserver/namespace"
  autoload :ResourceInfo,         "rgeoserver/resource"
  autoload :RestApiClient,        "rgeoserver/rest_api_client"
  autoload :Style,                "rgeoserver/style"
  autoload :WmsStore,             "rgeoserver/wmsstore"
  autoload :Workspace,            "rgeoserver/workspace"

  autoload :BoundingBox,          "rgeoserver/utils/boundingbox"
  autoload :Metadata,             "rgeoserver/utils/metadata"
  autoload :ShapefileInfo,        "rgeoserver/utils/shapefile_info"

  # @return [Catalog] the default GeoServer Catalog instance
  def self.catalog opts = nil, reload = false
    @@catalog ||= nil
    if reload || @@catalog.nil?
      @@catalog = RGeoServer::Catalog.new (opts.nil?? RGeoServer::Config[:geoserver] : opts)
    end
    @@catalog
  end

  class RGeoServerError < StandardError
  end

  class GeoServerInvalidRequest < RGeoServerError
  end
  
  class GeoServerArgumentError < RGeoServerError
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rgeoserver-0.10.1 lib/rgeoserver.rb
rgeoserver-0.10.0 lib/rgeoserver.rb
rgeoserver-0.9.1 lib/rgeoserver.rb
rgeoserver-0.9.0 lib/rgeoserver.rb
rgeoserver-0.8.0 lib/rgeoserver.rb
rgeoserver-0.7.10 lib/rgeoserver.rb
rgeoserver-0.7.9 lib/rgeoserver.rb
rgeoserver-0.7.8 lib/rgeoserver.rb