Encode LineString test
Implement LineString encoding
Add GeoPolygon encoding tests
Fix GeoPolygon encoding tests, and implement encoding