Skip to main content

Provide space_objects output geometry capabilities like shapely geometry and geojson.

Project description

space_objects_geos

  • pre-commit

  • coverage

pip install space-objects-geos

This is an extension for space_objects package.

Provides outputs objects for easily work with shapely geometries from the originals outputs objects.

Usefull for geometries calculations and geojson representation for web display.

sample

from space_objects.models import SatelliteActive
from space_objects_geos.outputs import OrbitObjectGeos, PositionObjectGeos

your_position = {
    "observation_position_longitude": 1.433333,
    "observation_position_latitude": 43.6,
}

satellite_name = "ISS (ZARYA)"
iss_object = SatelliteActive(satellite_name, **your_position)

position = PositionObjectGeos(iss_object.get_position())
orbit = OrbitObjectGeos(iss_object.get_orbit())

print(position.geojson)
print(orbit.geojson)

position geojson

position geojson

orbit geojson

orbit geojson

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

space_objects_geos-1.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

space_objects_geos-1.1.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

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