Skip to main content

This is to convert rhino geometry to shapely geometry and vice versa

Project description

rhino-shapely-converter

This is to convert rhino geometry to shapely geometry and vice versa.

Installation

pip install rhino-shapely-converter

Important Notes

  • Shapely is not an appropriate library for 3d calculations.
  • It is recommended to use for 2d calculations mainly.

Notes

  • Rhino Point3d will be converted to Shapely Point.

  • Rhino Point2d will be converted to Shapely Point.

  • Rhino Point will be converted to Shapely Point.

  • Rhino PointCloud will be converted to Shapely MultiPoint.

  • Rhino Line will be converted to Shapely LineString.

  • Rhino Polyline will be converted to Shapely LineString.

  • Rhino PolylineCurve will be converted to Shapely LineString.

  • Shapely Point will be converted to Rhino Point3d.

  • Shapely MultiPoint will be converted to Rhino PointCloud.

  • Shapely LineString will be converted to Rhino Polyline.

Usage

# please check current possible types to convert above
from rhino_shapely_converter import (
    convert_rhino_geometry_to_shapely_geometry,
    convert_shapely_geometry_to_rhino_geometry,
)

# Convert rhino geometry to shapely geometry
shapely_geometry = convert_rhino_geometry_to_shapely_geometry(rhino_geometry)

# Convert shapely geometry to rhino geometry
rhino_geometry = convert_shapely_geometry_to_rhino_geometry(shapely_geometry)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rhino_shapely_converter-0.1.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rhino_shapely_converter-0.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file rhino_shapely_converter-0.1.3.tar.gz.

File metadata

  • Download URL: rhino_shapely_converter-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.20

File hashes

Hashes for rhino_shapely_converter-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b428dd5349ae2c44b28abe70e8cfe75112d197b47b7ad01d48760d993e7e014e
MD5 f913f522d9412e0c17db5cfad645ba6e
BLAKE2b-256 fec700c43e192793b6aa09b7483beac4af2ec87ed07ac609aad4913bd8e2ae1f

See more details on using hashes here.

File details

Details for the file rhino_shapely_converter-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for rhino_shapely_converter-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a38105ded0813378cf000b5ac3b8671dfca478ab13df9fbdfbac3ee52925cb5f
MD5 b6fd952768aae8b9422025562f5bad90
BLAKE2b-256 49310a03c495cca9da323da7d8e1ec90172d80b8da646e5dd22f6e942ff45b9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page