- Windows 10
- Python==3.7.0
- Pillow==8.0.1
- selenium==3.141.0
- Google Chrome 87.0.4280.66
- MATLAB R2019b
- Apply API console key in BaiduMap. Select target city and maplevel
- cityname = 'beijing'
- maplevel = 12 # not greater than 19, the higher, the finer(Please refer to BaiduMapAPI).
python main.py cityname maplevel
- Coordinate boundary of cityname. -> bound/cityname.json
- Pixel boundary of cityname. -> dpi/cityname.json
- Roadmap patches of cityname. -> patch/cityname-maplevel.
- Complete road map picture. -> picture/cityname-maplevel.png.
imageProcess.m
- processing road network picture. Pixel position of road network. -> pixel/beijing-12.txt
python corner.py cityname maplevel
(Optional)- Simplified the pixel-level edge by corner detection. -> pixel/beijing-12-simplified.txt
python pixel2coor.py cityname maplevel
- Utilizing baiduAPI to transform pixel-level position to longitude and latitude. -> coor/beijing-12-simplified.txt
python coorTransform.py cityname maplevel
(Optional)- Transform coordinates from bd09 to gcj02. -> coor/beijing-12-simplified-gcj.txt
- Erzhuo Shao and Jie Feng
- Erzhuo Shao: Wechat : shaoerzhuo, E-mail : sez20@mails.tsinghua.edu.cn
- Jie Feng : E-mail : fengj12ee@hotmail.com