anchor.diff:      DistL = binary_to_list(Dist),
   
       % Partition into the digits and units
  +    % 45 is -
  +    % 46 is .
  +    % 48 is 0
  +    % 57 is 9
       {DistDig, Unit} = lists:partition(fun(Char) ->
  -        Char >= "0" orelse Char =< "9" orelse Char == "-" orelse Char == "."
  +        ((Char >= 48) and (Char =< 57)) orelse Char == 45 orelse Char == 46
       end, DistL),
   
       % Convert the distance to a float
  
positive.code:             end
      end.
  
  
negative.code: association_line(ID, Geo) ->
      #geometry{mbr=[{Lat, _}, {Lng, _}]} = Geo,
      IDs = integer_to_list(ID),
      LatS = format_float(Lat),
      LngS = format_float(Lng),
      [<<"GID=">>, IDs, ?SPACE, <<"lat=">>, LatS, ?SPACE, <<"lng=">>, LngS].
  
  
  