MySQL中将经纬度字段转Geometry字段

 

update station set shape = ST_GeomFromText(CONCAT( 'POINT(', x, ' ', y, ')' ));

 

CONCAT( 'POINT(', x, ' ', y, ')' )


select * from station

 

posted @ 2019-03-21 23:18  ParamousGIS  阅读(3672)  评论(0)    收藏  举报