Pei Xiu is best known for his work in cartography. Although professional map-making and use of the grid had existed in China before him, he was the first to mention a plotted geometrical grid reference and graduated scale displayed on the surface of maps to gain greater accuracy in the estimated distance between different locations. Historian Howard Nelson asserts that there is ample written evidence that Pei Xiu derived the idea of the grid reference from the map of Zhang Heng, a polymath inventor and statesman of the Eastern Han period. Robert Temple asserts that Zhang Heng should also be credited as the first to establish the mathematical grid in cartography, as evidenced by his work in maps, the titles of his lost books, and the hint given in the Book of Later Han. Xiu also created a set of large-area maps that were drawn to scale. He produced a set of principles that stressed the importance of consistent scaling, directional measurements, and adjustments in land measurements in the terrain that was being mapped. The preface to Pei Xiu's written work was preserved in the 35th volume of the Book of Jin, which is the official history for the Jin dynasty and one of the Twenty-four Histories. It was written in the Book of Jin that Pei Xiu made a critical study of ancient texts in order to update the naming conventions of geographic locations described in old texts. His maps – drawn on rolls of silk – were presented to Emperor Wu, who preserved them in the imperial court's archives. Pei Xiu's maps have since been lost, decayed or destroyed. Yet the oldest existing terrain maps from China date to the fourth century BCE, found in a Qin tomb in present-day Gansu in 1986. Han dynasty maps from the second century BCE were found earlier in the 1973 excavation of Mawangdui. In 1697, the Qing dynasty cartographer Hu Wei reconstructed Pei Xiu's maps in his Yugong Zhuizhui. Modern scholars have also used Pei Xiu's writing to reproduce his works, and historians such as Herrmann have compared Pei Xiu to other great ancient cartographers such as the Greek cartographer Ptolemy.
Written works
Pei Xiu wrote a preface to his maps with essential background information regarding older maps in China. He also provided a great deal of criticism about the existing maps from the Han dynasty in his time. Later Chinese ideas about the quality of maps made during the Han dynasty and before stem from the assessment given by Pei Xiu, which was not a positive one. Pei Xiu noted that the extant Han maps at his disposal were of little use since they featured too many inaccuracies and exaggerations in measured distance between locations. However, the Qin maps and Mawangdui maps of the Han dynasty discovered by modern archaeologists were far superior in quality than those examined and criticised by Pei Xiu. It was not until the 20th century that Pei Xiu's third century assessment of earlier maps' dismal quality would be overturned and disproven. The makers of the Han maps were familiar with the use of scale, while the Qin map makers had pinpointed the course of rivers with some accuracy. What these earlier maps did not feature was topographical elevation, which Pei Xiu would outline with his six principles of cartography. Pei Xiu's preface describes geographers in the Xia, Shang and Zhou dynasties, although the earliest known geographical work was the Yu Gong chapter of the Shu Ji or Book of Documents, compiled in the fifth century BCE during the mid Zhou period. Pei Xiu also referred to Xiao He, who assembled the maps made during the fall of the Qin dynasty. This was done after the founder of the Han dynasty, Liu Bang, had sacked the city ofXianyang. Pei Xiu states: Pei Xiu continues his preface with short background information on the conquests by the Jin dynasty and the impressive maps commissioned by Sima Zhao. He then described the methods he used to create new maps while examining the ancient text of the Yu Gong or Tribute of Yu to create historical maps: Pei Xiu outlined six principles that should be observed when creating a map. He then defended his position and each of the six principles with a short explanation as to how they provide better accuracy in map-making and cartography. The first three principles outlined the use of scale, direction and road distance, while the last three principles are used to properly calculate distances on uneven terrain as represented on a flat, two dimensional map. Pei Xiu states: