From 31a31c1fb9d46e9c6db1c836e03314b0b534194c Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sat, 9 Oct 2010 23:16:37 +0000 Subject: =?UTF-8?q?=E2=80=A2=20enabled=20SRID=20editing=20of=20spatial=20f?= =?UTF-8?q?ields=20via=20WKT=20string=20-=20the=20SRID=20value=20will=20be?= =?UTF-8?q?=20appended=20at=20the=20WKT=20string=20like=20POINT(1=201),101?= =?UTF-8?q?=20which=20will=20be=20transformed=20to=20GeomFromText('POINT(1?= =?UTF-8?q?=201)',101)=20on=20the=20fly=20-=20otherwise=20the=20SRID=20inf?= =?UTF-8?q?ormation=20will=20be=20deleted=20after=20editing=20a=20geometry?= =?UTF-8?q?=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPDataImport.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPDataImport.m') diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m index d467e0a1..98cbb697 100644 --- a/Source/SPDataImport.m +++ b/Source/SPDataImport.m @@ -1358,7 +1358,7 @@ } else { // Apply GeomFromText() for each geometry field if([geometryFields count] && [geometryFieldsMapIndex containsIndex:i]) { - [valueString appendFormat:@"GeomFromText('%@')", [mySQLConnection prepareString:cellData]]; + [valueString appendString:[mySQLConnection prepareString:[(NSString*)cellData getGeomFromTextFromString]]]; } else { [valueString appendFormat:@"'%@'", [mySQLConnection prepareString:cellData]]; } -- cgit v1.2.3