http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90521

Revision: 90521
Author:   jeroendedauw
Date:     2011-06-21 11:45:16 +0000 (Tue, 21 Jun 2011)
Log Message:
-----------
rem coordinate table init code since SMW now handles this stuff

Modified Paths:
--------------
    trunk/extensions/SemanticMaps/SemanticMaps.php
    trunk/extensions/SemanticMaps/includes/SM_GeoCoordsHooks.php

Modified: trunk/extensions/SemanticMaps/SemanticMaps.php
===================================================================
--- trunk/extensions/SemanticMaps/SemanticMaps.php      2011-06-21 10:52:21 UTC 
(rev 90520)
+++ trunk/extensions/SemanticMaps/SemanticMaps.php      2011-06-21 11:45:16 UTC 
(rev 90521)
@@ -104,9 +104,6 @@
 // Hook for initializing the Geographical Coordinate type.
 $wgHooks['smwInitDatatypes'][] = 'SMGeoCoordsHooks::initGeoCoordsType';
 
-// Hook for defining a table to store geographical coordinates in.
-$wgHooks['SMWPropertyTables'][] = 'SMGeoCoordsHooks::initGeoCoordsTable';
-
 // Hook for defining the default query printer for queries that ask for 
geographical coordinates.
 $wgHooks['SMWResultFormat'][] = 'SMGeoCoordsHooks::addGeoCoordsDefaultFormat'; 
 

Modified: trunk/extensions/SemanticMaps/includes/SM_GeoCoordsHooks.php
===================================================================
--- trunk/extensions/SemanticMaps/includes/SM_GeoCoordsHooks.php        
2011-06-21 10:52:21 UTC (rev 90520)
+++ trunk/extensions/SemanticMaps/includes/SM_GeoCoordsHooks.php        
2011-06-21 11:45:16 UTC (rev 90521)
@@ -77,25 +77,4 @@
                return true;
        }
        
-       /**
-        * Defines the layout for the smw_coords table which is used to store 
value of the GeoCoords type.
-        * 
-        * @since 1.0
-        * 
-        * @param array $propertyTables The property tables defined by SMW, 
passed by reference.
-        */
-       public static function initGeoCoordsTable( array $propertyTables ) {
-               // No spatial extensions support for postgres yet, so just 
store as 2 float fields.
-               $signature = array( 'lat' => 'f', 'lon' => 'f' );
-               $indexes = array_keys( $signature );
-               
-               $propertyTables['smw_coords'] = new SMWSQLStore2Table(
-                       'sm_coords',
-                       $signature,
-                       $indexes // These are the fields that should be indexed.
-               );
-               
-               return true;
-       }
-       
 }


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to