Drainage basin map making method for vector graphic file
A vector graphics and map drawing technology, applied in the field of map drawing, can solve the problems of low efficiency and complicated operation of the watershed map drawing process, and achieve the effect of realizing the automation of the whole process.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] A method for making watershed maps oriented to vector graphics files, such as figure 1 shown, including the following steps:
[0061] S1. File input: take the vector graphics file (.shp) required for watershed map drawing as input data, use the Reader function in the Python third-party library Shapefile, and read it according to the storage path of the vector graphics file required for watershed map drawing The regional boundary data; the vector graphic files include the vector graphic files of the national boundary of country A, the river network of country A and the boundary of the target watershed;
[0062] S2. Data processing: According to the obtained regional boundary data, extract all the points data of irregular graphic boundaries sequentially, and use the geometry.Polygon and geometry.LineString functions in the Python third-party library Shapely to construct the river network of country A and the target watershed boundary The vector graphics; the points are t...
Embodiment 2
[0094] This embodiment 2 provides an example based on the application of the vector graphic file-oriented watershed map drawing method provided in the embodiment 1 to the watershed drawing in the upper reaches of the Yangtze River in China.
[0095] S1. Store the vector graphics files of China's national boundaries, river networks and target watershed boundaries required for basin mapping in the same folder, define variables path_China, path_rivernet and path_bssin respectively and store the corresponding paths, read through the Reader function in Shapefile Get these files.
[0096] S2. Use the Python third-party library Shapely for data processing, including river network cropping and calculation of basin map element distribution:
[0097] ①Use the geometry.Polygon and geometry.LineString functions in Shapely to construct the vector graphics of the watershed boundary and the Chinese river network;
[0098] ②Using the for loop in Python, read each vector graphic object in the...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com