-
Notifications
You must be signed in to change notification settings - Fork 18
Contribution
You can help this project by enhancing the codebase or providing unit tests. This guide will walk you through the process of creating a pull request (PR) to our GitHub repository. Following these instructions will help ensure a smooth and efficient review process.
If you haven't already, fork the repository to your GitHub account. This creates a copy of the repository where you can make changes.
Clone your forked repository to your local machine using the following command:
git clone https://github.com/YOUR_USERNAME/NetTopologySuite.IO.Esri.git
Replace YOUR_USERNAME with your GitHub username.
Before making any changes, create a new branch from the develop
branch.
git checkout -b fix/issue012_description
Please follow fix/issue012_description
naming convention when creating a new branch.
- Make the necessary changes to the codebase to address the issue or implement the new feature.
- Follow the .NET naming guidelines.
- Document the code:
- All classes must have code documentation.
- All public or protected methods, functions and properties must have sufficient code documentation.
Ensure that your changes are covered by tests. Tests should be added to the Visual Studio Project NetTopologySuite.IO.Esri.Test
within the Issues
folder. Follow existing naming convention for your test files.
If your changes address issues caused by specific shapefiles, it is advisable to add these shapefiles to the TestData\TestShapefiles\Issues
folder. If you add a shapefile, it should be used in your tests. Ensure that your test files in the Issues folder follow existing naming convention.
You can reference test data using dedicated TestShapefiles
class:
var shpPath = TestShapefiles.PathTo("Issues/027/faults_bounddaries.shp");
var features = Shapefile.ReadAllFeatures(shpPath);
You can also create a temporary shapefile if needed for your tests:
var shpFile = TestShapefiles.GetTempShpPath();
Shapefile.WriteAllFeatures(features, shpFile);
TestShapefiles.DeleteShp(shpFile);
Commit your changes with a meaningful commit message. Ensure your commit messages are clear and concise.
git add .
git commit -m "Fix issue #012: Description of the fix"
Push your changes to your forked repository:
git push origin fix/issue012_description
Navigate to your forked repository on GitHub. You should see a prompt to create a pull request for your recently pushed branch. Click on the "Compare & pull request" button.
In the pull request description, provide the following information:
- A brief summary of the changes
- A link to the issue being addressed
- Any additional context or details that might be useful for the reviewer
Submit the pull request for review. Your changes will be reviewed, and you may be asked to make additional modifications.
Be responsive to any feedback provided by the reviewers. Make the necessary changes and push them to the same branch. Your pull request will be updated automatically.