使用ogr2ogr命令转换文件格式
1.下载gdal环境工具
如:D:\resource\release-1911-x64-gdal-2-4-0-mapserver-7-2-2,进入该目录下,以管理员身份运行SDKShell.bat,直接可以输入ogr2ogr命令
2.文件转换
mif文件转sqlite文件(mid/mif文件成对出现)
ogr2ogr -f "sqlite" new.sqlite new.mif
shp转GeoJSON格式
ogr2ogr -f "GeoJSON" test.json test.shp