在navicat中还原psc 文件报错 Cannot get geometry object from data you send to the GEOMETRY field

这是由于数据库中的表含有geometry类型或linestring类型等字段导致的,
把psc提取成sql
geometry
sql里面是’POLYGON((121.3434 13.567) )’
替换成
geomfromtext(‘point(121.6432715 31.195808)’)),
linestring用POINTFROMTEXT或GeomFromText代替
insert into test(id,value) values (1,POINTFROMTEXT(‘LINESTRING(121.568074 31.173416, 121.566722 31.175876)’));
insert into test(id,value) values (1,GeomFromText(‘LINESTRING(121.568074 31.173416, 121.566722 31.175876)’));
等等。。

你可能感兴趣的:(mysql)