function florida_district_reader_test ( )

%*****************************************************************************80
%
%% FLORIDA_DISTRICT_READER_TEST tests FLORIDA_DISTRICT_READER.
%
%  Discussion:
%
%    Reques that the file "florida_district.txt" be read, and the
%    longitude, latitude, and tag for each city be returned.
%
%    Print and plot the data.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    28 June 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'FLORIDA_DISTRICT_READER_TEST:\n' );
  fprintf ( 1, '  FLORIDA_DISTRICT_READER reads a file "florida_district.txt"\n' );
  fprintf ( 1, '  and returns the longitude, latitude, and name of a city in\n' );
  fprintf ( 1, '  each Florida congressional district.\n' );
%
%  Read the longitude, latitude and name of each city.
%
  filename = 'florida_district.txt';
  [ lon, lat, city, tag ] = florida_district_reader ( filename );
%
%  Get the size of the data.
%
  n = length ( lon );
%
%  Print the data.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, ' #  City                      Longitude       Latitude\n' );
  fprintf ( 1, '\n' );
  for i = 1 : n
    fprintf ( 1, '%2d  %-18s  %14.6f  %14.6f\n', i, city{i}, lon(i), lat(i) );
  end

  plot ( lon, lat, 'b.', 'MarkerSize', 30 );
  for i = 1 : n
    text ( lon(i) - 0.05, lat(i) + 0.12, tag{i}, 'Fontsize', 12 );
  end
  xlabel ( 'Longitude (Degrees)' )
  ylabel ( 'Latitude (Degrees)' )
%
%  Save a copy of the plot.
%
  print ( '-dpng', 'florida_district_reader.png' );

  return
end

