I want to load spatial data into mysql using a csv i have generated from a postgres table and when loading it into mysql database using phpmyadmin it complains Cannot get geometry object from data you send to the GEOMETRY field. How best can i export postgis geometry into mysql using a csv without generating errors.
I have created a mysql table as
CREATE TABLE cadastre
(
gid int(11) auto_increment NOT NULL,
geom MultiPolygon NOT NULL,
lpkey varchar(50),
SPATIAL INDEX(geom),
PRIMARY KEY (gid
)
)ENGINE=MyISAM DEFAULT CHARSET=latin1;
↧
Postgis csv and error loading into mysql
↧