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 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.2.tar.gz (2.5 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.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rhino_shapely_converter-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 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.2.tar.gz
Algorithm Hash digest
SHA256 19753fa67b55e739bafe90cc4aba4af6c404287e78dbef089b69e6c680392b8b
MD5 50dcb35db163365913599945c8e75824
BLAKE2b-256 a4f85a530266f1ea6e793665cbc35d6818813b3a3ecc22bd476effc18f0529f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rhino_shapely_converter-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a7714ea39f4dd387cc64607c7774574b6c52512a9d514b8fc9f112a413cc78e
MD5 410a72f8310bf8cbec057cbf77b1e260
BLAKE2b-256 c6fa2a45501ce36f014615d3a681ab31694f88d102e29f2b32c4ea2d3770c336

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