Substantiating the contents, structure and software implementation of the territorial formations geospatial knowledge base · Study