The invention relates to the technical field of
civil engineering, and discloses a CAD earthwork calculation and
land use automatic optimization method and
system, and the method comprises the following steps: S1,
data input: reading CAD graphic data and configuration parameters, verifying the closeness, validity and legality of the data, and storing the data in a
database; the CAD graphic data comprises
land use range boundaries,
terrain elevation points and road center lines; s2, performing dual-mode adaptive earthwork calculation: counting the number N of elevation points, calculating a
land area A and an elevation standard deviation sigma, determining an adaptive threshold Nthreshold = f (A, N, sigma, alpha), adaptively selecting a
calculation algorithm according to the relationship between N and Nthreshold, and outputting an excavation amount, a filling amount and a clear soil amount. The CAD earthwork calculation and
land use automatic optimization method and
system have the advantages of integrating earthwork calculation, slope calculation, land use optimization and
cost calculation, and being simple in operation, low in learning cost, high in calculation precision, high in efficiency and the like.