<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_geojson(self, filename):
 """Save vector as geojson."""

        with open(filename, 'w') as fd:
            json.dump(self.to_record(WGS84_CRS), fd)