spherely.prepare

Contents

spherely.prepare#

spherely.prepare(geography, /)#

Prepare a geography, improving performance of other operations.

A prepared geography is a normal geography with added information such as an index on the line segments. This improves the performance of the following operations.

This function does not recompute previously prepared geographies; it is efficient to call this function on an array that partially contains prepared geographies.

This function updates the input geographies in-place!

Parameters:

geography (Geography or array_like) – Geography object(s).

Returns:

prepared (Geography or array) – The same input Geography object(s) with an attached index.