From 2ece071d16072cf819e5ad89cdf0b5d14979ff02 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 25 Oct 2010 17:38:57 +0000 Subject: =?UTF-8?q?=E2=80=A2=20if=20a=20geometry=20field=20is=20empty=20''?= =?UTF-8?q?=20return=20@""=20instead=20of=20Header=20Error=20since=20mysql?= =?UTF-8?q?=20return=20that=20special=20value=20as=20X''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Frameworks') diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m b/Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m index f8c1bbf6..aafdba0e 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m @@ -112,7 +112,7 @@ NSMutableString *wkt = [NSMutableString string]; if (bufferLength < WKB_HEADER_SIZE) - return @"Header Error"; + return @""; memcpy(&srid, &geoBuffer[0], SIZEOF_STORED_UINT32); ptr += SIZEOF_STORED_UINT32; @@ -726,7 +726,7 @@ NSUInteger ptr = BUFFER_START; // pointer to geoBuffer while parsing if (bufferLength < WKB_HEADER_SIZE) - return @"Header Error"; + return @"-1"; byteOrder = geoBuffer[ptr]; -- cgit v1.2.3