The copyright of data is a key point that needs to be solved in spatial data infrastructure for data sharing. In this paper, we propose a decentralized digital rights management model of spatial data, which can provide a novel way of solving the existing copyright management problem or other problems in spatial data infrastructure for data sharing. An Ethereum smart contract is used in this model to realize spatial data digital rights management function. The InterPlanetary File System is utilized as external data storage for storing spatial data in the decentralized file system to avoid data destruction that is caused by a single point of failure. There is no central server in the model architecture, which has a completely decentralized nature and it makes spatial data rights management not dependent on third-party trust institutions. We designed three spatial data copyright management algorithms, developed a prototype system to implement and test the model, used the smart contract security verification tool to check code vulnerabilities, and, finally, discussed the usability, scalability, efficiency, performance, and security of the proposed model. The result indicates that the proposed model not only has diversified functions of copyright management compared with previous studies on the blockchain-based digital rights management, but it can also solve the existing problems in traditional spatial data infrastructure for data sharing due to its characteristics of complete decentralization, mass orientation, immediacy, and high security.Research are examples of such platforms. Digital rights management (DRM) refers to the techniques that are used by publishers to control the rights of protected objects [4]. Subsequently, the process of publishing spatial science data can be described as applying digital rights management to data sharing to solve the copyright problem of spatial science data. Since existing scientific data publishing schemes all use traditional digital rights management technology, these schemes have both their own shortcomings and shortcomings in traditional digital rights management technology, mainly including:(1) They are aimed at scientific data produced in scientific research papers, and non-scientists are basically unable to participate, which limits the scope of data sharing; (2) The application process is cumbersome in traditional digital rights management, the copyright registration takes a long time, and the review process is expensive. Moreover, the publication of the paper needs periodic review in spatial data publishing schemes, which increases the time cost of data sharing; (3) At present, most of the scientific data publishing systems are centralized, thus, if the server in the system fails, it will cause temporary or permanent inability to access services and data, which will cause immeasurable losses to both publishers and users; and, (4) The centralized digital rights management system has the risk of illegal tampering with copyright registration information that is caused by in...