Index: trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php |
— | — | @@ -177,11 +177,16 @@ |
178 | 178 | * @see SMWDataValue::getDBkeys |
179 | 179 | */ |
180 | 180 | public function getDBkeys() { |
| 181 | + global $smgUseSpatialExtensions; |
| 182 | + |
181 | 183 | $this->unstub(); |
182 | 184 | |
183 | 185 | if ( $smgUseSpatialExtensions ) { |
184 | | - global $smgUseSpatialExtensions; |
185 | 186 | // TODO |
| 187 | + return array( |
| 188 | + // GeomFromText() |
| 189 | + str_replace( ',', '.', " POINT({$this->mCoordinateSet['lat']} {$this->mCoordinateSet['lon']}) " ) |
| 190 | + ); |
186 | 191 | } |
187 | 192 | else { |
188 | 193 | return array( |