Method: MarkLogic::DatabaseSettings::GeospatialElementIndex#initialize

Defined in:
lib/marklogic/database_settings/geospatial_element_index.rb

#initialize(element_name, options = {}) ⇒ GeospatialElementIndex

Returns a new instance of GeospatialElementIndex.



7
8
9
10
11
12
13
14
# File 'lib/marklogic/database_settings/geospatial_element_index.rb', line 7

def initialize(element_name, options = {})
  @localname = element_name
  @coordinate_system = options[:coordinate_system] || MarkLogic::GEO_WGS84
  @point_format = options[:point_format] || MarkLogic::POINT
  @range_value_positions = options[:range_value_positions] || false
  @invalid_values = options[:invalid_values] || MarkLogic::REJECT
  @facet = options[:facet] || false
end