A Study on the Spatial Similarity Algorithm for Weather,Soil,Tobacco Quality in Lijiang Tobacco Cultivation

Studying on spatial similarity for weather,soil and tobacco quality provided an important theoretical basis for reasonable spatial layout of tobacco cultivation.In the research,the nearest neighbor search method was used for spatial similarity query,the Manhattan distance method was the basic of similarity measure.But taking into account the factors of inconsistency in the measurement scale, the method may cause some factors weak or ignored because of their measurement scale so small. Therefore,the study improved the Manhattan distance method.Improved Manhattan distance method made each factor equally participate in comparison query.On the establishment of the similarity range, Study also used a very flexible adaptive algorithm.When the program runs,the algorithm of each factor based on the specific circumstances of their data,automatically established the similarity.When the program runs,the algorithm automatically established the similarity based on the specific circumstances of the factor.