Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
admin:features:geo:indexing [2011/01/10 23:34]
els created
admin:features:geo:indexing [2012/10/26 14:57] (current)
Line 1: Line 1:
 +~~NOTOC~~
 {{page>:​top_add&​nofooter&​noeditbtn}} {{page>:​top_add&​nofooter&​noeditbtn}}
  
Line 5: Line 6:
 ===== Geographic Searches ===== ===== Geographic Searches =====
  
-[[admin:​features:​geo:​home|Overview]] ​-> [[admin:​features:​geo:​latlong|Latitude and Longitude]] ​-> [[admin:​features:​geo:​radius|Radius Distance Searches]] ​-> **[[admin:​features:​geo:​indexing|Indexing]]** ​-> [[admin:​features:​geo:​optimization|Optimization]]+[[admin:​features:​geo:​home|Overview]] ​| [[admin:​features:​geo:​latlong|Latitude and Longitude]] ​| [[admin:​features:​geo:​radius|Radius Distance Searches]] ​| **[[admin:​features:​geo:​indexing|Indexing]]** ​| [[admin:​features:​geo:​optimization|Optimization]]
 ---- ----
  
Line 15: Line 16:
   * DOUBLE   * DOUBLE
   * CHARACTER   * CHARACTER
-  * C STRING+  * STRING
  
 If geographic coordinates are stored in character-class datatypes, Omnidex will parse the latitude and longitude. ​ Omnidex can accept the following notations: If geographic coordinates are stored in character-class datatypes, Omnidex will parse the latitude and longitude. ​ Omnidex can accept the following notations:
Line 32: Line 33:
 **Example** **Example**
  
-<​code>​+<​code ​sql>
 create table               "​ZIPCODES"​ create table               "​ZIPCODES"​
- ​physical ​                 "dat\zipcodes.dat"​+ ​physical ​                 "dat/zipcodes.dat"​
  (  (
-  "​ZIP" ​                   ​C STRING(9) ​                        +  "​ZIP" ​                   STRING(9) ​                        
-  "​CITY" ​                  C STRING(25) ​                      +  "​CITY" ​                  ​STRING(25) ​                      
   "​COUNTY_CODE" ​           CHARACTER(3),​   "​COUNTY_CODE" ​           CHARACTER(3),​
   "​STATE" ​                 CHARACTER(2), ​                     ​   "​STATE" ​                 CHARACTER(2), ​                     ​
Line 51: Line 52:
 </​code>​ </​code>​
  
-===== Indexing Geographic Coordinates ​=====+==== Indexing Geographic Coordinates ====
  
 Geographic coordinates are indexed in a multi-column Omnidex index containing first the latitude and then the longitude. ​ This index will then be available for use in optimizing the [[dev:​sql:​functions:​distance|$DISTANCE function]] in SQL SELECT statements. Geographic coordinates are indexed in a multi-column Omnidex index containing first the latitude and then the longitude. ​ This index will then be available for use in optimizing the [[dev:​sql:​functions:​distance|$DISTANCE function]] in SQL SELECT statements.
  
-<​code>​+<​code ​sql>
 create table               "​ZIPCODES"​ create table               "​ZIPCODES"​
- ​physical ​                 "dat\zipcodes.dat"​+ ​physical ​                 "dat/zipcodes.dat"​
  (  (
-  "​ZIP" ​                   ​C STRING(9),​ +  "​ZIP" ​                   STRING(9),​ 
-  "​CITY" ​                  C STRING(25),+  "​CITY" ​                  ​STRING(25),​
   "​COUNTY_CODE" ​           CHARACTER(3),​   "​COUNTY_CODE" ​           CHARACTER(3),​
   "​STATE" ​                 CHARACTER(2),​   "​STATE" ​                 CHARACTER(2),​
Line 83: Line 84:
  
   * [[admin:​optimization:​home|Optimization Strategies]]   * [[admin:​optimization:​home|Optimization Strategies]]
-  * [[admin:optimization:​geo:​math|The Math Behind Geographic Searches]]+  * [[admin:features:​geo:​math|The Math Behind Geographic Searches]]
   * [[dev:​sql:​functions:​distance|$DISTANCE function]]   * [[dev:​sql:​functions:​distance|$DISTANCE function]]
  
 
Back to top
admin/features/geo/indexing.1294702483.txt.gz · Last modified: 2012/10/26 14:51 (external edit)