MySQL Forums
Forum List  »  GIS

Re: Bulk insert of geometry types
Posted by: Joseph Luttz
Date: January 02, 2011 07:20PM

The following works for me:

Input file:

32342342334 LINESTRING(11347.1232 32322.7576)
32341342234 LINESTRING(12311.2232 32320.3304)

Query:

LOAD DATA INFILE 'c:\myFile.txt'
INTO TABLE `tbl_myTable`
(@var1, @var2)
SET
obj_id = @var1,
obj_geo = GeomFromText(@var2);

Options: ReplyQuote


Subject
Views
Written By
Posted
8530
September 21, 2010 09:42AM
3317
October 05, 2010 06:12AM
Re: Bulk insert of geometry types
3228
January 02, 2011 07:20PM
2925
November 05, 2010 09:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.