Index: trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php |
— | — | @@ -63,11 +63,12 @@ |
64 | 64 | |
65 | 65 | // No spatial extensions support for postgres yet, so just store as 2 float fields. |
66 | 66 | $signature = $smgUseSpatialExtensions ? array( 'point' => 'c' ) : array( 'lat' => 'f', 'lon' => 'f' ); |
| 67 | + $indexes = $smgUseSpatialExtensions ? array( array( 'point', 'SPATIAL INDEX' ) ) : array_keys( $signature ); |
67 | 68 | |
68 | 69 | $propertyTables['smw_coords'] = new SMWSQLStore2Table( |
69 | 70 | 'sm_coords', |
70 | 71 | $signature, |
71 | | - array_keys( $signature ) // These are the fields that should be indexed. |
| 72 | + $indexes // These are the fields that should be indexed. |
72 | 73 | ); |
73 | 74 | |
74 | 75 | return true; |