Skip to content

geospatial

2 posts with the tag “geospatial”

The Earth Is Not a Ball

Turning latitude and longitude into vectors you can do geometry on, on an Earth that is lumpier than a sphere.

Latitude and longitude are angles on a curved surface, and you cannot take the dot product of two angles. To do real geometry on the Earth, measure an angle between two cities, feed a region to a spatial index, you first turn each point into a vector in space. The twentieth familiar does that conversion, honestly, across an Earth that is neither round nor drawn on a single map.

The Planet as a Prefix

Turning the whole Earth into search terms a plain text index can answer.

'Find documents within 5 km of here' is not a text query, and you cannot scan your way to it. The trick Xapiand uses is to turn the surface of the Earth into a hierarchy of triangles, give every point a name whose prefix is its neighborhood, and let the text index do the rest. The fifth familiar tiles a planet so a search engine that only knows words can answer questions about space.