Powiadomienia
Wyczyść wszystko
BugOverflow
1
Wpisy
1
Użytkownicy
0
Reactions
962
Widoki
0
07/02/2022 7:06 pm
Rozpoczynający temat
example
1 odpowiedź
0
07/02/2022 7:09 pm
Rozpoczynający temat
Remember: First and last point HAVE TO BE same. if not then expect
error Invalid parameter value: 3037 Invalid GIS data provided to function st_geomfromtext
example
$mysqlStringPolygon = "POLYGON((1 1,1 5,4 9,6 9,9 3,7 2,1 1))"; $coords = new MapCoord(); $coords->polygon = \DB::raw("ST_GeomFromText('$mysqlStringPolygon')"); $coords->save();