The Medway Police has the guidelines for all residential or commercial boundary fences. They will be glad to give you a copy of their Informational Sheet and answer any questions. You may contact them at (508) 533-3212.
A Pool Enclosure is part of your Pool application / permit and is issued by the Building Department.