Skip to content

Commit

Permalink
Geometry column generic type of BLOB support
Browse files Browse the repository at this point in the history
  • Loading branch information
bosborn committed Nov 14, 2023
1 parent a4048fb commit adbf9df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion geopackage-ios/features/user/GPKGFeatureTableReader.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ -(GPKGFeatureTable *) readFeatureTableWithConnection: (GPKGConnection *) db{
}

-(GPKGUserTable *) createTableWithName: (NSString *) tableName andColumns: (NSArray *) columns{
return [[GPKGFeatureTable alloc] initWithTable:tableName andGeometryColumn:self.columnName andColumns:columns];
GPKGFeatureTable *table = [[GPKGFeatureTable alloc] initWithTable:tableName andGeometryColumn:self.columnName andColumns:columns];
GPKGFeatureColumn *geometryColumn = [table geometryColumn];
if (geometryColumn != nil && geometryColumn.geometryType == SF_NONE) {
[geometryColumn setGeometryType:SF_GEOMETRY];
}
return table;
}

-(GPKGUserColumn *) createColumnWithTableColumn: (GPKGTableColumn *) tableColumn{
Expand Down

0 comments on commit adbf9df

Please sign in to comment.