We study several polygonal curve problems under the Fr\'{e}chet distance via algebraic geometric methods. Let Xmd and Xkd be the spaces of all polygonal curves of m and k vertices in Rd, respectively. We assume that k≤m. Let Rk,md be the set of ranges in Xmd for all possible metric balls of polygonal curves in Xkd under the Fr\'{e}chet distance. We prove a nearly optimal bound of O(dklog(km)) on the VC dimension of the range space (Xmd,Rk,md), improving on the previous O(d2k2log(dkm)) upper bound and approaching the current Ω(dklogk) lower bound. Our upper bound also holds for the weak Fr\'{e}chet distance. We also obtain exact solutions that are hitherto unknown for curve simplification, range searching, nearest neighbor search, and distance oracle.