simplify geometries before serializing