Centerline-width

Latest version: v2.0.0

Safety actively analyzes 688126 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

1.0.1

README.md edits and ZOrder for Centerline

**Update README**
- Instructions to Generate KML files from Google Earth Pro
- Details about the purpose and example images for `equal_distance`

**ZOrder**
- Fix ZOrder so centerline sits on top of the blue Voronoi paths (when `display_all_possible_paths=True`)
- Centerline sits on top of blue paths when centerline `marker_type="Line"` and `marker_type="Scatter"`
![image](https://github.com/cyschneck/centerline-width/assets/22159116/927e17b2-6944-4f1d-9ad0-9b09160de171)

_Bug fixes and README.md edits
Pytests: 180 test_

1.0.0

Feature in Alpha Release:

**Convert raw data from Google Earth Pro to CSV**
- extractPointsToTextFile()
- convertColumnsToCSV()

**Find centerline and width of river**
- plotCenterline()
- plotCenterlineWidth()
- riverWidthFromCenterline()
- centerlineVoronoi
- centerlineEqualDistance
- centerlineEvenlySpaced
- centerlineSmoothed
- centerlineLength
- rightBankLength
- leftBankLength

**Export centerline to .CSV and .MAT files**
- saveCenterlineCSV()
- saveCenterlineMAT()

| Centerline | Centerline with Width Lines |
| ------------- | ------------- |
| ![image](https://github.com/cyschneck/centerline-width/assets/22159116/0721ee40-ef8a-426a-b1c3-2b0806c4f80b) | ![image](https://github.com/cyschneck/centerline-width/assets/22159116/ecc9bbb1-0861-4133-b154-fdf15c110c19) |


_Pytests: 180 test_

0.4.0

New Features:
**plotCenterline()**
- centerline_type option to graph ("Voronoi", "Evenly Spaced", "Smoothed", "Equal Distance")
- marker_type option to graph (scatter/line)
- centerline_color option (matplotlib color options)

**riverCenterline()**
- ellipsoid option to convert degrees to meters

**plotCenterlineWidth()**
- Replace haversine package with geopy
- Remove unit options (will generate distances in km)
- Fix to prevent lines from being generated outside the polygon

_Bug fixes and README.md edits_
_Pytests: 180 test_

0.3.0

**New Features:**
**centerlineEqualDistance**

- New centerline type that represents equal distances from each points (set by user) and accounts for the radius of the Earth to convert from degrees to meters
- Set by equal_distance optional argument in riverCenterline (defaults to 10 meters)
- Can be saved in saveCenterlineMAT() and saveCenterlineCSV() as `centerline_type="Equal Distance"`

**saveCenterlineMAT**
- Save centerline values to a .mat file

**latitude_header and longitude_header for saveCenterlineMAT and saveCenterlineCSV**

- new options to set the header values for the latitude and longtiude in the output file by the user

_Bug fixes and README.md edits_

_Pytests: 166 tests_

0.2.5

**Bug fixes for returning the width based on centerline**

0.2.4

**User warning if smoothed coordinates need to use interpolate_n_centerpoints (useful for narrow rivers with sparse data)**
- `Example Error: WARNING: Partially invalid smoothed centerline due to sparse centerline data (6 points lie outside the polygon), fix recommendation: rerun riverCenterline to create river object with interpolate_n_centerpoints set to 62+`

**Include new centerline-width logo**

**Updated README.md example images and descriptions**

**Bug fixes**

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.