Put the sugar and water in a pot and heat over medium heat until just before boiling. Reduce heat and stir until sugar is dissolved. Remove from heat and add ginger and rosemary. Allow to steep 15 – 20 minutes and strain into a covered glass jar or pitcher. Keep in the fridge until ready to use.