Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Dec 12, 2023
1 parent 9ad90ee commit 66db618
Show file tree
Hide file tree
Showing 35 changed files with 189 additions and 129 deletions.
12 changes: 0 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# =============================================================================
# =============================================================================
# ========================= ==========================
# ========================= STARLING GITIGNORE ==========================
# ========================= ==========================
# =============================================================================
# =============================================================================
# ========================= ==========================
# ========================= V1.1 ==========================
# ========================= ==========================
# =============================================================================



# =============================================================================
Expand Down
15 changes: 6 additions & 9 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
cff-version: 1.2.0
title: Starling Bearing
title: Kockums Bearing
version: 0.0.0
date-released: 2022-11-01
url: "https://github.com/starling-cloud/bearing"
date-released: 2023-11-01
url: "https://github.com/kockums/bearing"
message: >-
If you use Bearing, please cite it using
the metadata from this file.
type: software
authors:
- given-names: Lars Bastiaan
family-names: van Vianen
email: lars@starling.associates
affiliation: Starling Associates
email: lars@kockums.io
affiliation: Kockums
orcid: 'https://orcid.org/0000-0002-8790-8630'
- given-names: Sander Martijn
family-names: Boer
email: sander@starling.associates
affiliation: Starling Associates

2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @starling-cloud
* @kockums
6 changes: 2 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
This document provides guidelines for contributing to this projct.
Contributions from the public are welcome.


## Dependencies

The following dependencies must be installed on the development system:

- McNeel Rhino
- McNeel Grasshopper
- ...

## Using the issue tracker 💡

The issue tracker is the preferred channel for bug reports and features requests. [GitHub issues](https://github.com/scape-foundation/earth.txt/issues)
The issue tracker is the preferred channel for bug reports and features requests. [GitHub issues](https://github.com/kockums/bearing/issues)

## Issues and labels 🏷

Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Security Policy

To report a security vulnerability, please email [info@starling.associates](mailto:info@starling.associates).
To report a security vulnerability, please email [info@kockums.io](mailto:info@kockums.io).
6 changes: 3 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
site_name: Bearing
site_url: https://www.bearing.tools/
site_description: Spatial Python Framework
site_author: Starling Associates
site_author: Kockums
lang: en

# Repository
repo_name: 'GitHub'
repo_url: https://github.com/starling-cloud/bearing/
repo_url: https://github.com/kockums/bearing/
edit_uri_template: 'docs/{path}'

dev_addr: 127.0.0.1:8888

# Copyright
copyright: >
Copyright &copy; 2023 <a href="https://www.starling.associates">Starling Associates</a>. All Rights Reserved.
Copyright &copy; 2024 <a href="https://www.kockums.io">Kockums</a>. All Rights Reserved.
# hide:
Expand Down
23 changes: 21 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
# pyproject.toml file specified at the root of the directory

[tool.poetry]
name = "bearing"
version = "0.1.0"
description = "Bearing"
authors = ["Lars van Vianen <lars@vianen.com>"]
license = "MIT"
readme = "README.md"


[tool.poetry.dependencies]
python = "^3.11"
pillow = "^10.0.0"
gdal = "^3.7.1.1"
rite = "^0.0.0"


[build-system]
requires = ["setuptools>=42", "wheel"] # PEP 508 specifications.
build-backend = "setuptools.build_meta"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"


# [build-system]
# requires = ["setuptools>=42", "wheel"] # PEP 508 specifications.
# build-backend = "setuptools.build_meta"
20 changes: 12 additions & 8 deletions src/bearing/__main__.py → src/__main__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


"""
Provides a Bearing entry point.
"""


# Import | Futures
from __future__ import print_function
# […]

# Import | Standard Library
import platform
try:
import pkg_resources
except ImportError:
pkg_resources = None
# […]

# Import | Libraries
import bearing
# […]

# Import | Local Modules
# […]


if __name__ == "__main__":
Expand All @@ -33,12 +29,20 @@
print("Bearings are set!")
print()
print("Bearing: {}".format(bearing.__version__))
print("Python: {} ({})".format(platform.python_version(), platform.python_implementation()))
print("Python: {} ({})".format(
platform.python_version(),
platform.python_implementation())
)

if pkg_resources:
working_set = pkg_resources.working_set
packages = set([p.project_name for p in working_set]) - set(["Bearing"])
bearing_pkgs = [p for p in packages if p.lower().startswith("bearing")]
packages = set(
[p.project_name for p in working_set]
) - set(["Bearing"])

bearing_pkgs = [
p for p in packages if p.lower().startswith("bearing")
]

if bearing_pkgs:
print("Extensions: {}".format([p for p in bearing_pkgs]))
14 changes: 7 additions & 7 deletions src/bearing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


"""
Provides Bearing package information.
Provides Bearing package information
====================================
"""


__author__ = "Lars van Vianen and Sander Boer"
__copyright__ = "Copyright 2022, Starling Associates"
__author__ = "Lars van Vianen"
__copyright__ = "Copyright 2023, Kockums"
__credits__ = [
"Lars van Vianen",
"Sander Boer"
]
__license__ = "MIT License"
__version__ = "0.0.0"
__maintainer__ = "Starling Associates"
__email__ = "info@starling.cloud"
__maintainer__ = "Kockums"
__email__ = "info@kockums.io"
__status__ = "Alpha"
1 change: 0 additions & 1 deletion src/bearing/data/colour.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/data/date.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/data/image_raster.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/data/pixel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/data/slug.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
2 changes: 0 additions & 2 deletions src/bearing/data/url.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/data/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/data/uuid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/data/voxel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/data/voxel_grid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/file/geojson.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/file/json.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provides JSON stuff."""

Expand Down
1 change: 0 additions & 1 deletion src/bearing/file/obj.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provides OBJ Class."""

Expand Down
1 change: 0 additions & 1 deletion src/bearing/geometry/box.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/geometry/coordinate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/geometry/grid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/geometry/point.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# flake8: noqa

Expand Down
1 change: 0 additions & 1 deletion src/bearing/geometry/rectangle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
8 changes: 3 additions & 5 deletions src/bearing/geospatial/area.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down Expand Up @@ -33,7 +32,6 @@
# […]



class GeographicArea(object):
"""
A class used to represent a Geographic Area
Expand All @@ -54,9 +52,9 @@ class GeographicArea(object):

def __init__(
self,
lowerleft = None,
upperright = None,
size = None,
lowerleft = None,
upperright = None,
size = None,
):
"""Constructor of the object."""

Expand Down
1 change: 0 additions & 1 deletion src/bearing/geospatial/coordinate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
1 change: 0 additions & 1 deletion src/bearing/geospatial/grid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
2 changes: 1 addition & 1 deletion src/bearing/math/distance.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


"""
Provides Math Utils
===================
...
Expand Down
1 change: 0 additions & 1 deletion src/bearing/math/filter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Expand Down
Loading

0 comments on commit 66db618

Please sign in to comment.