A C++ version of pySHPtoJSON.
  • C++ 88.9%
  • CMake 7.4%
  • Shell 3.7%
Find a file
2024-07-10 07:07:56 -03:00
.vscode First commit. 2022-01-03 14:48:18 -03:00
inc New conan and cmake integretion 2024-07-09 12:16:34 -03:00
src vector size 2024-07-10 07:07:56 -03:00
.gitignore Removed windows target. For Now. 2022-01-04 12:11:21 -03:00
build.sh Updated build 2024-07-09 10:25:44 -03:00
CMakeLists.txt New conan and cmake integretion 2024-07-09 12:16:34 -03:00
CMakeUserPresets.json New conan and cmake integretion 2024-07-09 12:16:34 -03:00
conanfile.txt Update conanfile.txt 2024-07-08 09:11:04 -03:00
LICENSE Create LICENSE 2022-01-11 13:40:27 -03:00
README.md New conan and cmake integretion 2024-07-09 12:16:34 -03:00

shptojson

A C++ version of pySHPtoJSON that do parallel conversion, making it way faster. It has a limitation of only being capable to generating GeoJSON files.

All maps are downloaded from IBGE (Instituto Brasileiro de Geografia e Estatística), the agency responsible for statistical, geographic, cartographic, geodetic and environmental information in Brazil and were published on 2022.

Usage

Download the release binary and execute it as ./shptojson mesh where mesh should be BR or UFs. Make sure that shptojson file has execution permission.

GeoJSON files will be generated inside geoJSON/ directory.

More Information

Running ./shptojson BR will generate GeoJSON files for Brazil and ./shptojson UFs for each of its states, municipalities, macro and microregions. They are located in BR/ and UFs/ subdirectories.

Also, several original compacted shapefiles files are stored in the shp directory contains these files downloaded from IBGE. If you wish you may delete this extra directory after conversion.

You might need to install TBB library (libtbb-dev on Debian/Ubuntu) for multi-core processing.