@@ -6,41 +6,41 @@ class Factory implements \GeoIO\Factory
66{
77 public function createPoint ($ dimension , array $ coordinates , $ srid = null )
88 {
9- return new Point ($ coordinates ['y ' ], $ coordinates ['x ' ]);
9+ return new Point ($ coordinates ['y ' ], $ coordinates ['x ' ], $ srid );
1010 }
1111
1212 public function createLineString ($ dimension , array $ points , $ srid = null )
1313 {
14- return new LineString ($ points );
14+ return new LineString ($ points, $ srid );
1515 }
1616
1717 public function createLinearRing ($ dimension , array $ points , $ srid = null )
1818 {
19- return new LineString ($ points );
19+ return new LineString ($ points, $ srid );
2020 }
2121
2222 public function createPolygon ($ dimension , array $ lineStrings , $ srid = null )
2323 {
24- return new Polygon ($ lineStrings );
24+ return new Polygon ($ lineStrings, $ srid );
2525 }
2626
2727 public function createMultiPoint ($ dimension , array $ points , $ srid = null )
2828 {
29- return new MultiPoint ($ points );
29+ return new MultiPoint ($ points, $ srid );
3030 }
3131
3232 public function createMultiLineString ($ dimension , array $ lineStrings , $ srid = null )
3333 {
34- return new MultiLineString ($ lineStrings );
34+ return new MultiLineString ($ lineStrings, $ srid );
3535 }
3636
3737 public function createMultiPolygon ($ dimension , array $ polygons , $ srid = null )
3838 {
39- return new MultiPolygon ($ polygons );
39+ return new MultiPolygon ($ polygons, $ srid );
4040 }
4141
4242 public function createGeometryCollection ($ dimension , array $ geometries , $ srid = null )
4343 {
44- return new GeometryCollection ($ geometries );
44+ return new GeometryCollection ($ geometries, $ srid );
4545 }
4646}
0 commit comments