The invention relates to the technical field of map
slicing, and discloses a freehand map hierarchical
slicing method for
agriculture tourism science and technology service, which comprises the following steps: acquiring a freehand map of a target area, determining a minimum enclosing rectangle covering the freehand map, and acquiring geographic coordinates of vertexes of the minimum enclosing rectangle; performing feature point detection on the hand-drawn map to obtain a feature point distribution map; determining a scaling hierarchy,
slicing the hand-drawn map, and determining the row and column numbers of each tile; calculating a first coordinate of each tile, and calculating a second coordinate based on the geographic coordinate; judging whether the range covered by the first coordinate is within the range covered by the second coordinate, if so, calculating the pixel coordinate of the tile corresponding to the first coordinate in the hand-drawn map, and otherwise, setting the tile corresponding to the first coordinate as blank; querying feature points covered by the pixel coordinates in the feature distribution map, and
resampling tiles corresponding to the pixel coordinates based on the feature points to obtain new tiles corresponding to each tile; and storing all the new tiles according to the scaling hierarchy and the row and column number corresponding to each tile. According to the invention, the quality of the hand-drawn map slice can be effectively improved; and meanwhile, the data storage pressure, the network transmission pressure and the front-end rendering pressure are reduced for the tile service application.