lib/miami_dade_geo/geo_attribute_client.rb
def all_fields(table, field_name, value)
      body = savon.
             call(:get_all_fields_records_given_a_field_name_and_value,
                  message: {
                    'strFeatureClassOrTableName' => table,
                    'strFieldNameToSearchOn' => field_name,
                    'strValueOfFieldToSearchOn' => value
                  }).
             body

      resp = body[:get_all_fields_records_given_a_field_name_and_value_response]
      rslt = resp[:get_all_fields_records_given_a_field_name_and_value_result]
      polys = rslt[:diffgram][:document_element][:municipality_poly]

      poly = if polys.is_a? Array
               polys.first
             elsif polys.is_a? Hash
               polys
             else
               fail "Unexpected polys #{polys.class.name}, wanted Array or Hash"
             end
    end
def all_fields(table, field_name, value)
      body = savon.
             call(:get_all_fields_records_given_a_field_name_and_value,
                  message: {
                    'strFeatureClassOrTableName' => table,
                    'strFieldNameToSearchOn' => field_name,
                    'strValueOfFieldToSearchOn' => value
                  }).
             body

      resp = body[:get_all_fields_records_given_a_field_name_and_value_response]
      rslt = resp[:get_all_fields_records_given_a_field_name_and_value_result]
      polys = rslt[:diffgram][:document_element][:municipality_poly]

      poly = if polys.is_a? Array
               polys.first
             elsif polys.is_a? Hash
               polys
             else
               fail "Unexpected polys #{polys.class.name}, wanted Array or Hash"
             end
    end
def all_fields ( table , field_name , value ) body = savon . call ( :get_all_fields_records_given_a_field_name_and_value , message : { 'strFeatureClassOrTableName' => table , 'strFieldNameToSearchOn' => field_name , 'strValueOfFieldToSearchOn' => value } ) . body resp = body [ :get_all_fields_records_given_a_field_name_and_value_response ] rslt = resp [ :get_all_fields_records_given_a_field_name_and_value_result ] polys = rslt [ :diffgram ] [ :document_element ] [ :municipality_poly ] poly = if polys . is_a? Array polys . first elsif polys . is_a? Hash polys else fail "Unexpected polys #{polys.class.name}, wanted Array or Hash" end end
Performs a search for geo-attributes.

 @param [String] table the table to search
 @param [String] field_name the field/column to search in the given table
 @param [String] value string value to search in the given field and table
 @return [Hash] search results
Performs a search for geo - attributes .