Centerline-width

Latest version: v1.6.0

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

Scan your dependencies

Page 2 of 4

1.1.0

New Coordinate Option: "Relative Distance" vs "Decimal Degrees"
**New optional argument to designate which coordinate system to use: `coordinate_type`**

`Decimal Degrees`: Default option that uses a latitude/longitude of each point

`Relative Distance`: New option that converts each point to a distance from the first point on the left bank

Function that accept new coordinate_type option:
- plotCenterline()
- plotCenterlineWidth()
- saveCenterlineCSV()
- saveCenterlineMAT()

New river class options:
- centerlineVoronoiRelative
- centerlineEqualDistanceRelative
- centerlineEvenlySpacedRelative
- centerlineSmoothedRelative
- left_bank_relative_coordinates
- right_bank_relative_coordinates
- bank_polygon_relative
- top_bank_relative
- bottom_bank_relative
- starting_node_relative
- ending_node_relative
- bank_voronoi_relative
- x_voronoi_ridge_point_relative
- y_voronoi_ridge_point_relative

_Bug fixes and README.md edits_

_Pytests: 205 tests_

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**

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.