aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPGeometryData.m4
1 files changed, 2 insertions, 2 deletions
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];